Deprecation warning from SQL Alchemy

Bug #1095409 reported by Adam Young
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Triaged
Medium
Unassigned

Bug Description

Running the unit tests for SQL upgrade shows the following meesage several times

 SADeprecationWarning: The 'listeners' argument to Pool (and create_engine()) is deprecated. Use event.listen().

  Pool.__init__(self, creator, **kw)

Revision history for this message
Adam Young (ayoung) wrote :

This is a SQL Alchemy issue. I'm running with python-sqlalchemy-0.7.9-1.fc17.x86_64

The file in question that needs to be updated is:

/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py

Keep this bug for tracking purposes

Joseph Heck (heckj)
Changed in keystone:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Dolph Mathews (dolph) wrote :

I haven't seen this deprecation warning myself, but we pass 'listeners' to engine config here:

  keystone/common/sql/core.py
  244: engine_config['listeners'] = [MySQLPingListener()]

I also can't find anything in the sqlalchemy docs that suggests this option is deprecated?

Revision history for this message
Dolph Mathews (dolph) wrote :

I'm also running 0.7.9:

  $ python -c "import sqlalchemy; print sqlalchemy.__version__"
  0.7.9

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.