Set a temporary cap on subunit2sql before 1.0.0 release

This commit adds a temporary version cap on subunit2sql to be < 1.0.0.
The 1.0.0 release includes a very large database migration which will
be slow to execute. The python DB api from >=v1.0.0 will not work with
a database that doesn't have the updated schema. So while the migration
is running let's cap the version we install to prevent everything from
breaking while the migration is running. (which might take days)

Change-Id: Iab89beb5c7aba8b744a62f5063e513b72cab0ec2
This commit is contained in:
Matthew Treinish 2015-11-23 15:49:58 -05:00
parent 35607883ee
commit 04eb36588d
No known key found for this signature in database
GPG Key ID: FD12A0F214C9E177
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ TEMPEST_DIR=/opt/git/openstack/tempest
# Setup venv and Install python deps from pip # Setup venv and Install python deps from pip
sudo virtualenv /opt/git/subunit2sql-env sudo virtualenv /opt/git/subunit2sql-env
sudo -H /opt/git/subunit2sql-env/bin/pip install -U subunit2sql testrepository PyMySQL sudo -H /opt/git/subunit2sql-env/bin/pip install -U 'subunit2sql<1.0.0' testrepository PyMySQL
sudo env PATH=/opt/git/subunit2sql-env/bin:$PATH /opt/git/subunit2sql-env/bin/python2 /opt/nodepool-scripts/prepare_tempest_testrepository.py $TEMPEST_DIR sudo env PATH=/opt/git/subunit2sql-env/bin:$PATH /opt/git/subunit2sql-env/bin/python2 /opt/nodepool-scripts/prepare_tempest_testrepository.py $TEMPEST_DIR

View File

@ -27,7 +27,7 @@ sudo -u jenkins -i /opt/nodepool-scripts/prepare_devstack.sh "$HOSTNAME"
# Setup venv and install deps for prepare_tempest_testrepository.py # Setup venv and install deps for prepare_tempest_testrepository.py
sudo virtualenv -p python2 /opt/git/subunit2sql-env sudo virtualenv -p python2 /opt/git/subunit2sql-env
sudo -H /opt/git/subunit2sql-env/bin/pip install -U testrepository subunit2sql PyMySQL sudo -H /opt/git/subunit2sql-env/bin/pip install -U testrepository 'subunit2sql<1.0.0' PyMySQL
# Pre-seed tempest testrepository with data from subunit2sql # Pre-seed tempest testrepository with data from subunit2sql
sudo -i env PATH=/opt/git/subunit2sql-env/bin:$PATH /opt/git/subunit2sql-env/bin/python2 /opt/nodepool-scripts/prepare_tempest_testrepository.py $TEMPEST_DIR sudo -i env PATH=/opt/git/subunit2sql-env/bin:$PATH /opt/git/subunit2sql-env/bin/python2 /opt/nodepool-scripts/prepare_tempest_testrepository.py $TEMPEST_DIR