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

Bug #1938045 reported by Takashi Kajinami
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
New
Undecided
Unassigned

Bug Description

The following deprecation warning in continuously observed in unit test jobs.

/home/zuul/src/opendev.org/openstack/glance/.tox/py39/lib/python3.9/site-packages/oslo_db/sqlalchemy/enginefacade.py:1366: OsloDBDeprecationWarning: EngineFacade is deprecated; please use oslo_db.sqlalchemy.enginefacade

Example can be found here.
https://zuul.opendev.org/t/openstack/build/744e2be61f5f459b9b2bcf7f046cd31e

Usage of EngineFacade is deprecated since oslo.db 1.12.0
https://github.com/openstack/oslo.db/commit/fdbd928b1fdf0334e1740e565ab8206fff54eaa6

However there is one usage left in glance code.
https://github.com/openstack/glance/blob/fa558885503121813bd7d9bacb63754ad5b61676/glance/db/sqlalchemy/api.py#L88

Revision history for this message
Takashi Kajinami (kajinamit) wrote :

The same was fixed in cinder long ago.
 https://review.opendev.org/c/openstack/cinder/+/510829

The original implementation looks similar to the current one in Glance so I guess we can create a fix based on that fix in cinder.

summary: - EngineFacader is deprecated and should be replaced by
+ EngineFacade is deprecated and should be replaced by
oslo_db.sqlalchemy.enginefacade
summary: - EngineFacade is deprecated and should be replaced by
+ OsloDBDeprecationWarning: EngineFacade is deprecated; please use
oslo_db.sqlalchemy.enginefacade
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.