SADeprecationWarning: Pool.add_listener is deprecated. Use event.listen()

Bug #1031405 reported by Johannes Erdfelt
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Qiu Yu
Glance
Fix Released
Low
Josh Kearney
OpenStack Compute (nova)
Fix Released
Undecided
Johannes Erdfelt
OpenStack Identity (keystone)
Fix Released
Low
Anthony Dodd

Bug Description

The listeners kwarg has been deprecated in SQLAlchemy 0.7. The replacement is the new event.listen() API.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/10606

Changed in nova:
assignee: nobody → Johannes Erdfelt (johannes.erdfelt)
status: New → In Progress
Jay Pipes (jaypipes)
Changed in glance:
status: New → Triaged
importance: Undecided → Low
Jay Pipes (jaypipes)
tags: added: low-hanging-fruit
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/10606
Committed: http://github.com/openstack/nova/commit/28a7ac658959a8dcc8ba0b7d316fe598e7992c8b
Submitter: Jenkins
Branch: master

commit 28a7ac658959a8dcc8ba0b7d316fe598e7992c8b
Author: Johannes Erdfelt <email address hidden>
Date: Tue Jul 31 15:32:08 2012 +0000

    Use event.listen() instead of deprecated listeners kwarg

    Fixes bug 1031405

    The listeners kwarg is deprecated in SQLAlchemy 0.7.0. Since 0.7.3 is
    the minimum required version of SQLAlchemy, use the new event.listen()
    API instead.

    Change-Id: I3d2bd2e65dbc6787d1c9b69ffd0bcff85c157869

Changed in nova:
status: In Progress → Fix Committed
Josh Kearney (jk0)
Changed in glance:
assignee: nobody → Josh Kearney (jk0)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/10665

Brian Waldon (bcwaldon)
Changed in glance:
milestone: none → folsom-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/10665
Committed: http://github.com/openstack/glance/commit/6cc23005d042901e01bfee4deeb6367879012d22
Submitter: Jenkins
Branch: master

commit 6cc23005d042901e01bfee4deeb6367879012d22
Author: Josh Kearney <email address hidden>
Date: Wed Aug 1 12:05:42 2012 -0500

    Use event.listen() instead of deprecated listeners kwarg.

    The listeners kwarg is deprecated in SQLAlchemy 0.7.0. Since 0.7.3 is
    the minimum required version of SQLAlchemy, use the new event.listen()
    API instead.

    Fixes bug 1031405.

    Change-Id: Ibbfe46d065575b1954a47b3a28c61151dfb1e06e

Changed in glance:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/10746

Changed in keystone:
assignee: nobody → Rafael Durán Castañeda (rafadurancastaneda)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (stable/essex)

Fix proposed to branch: stable/essex
Review: https://review.openstack.org/10862

Revision history for this message
Brian Waldon (bcwaldon) wrote :

Not backporting to glance 2012.1.2 since this is only a deprecation warning.

no longer affects: glance/essex
Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: none → folsom-3
status: Fix Committed → Fix Released
Qiu Yu (unicell)
Changed in cinder:
assignee: nobody → unicell (unicell)
Qiu Yu (unicell)
Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/11644

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/11644
Committed: http://github.com/openstack/cinder/commit/5da61a7ad9d7c3320831c437c03c428b9df84ebb
Submitter: Jenkins
Branch: master

commit 5da61a7ad9d7c3320831c437c03c428b9df84ebb
Author: unicell <email address hidden>
Date: Mon Aug 20 19:34:19 2012 +0800

    Use event.listen() instead of deprecated listeners kwarg

    Fixes bug 1031405

    The listeners kwarg is deprecated in SQLAlchemy 0.7.0. Since 0.7.3 is
    the minimum required version of SQLAlchemy, use the new event.listen()
    API instead.

    Change-Id: I1b851e197c04b131ae96e814780b04e6dcdeeb1a

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → folsom-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: folsom-3 → 2012.2
Thierry Carrez (ttx)
Changed in cinder:
milestone: folsom-rc1 → 2012.2
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-3 → 2012.2
Revision history for this message
Dolph Mathews (dolph) wrote :

Patch to keystone was abandoned.

Changed in keystone:
importance: Undecided → Low
status: In Progress → Confirmed
assignee: Rafael Durán Castañeda (rafadurancastaneda) → nobody
Revision history for this message
Anthony Dodd (thedodd) wrote :

I would like to get started on addressing this issue in keystone, but I'm not quite sure where to begin.

Revision history for this message
Johannes Erdfelt (johannes.erdfelt) wrote :

You would do pretty much the same thing all of the other projects have done. You can use this patch for nova as an example:

https://review.openstack.org/10606

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

Great, thanks gentlemen. I will do the necessary research and, hopefully, have a fixed bug shortly!

Changed in keystone:
assignee: nobody → Anthony Dodd (thedodd)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/34266

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/34266
Committed: http://github.com/openstack/keystone/commit/05e7a87b893aae0cb22ef85e282ada4979f9db9e
Submitter: Jenkins
Branch: master

commit 05e7a87b893aae0cb22ef85e282ada4979f9db9e
Author: Anthony Dodd <email address hidden>
Date: Mon Jun 24 16:23:00 2013 -0500

    Use event.listen() instead of deprecated listeners kwarg

    The listeners kwarg is deprecated in SQLAlchemy 0.7.0.
    Use the new event.listen() method instead.

    Instead of using the original approach of testing whether or not the string
    'mysql' is in 'connection_dict.drivername', now we are using a more direct
    string equality test to ensure that engine.name == 'mysql' before passing
    it to sql.event.listen().

    We've decided to change the name of our ping_listener function to reflect its
    purpose more accurately. Its name has been changed from "ping_listener" to
    "mysql_on_checkout".

    Change-Id: Ib9ef52404e3d474a60cdc82e8fcf8c6a9616bce3
    Fixes: bug #1031405

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
milestone: none → havana-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: havana-2 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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