Comment 4 for bug 1300190

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to sahara (master)

Reviewed: https://review.openstack.org/82750
Committed: https://git.openstack.org/cgit/openstack/sahara/commit/?id=c7a009805e43a639f2292f6878351580e64cdead
Submitter: Jenkins
Branch: master

commit c7a009805e43a639f2292f6878351580e64cdead
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
    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.

    Closes-Bug: #1300190
    Change-Id: I991aa3402f658999735ad9607544251a6ef0e122