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/da4f13e7345653eba8aab5b8aceeaeff7367989e/oslo_db/sqlalchemy/provision.py#L519
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