Comment 4 for bug 1473400

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

Reviewed: https://review.openstack.org/200848
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=503203e243d42d26d73d0aef16774871b3496d6d
Submitter: Jenkins
Branch: master

commit 503203e243d42d26d73d0aef16774871b3496d6d
Author: Valeriy Ponomaryov <email address hidden>
Date: Sun Jul 12 00:04:22 2015 +0300

    Close DB migration sessions explicitly for compatibility with PyMySQL

    oslo.db lib starting with version 1.12.0 uses PyMySQL as mysql client.
    We get problem with it as it does not close opened sessions by default.
    And if we do some actions with migration sessions and do not close sessions,
    then alembic, as db migration tool does not write to DB updated migration
    version, that is final step of each migration.
    It breaks further attempts to perform some migration actions in case some
    migration can not be applied twice. Because of improper versions in DB,
    alembic tries to execute same migrations again and again.

    So, close migration sessions explicitly since PyMySQL does not do it itself.
    Also, print version in devstack for getting more details in future debug of
    devstack installation output.

    Change-Id: I5c729f10bac23b1853e18127b50b1d9f053ab629
    Closes-Bug: #1473400