From 9e8ddc0e1d4cccfa7f7b1d6b1b7c7e65fad0fb4c Mon Sep 17 00:00:00 2001 From: Joshua Hesketh Date: Tue, 21 Apr 2015 12:21:12 +1000 Subject: [PATCH] Remove downgrade tests As per https://github.com/openstack/openstack-specs/blob/master/specs/no-downward-sql-migration.rst we no longer support downgrades. Change-Id: I13edde60a61de09d83811bfa00733b5dec7771b4 --- .../real_db_upgrade/nova_mysql_migrations.sh | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/turbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh b/turbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh index e8f9b26..040b480 100755 --- a/turbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh +++ b/turbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh @@ -253,19 +253,24 @@ echo "Now test the patchset" pip_requires db_sync "patchset" -# Determine the schema version -version=`mysql -u $DB_USER --password=$DB_PASS $DB_NAME -e "select * from migrate_version \G" | grep version | sed 's/.*: //'` -echo "Schema version is $version" +# ============================================================================= +# We used to do downgrade testing, but nova no longer supports it +# https://github.com/openstack/openstack-specs/blob/master/specs/no-downward-sql-migration.rst -echo "Now downgrade all the way back to the last stable version (v$last_stable_version)" -db_sync "downgrade" $last_stable_version +# # Determine the schema version +# version=`mysql -u $DB_USER --password=$DB_PASS $DB_NAME -e "select * from migrate_version \G" | grep version | sed 's/.*: //'` +# echo "Schema version is $version" -# Determine the schema version -version=`mysql -u $DB_USER --password=$DB_PASS $DB_NAME -e "select * from migrate_version \G" | grep version | sed 's/.*: //'` -echo "Schema version is $version" +# echo "Now downgrade all the way back to the last stable version (v$last_stable_version)" +# db_sync "downgrade" $last_stable_version -echo "And now back up to head from the start of trunk" -db_sync "patchset" +# # Determine the schema version +# version=`mysql -u $DB_USER --password=$DB_PASS $DB_NAME -e "select * from migrate_version \G" | grep version | sed 's/.*: //'` +# echo "Schema version is $version" + +# echo "And now back up to head from the start of trunk" +# db_sync "patchset" +# ============================================================================= # Determine the final schema version version=`mysql -u $DB_USER --password=$DB_PASS $DB_NAME -e "select * from migrate_version \G" | grep version | sed 's/.*: //'`