]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible: set CEPH_STABLE_RELEASE in start_tox() 911/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 10 Nov 2017 17:22:22 +0000 (18:22 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 14 Nov 2017 13:41:44 +0000 (14:41 +0100)
according to ceph/ceph-ansible#2165 we need to set `CEPH_STABLE_RELEASE`
in ceph/ceph-build.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
ceph-ansible-nightly/build/build
scripts/build_utils.sh

index ad5b0547170878950b9bc2e6f76b9ff7ce7dca04..9e0a7000e349f4d96998e1e736097de56cdc075f 100644 (file)
@@ -17,7 +17,9 @@ update_vagrant_boxes
 if [ "$RELEASE" == 'jewel' ] && [ "$CEPH_ANSIBLE_BRANCH" == 'stable-2.2' -o "$CEPH_ANSIBLE_BRANCH" == 'stable-3.0' ]; then
   start_tox tag-stable-3.0-jewel-centos-7
 elif [ "$RELEASE" == 'luminous' ] && [ "$CEPH_ANSIBLE_BRANCH" == 'stable-3.0' ]; then
-  start_tox tag-stable-3.0-jewel-centos-7
+  # start_tox(): <CEPH_DOCKER_IMAGE_TAG> <CEPH_STABLE_RELEASE>
+  # first, we play stable-3.0 delpoying jewel and then we test a new deployment with luminous.
+  start_tox tag-stable-3.0-jewel-centos-7 jewel
   start_tox tag-stable-3.0-luminous-centos-7
 elif [ "$RELEASE" == 'luminous' ] && [ "$CEPH_ANSIBLE_BRANCH" == 'master' ]; then
   start_tox tag-build-master-luminous-ubuntu-16.04
index 91fe0ec4d6264dc4244ad3fa928d398ac474a3a6..11e2252bc68ea157078685c18a1b37124ef5d11b 100644 (file)
@@ -457,9 +457,12 @@ update_vagrant_boxes() {
 }
 
 start_tox() {
+# $1 = CEPH_DOCKER_IMAGE_TAG
+# $2 = CEPH_STABLE_RELEASE (default value to $RELEASE which is injected by the job template)
 # the $SCENARIO var is injected by the job template. It maps
 # to an actual, defined, tox environment
-  if ! CEPH_DOCKER_IMAGE_TAG=$1 timeout 3h $VENV/tox -rv -e=$RELEASE-$ANSIBLE_VERSION-$SCENARIO --workdir=$WORKDIR -- --provider=libvirt; then
+local release=${2:-$RELEASE}
+  if ! CEPH_DOCKER_IMAGE_TAG=$1 CEPH_STABLE_RELEASE=$release timeout 3h $VENV/tox -rv -e=$RELEASE-$ANSIBLE_VERSION-$SCENARIO --workdir=$WORKDIR -- --provider=libvirt; then
     echo "ERROR: Job didn't complete successfully or got stuck for more than 3h."
     exit 1
   fi