"OsloDBDeprecationWarning: EngineFacade is deprecated; please use oslo_db.sqlalchemy.enginefacade" warnings emitted numerous times during py3 unit tests

Bug #1795078 reported by melanie witt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
melanie witt

Bug Description

Seen in the openstack-tox-py35 [1]:

2018-09-26 17:20:32.001487 | ubuntu-xenial | /home/zuul/src/git.openstack.org/openstack/nova/.tox/py35/lib/python3.5/site-packages/oslo_db/sqlalchemy/enginefacade.py:350: OsloDBDeprecationWarning: EngineFacade is deprecated; please use oslo_db.sqlalchemy.enginefacade
2018-09-26 17:20:32.001833 | ubuntu-xenial | self._legacy_facade = LegacyEngineFacade(None, _factory=self)

and openstack-tox-py36 jobs:

2018-09-28 11:39:03.066777 | ubuntu-bionic | b'/home/zuul/src/git.openstack.org/openstack/nova/.tox/py36/lib/python3.6/site-packages/oslo_db/sqlalchemy/enginefacade.py:350: OsloDBDeprecationWarning: EngineFacade is deprecated; please use oslo_db.sqlalchemy.enginefacade'
2018-09-28 11:39:03.066944 | ubuntu-bionic | b' self._legacy_facade = LegacyEngineFacade(None, _factory=self)'

[1] http://logs.openstack.org/97/410297/44/gate/openstack-tox-py35/9d96763/job-output.txt#_2018-09-26_17_14_52_089548
[2] http://logs.openstack.org/16/270116/18/check/openstack-tox-py36/56e7491/job-output.txt.gz#_2018-09-28_11_39_03_066777

I think this issue stems from our use of the get_legacy_facade() method in the DB API, so we need to update to use the get_engine() method from the transaction context manager class instead.

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/606213

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/606213
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=020651ad3d14066af34dc5d1d96cec7c6ffe5cd9
Submitter: Zuul
Branch: master

commit 020651ad3d14066af34dc5d1d96cec7c6ffe5cd9
Author: melanie witt <email address hidden>
Date: Fri Sep 28 22:07:42 2018 +0000

    Replace usage of get_legacy_facade() with get_engine()

    We've been seeing warnings emitted to the python 3 unit tests:

      OsloDBDeprecationWarning: EngineFacade is deprecated; please use
      oslo_db.sqlalchemy.enginefacade

    which stem from our use of the get_legacy_facade() oslo.db method.

    This replaces the get_legacy_facade() usage with the get_engine()
    method from the transaction context manager.

    Closes-Bug: #1795078

    Change-Id: If1e355d6174f15a1880e97115a2cf3f9f4be837e

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/608574

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/rocky)

Reviewed: https://review.openstack.org/608574
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=1722e9f94a31abf6f7c48e3944532d9b9653134b
Submitter: Zuul
Branch: stable/rocky

commit 1722e9f94a31abf6f7c48e3944532d9b9653134b
Author: melanie witt <email address hidden>
Date: Fri Sep 28 22:07:42 2018 +0000

    Replace usage of get_legacy_facade() with get_engine()

    We've been seeing warnings emitted to the python 3 unit tests:

      OsloDBDeprecationWarning: EngineFacade is deprecated; please use
      oslo_db.sqlalchemy.enginefacade

    which stem from our use of the get_legacy_facade() oslo.db method.

    This replaces the get_legacy_facade() usage with the get_engine()
    method from the transaction context manager.

    Closes-Bug: #1795078

    Change-Id: If1e355d6174f15a1880e97115a2cf3f9f4be837e
    (cherry picked from commit 020651ad3d14066af34dc5d1d96cec7c6ffe5cd9)

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 18.0.3

This issue was fixed in the openstack/nova 18.0.3 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 19.0.0.0rc1

This issue was fixed in the openstack/nova 19.0.0.0rc1 release candidate.

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.