summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Hesketh <josh@nitrotech.org>2016-05-31 19:55:23 +1000
committerJoshua Hesketh <josh@nitrotech.org>2016-05-31 19:55:23 +1000
commitc8bd47aa10ecd0c2db12591f44ad68929e4806d0 (patch)
treeb92237d3b5dcb1edc3052e4d7a53a88f8b1d5036
parente731d0b3c75674e6d508871b70c39eb4efc91207 (diff)
downloadturbo-hipster-c8bd47aa10ecd0c2db12591f44ad68929e4806d0.tar.gz
Add support for upper-constraints with nova reqs
Change-Id: I6e55e31ae0f92e53cb71359026662c864dda9a4a
-rwxr-xr-xturbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh19
1 files changed, 11 insertions, 8 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 d23038c..83aabe9 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
@@ -39,6 +39,7 @@ PIP_CACHE_DIR=$9
# NOCLEANUP: if set to anything, don't cleanup at the end of the run
pip_requires() {
+ # $1 is the branch to use for the upper constraints
pip install -q mysql-python
pip install -q eventlet
requires="tools/pip-requires"
@@ -46,8 +47,10 @@ pip_requires() {
then
requires="requirements.txt"
fi
+
+ wget http://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$1
echo "Install pip requirements from $requires"
- pip install -q -r $requires
+ pip install -c upper-constraints.txt -r $requires
# Workaround for old python version on ubuntu-precise
ubuntu_version=$( lsb_release -r | awk '{ print $2 }' | sed 's/[.]//' )
@@ -156,7 +159,7 @@ stable_release_db_sync() {
git checkout -b eol/grizzly
# Use tag
git reset --hard grizzly-eol
- pip_requires
+ pip_requires stable/grizzly
db_sync "grizzly"
fi
@@ -171,7 +174,7 @@ stable_release_db_sync() {
git checkout -b eol/havana
# Use tag
git reset --hard havana-eol
- pip_requires
+ pip_requires stable/havana
db_sync "havana"
fi
@@ -186,7 +189,7 @@ stable_release_db_sync() {
git checkout -b eol/icehouse
# Use tag
git reset --hard icehouse-eol
- pip_requires
+ pip_requires stable/icehouse
db_sync "icehouse"
fi
@@ -200,7 +203,7 @@ stable_release_db_sync() {
git remote update
git checkout -b stable/juno
git reset --hard remotes/origin/stable/juno
- pip_requires
+ pip_requires stable/juno
db_sync "juno"
fi
@@ -214,7 +217,7 @@ stable_release_db_sync() {
git remote update
git checkout -b stable/kilo
git reset --hard remotes/origin/stable/kilo
- pip_requires
+ pip_requires stable/kilo
db_sync "kilo"
# TODO(jhesketh): This is a bit of a hack until we update our datasets to
@@ -293,14 +296,14 @@ then
else
echo "Update database to current state of trunk"
git checkout master
- pip_requires
+ pip_requires master
db_sync "trunk"
git checkout working
fi
# Now run the patchset
echo "Now test the patchset"
-pip_requires
+pip_requires master
db_sync "patchset"
# =============================================================================