summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Hesketh <josh@nitrotech.org>2015-04-21 12:21:12 +1000
committerJoshua Hesketh <josh@nitrotech.org>2015-04-21 12:21:12 +1000
commit9e8ddc0e1d4cccfa7f7b1d6b1b7c7e65fad0fb4c (patch)
tree5451c5745d35b54beb2f8c258028cf8278402448
parent9b2c312aa346c1e3093d80c49baebe9b14651473 (diff)
downloadturbo-hipster-9e8ddc0e1d4cccfa7f7b1d6b1b7c7e65fad0fb4c.tar.gz
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
-rwxr-xr-xturbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh25
1 files 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/.*: //'`