Public bug reported: Keystone has contract, migrate etc repo to support online rolling grade. There is testcase test_start_version_db_init_version to make sure that repos are called in the right sequence. But when it expects to call the script from expand it calls the script from contact instead.
Here is simple debug message: > /opt/stack/keystone/keystone/tests/unit/test_sql_upgrade.py(208)upgrade() -> for ver, change in changeset: (Pdb) n > /opt/stack/keystone/keystone/tests/unit/test_sql_upgrade.py(209)upgrade() -> self.schema_.runchange(ver, change, changeset.step) (Pdb) p change <migrate.versioning.script.py.PythonScript object at 0x7f25d43d4c90> (Pdb) p change.__dict__ {'_module': <module '002_password_created_at_not_nullable' from '/opt/stack/keystone/keystone/common/sql/contract_repo/versions/002_password_created_at_not_nullable.pyc'>, 'path': '/opt/stack/keystone/keystone/common/sql/expand_repo/versions/002_password_created_at_not_nullable.py'} It shows the module that is acutally called is from contract_repo while the path give us the correct info. This could be found from here. http://logs.openstack.org/91/364491/1/check/gate-keystone-python27-db-ubuntu-xenial/5d6e45e/console.html ** Affects: keystone Importance: Undecided Status: New ** Description changed: Keystone has contract, migrate etc repo to support online rolling grade. There is testcase test_start_version_db_init_version to make sure that repos are called in the right sequence. But when it expects to call the script from expand it calls the script from contact instead. - Here is a simple debug message: + Here is simple debug message: > /opt/stack/keystone/keystone/tests/unit/test_sql_upgrade.py(208)upgrade() -> for ver, change in changeset: (Pdb) n > /opt/stack/keystone/keystone/tests/unit/test_sql_upgrade.py(209)upgrade() -> self.schema_.runchange(ver, change, changeset.step) (Pdb) p change <migrate.versioning.script.py.PythonScript object at 0x7f25d43d4c90> (Pdb) p change.__dict__ {'_module': <module '002_password_created_at_not_nullable' from '/opt/stack/keystone/keystone/common/sql/contract_repo/versions/002_password_created_at_not_nullable.pyc'>, 'path': '/opt/stack/keystone/keystone/common/sql/expand_repo/versions/002_password_created_at_not_nullable.py'} - - It shows the module that is acutally called in from contract_repo which the patch give us the correct info. - + It shows the module that is acutally called is from contract_repo while + the path give us the correct info. This could be found from here. http://logs.openstack.org/91/364491/1/check/gate-keystone-python27-db-ubuntu-xenial/5d6e45e/console.html -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Identity (keystone). https://bugs.launchpad.net/bugs/1620230 Title: migrate script is not correctly called in testcase Status in OpenStack Identity (keystone): New Bug description: Keystone has contract, migrate etc repo to support online rolling grade. There is testcase test_start_version_db_init_version to make sure that repos are called in the right sequence. But when it expects to call the script from expand it calls the script from contact instead. Here is simple debug message: > /opt/stack/keystone/keystone/tests/unit/test_sql_upgrade.py(208)upgrade() -> for ver, change in changeset: (Pdb) n > /opt/stack/keystone/keystone/tests/unit/test_sql_upgrade.py(209)upgrade() -> self.schema_.runchange(ver, change, changeset.step) (Pdb) p change <migrate.versioning.script.py.PythonScript object at 0x7f25d43d4c90> (Pdb) p change.__dict__ {'_module': <module '002_password_created_at_not_nullable' from '/opt/stack/keystone/keystone/common/sql/contract_repo/versions/002_password_created_at_not_nullable.pyc'>, 'path': '/opt/stack/keystone/keystone/common/sql/expand_repo/versions/002_password_created_at_not_nullable.py'} It shows the module that is acutally called is from contract_repo while the path give us the correct info. This could be found from here. http://logs.openstack.org/91/364491/1/check/gate-keystone-python27-db-ubuntu-xenial/5d6e45e/console.html To manage notifications about this bug go to: https://bugs.launchpad.net/keystone/+bug/1620230/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp