stein: install python3-mysqldb for sqlalchemy dialect change
At Stein, the default mysql dialect in SQLAlchemy switched back
to MySQLDB in Ubuntu; as a result the db connection URL's stored
in the nova_api database for Nova cells are stale and need to
prefixed mysql+pymysql:// to work with the pymysql dialect.
However at this point in time there is no way to update the DB
URL for Nova Cell 0.
This fix works around this problem by installing python3-mysqldb
which provides the default dialect needed when using mysql://
prefixed DB connection URI's.
Reviewed: https:/ /review. opendev. org/672321 /git.openstack. org/cgit/ openstack/ charm-nova- cloud-controlle r/commit/ ?id=3c806a23f6d ada5b1bc4417099 d328f97e5c7e2a
Committed: https:/
Submitter: Zuul
Branch: master
commit 3c806a23f6dada5 b1bc4417099d328 f97e5c7e2a
Author: James Page <email address hidden>
Date: Tue Jul 23 16:47:06 2019 +0100
stein: install python3-mysqldb for sqlalchemy dialect change
At Stein, the default mysql dialect in SQLAlchemy switched back
to MySQLDB in Ubuntu; as a result the db connection URL's stored
in the nova_api database for Nova cells are stale and need to
prefixed mysql+pymysql:// to work with the pymysql dialect.
However at this point in time there is no way to update the DB
URL for Nova Cell 0.
This fix works around this problem by installing python3-mysqldb
which provides the default dialect needed when using mysql://
prefixed DB connection URI's.
Change-Id: I3f74f18f649786 fefa113fc3d8fa7 c24010a185d
Related-Bug: 1835037