Fixes undercloud accidentally using wrong images/containers 63/63663/4
authorTim Rozet <trozet@redhat.com>
Wed, 17 Oct 2018 15:17:41 +0000 (11:17 -0400)
committerTim Rozet <trozet@redhat.com>
Thu, 18 Oct 2018 03:16:47 +0000 (23:16 -0400)
Our undercloud initial install was failing with queens because the
--use-heat arg does not work the same way as master/rocky. Therefore the
undercloud install would fail, and then try to reinstall on the next
ansible task. This one would succeed, via container installation because
we were using the wrong undercloud/overcloud disk images.

Change-Id: Ifb829aeeec991ba6dbe582fda3e9ee6b9bc733df
Signed-off-by: Tim Rozet <trozet@redhat.com>
apex/builders/common_builder.py
apex/common/constants.py
lib/ansible/playbooks/configure_undercloud.yml

index b8894ec..d3ddae4 100644 (file)
@@ -110,7 +110,8 @@ def is_patch_promoted(change, branch, docker_image=None):
     # Patch applies to overcloud/undercloud
     if docker_image is None:
         oc_url = urllib.parse.urljoin(
-            con.UPSTREAM_RDO.replace('master', branch), 'overcloud-full.tar')
+            con.UPSTREAM_RDO.replace(con.DEFAULT_OS_VERSION,
+                                     branch), 'overcloud-full.tar')
         oc_mtime = utils.get_url_modified_date(oc_url)
         if oc_mtime > submitted_date:
             logging.debug("oc image was last modified at {}, which is"
index b0c21d1..68815be 100644 (file)
@@ -52,8 +52,8 @@ PUPPET_ODL_URL = 'https://git.opendaylight.org/gerrit/integration/packaging' \
 DEBUG_OVERCLOUD_PW = 'opnfvapex'
 NET_ENV_FILE = 'network-environment.yaml'
 DEPLOY_TIMEOUT = 120
-UPSTREAM_RDO = 'https://images.rdoproject.org/master/delorean/current' \
-               '-tripleo-rdo/'
+UPSTREAM_RDO = 'https://images.rdoproject.org/{}/delorean/current' \
+               '-tripleo-rdo/'.format(DEFAULT_OS_VERSION)
 OPENSTACK_GERRIT = 'https://review.openstack.org'
 
 DOCKER_TAG = 'current-tripleo-rdo'
index 1fb2283..e8e76f0 100644 (file)
@@ -63,7 +63,7 @@
       when: aarch64
     - block:
         - name: undercloud install
-          shell: openstack undercloud install --use-heat False &> apex-undercloud-install.log
+          shell: openstack undercloud install &> apex-undercloud-install.log
           become: yes
           become_user: stack
       rescue: