"create/drop_named_database" fail with SQLAlchemy 2.0
Bug #2015225 reported by
Rodolfo Alonso
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.db |
Fix Released
|
High
|
Stephen Finucane |
Bug Description
This error was found in the Neutron CI: https:/
Snippet: https:/
This error looks related (not caused) by [1]: now these methods start a transaction regardless of the connection status.
To post a comment you must log in.
It seems that when checking [1], it calls "database_exists" and initiates a transaction. The context created by "conn.beging()" should be before this call.
[1]https:/ /github. com/openstack/ oslo.db/ blob/da4f13e734 5653eba8aab5b8a ceeaeff7367989e /oslo_db/ sqlalchemy/ provision. py#L519