We should use sahara-db-manage for db creation instead of auto created
db schema from metadata. This approach was applied by adding support for
alembic-based migrations and db autocreation code was removed in
I14a0602bb34bf09086428766cb681345191436fe, but it one more place where
we're autocreating db was missed, so, it's a fix for this issue.
Additionally, cleanup custom hacking check for sahara.db calls.
Docs already contains notes about need for using sahara-db-manage for
database creation.
Note: The main driver in fixing this right now is that if a user create
database from metadata, he will not be able to migrate from Icehouse to
Juno. Only databases created by alembic could be migrated to the later
version.
Reviewed: https:/ /review. openstack. org/82750 /git.openstack. org/cgit/ openstack/ sahara/ commit/ ?id=c7a009805e4 3a639f2292f6878 351580e64cdead
Committed: https:/
Submitter: Jenkins
Branch: master
commit c7a009805e43a63 9f2292f68783515 80e64cdead
Author: Sergey Lukjanov <email address hidden>
Date: Tue Mar 25 13:28:26 2014 +0400
Fix db management: don't autocreate db on start
We should use sahara-db-manage for db creation instead of auto created 4bf09086428766c b681345191436fe , but it one more place where
db schema from metadata. This approach was applied by adding support for
alembic-based migrations and db autocreation code was removed in
I14a0602bb3
we're autocreating db was missed, so, it's a fix for this issue.
Additionally, cleanup custom hacking check for sahara.db calls.
Docs already contains notes about need for using sahara-db-manage for
database creation.
Note: The main driver in fixing this right now is that if a user create
database from metadata, he will not be able to migrate from Icehouse to
Juno. Only databases created by alembic could be migrated to the later
version.
Closes-Bug: #1300190 99735ad96075442 51a6ef0e122
Change-Id: I991aa3402f6589