Fixes controller Image to be overcloud-full 07/12007/4
authorTim Rozet <trozet@redhat.com>
Thu, 7 Apr 2016 15:52:01 +0000 (11:52 -0400)
committerTim Rozet <trozet@redhat.com>
Thu, 7 Apr 2016 18:34:37 +0000 (14:34 -0400)
New param introduced into THT that exposes the image to use for the
Controller.  The new var is defaulted to use overcloud-control and is
causing master to fail.

Changes Include:
 - Adds opnfv-environment yaml file to use for common parameters
   required in all deployments
 - Defaults controllerImage to be overcloud-full

Change-Id: I5da8921d9c9efd167748a3d6f42866d18f46d2b7
Signed-off-by: Tim Rozet <trozet@redhat.com>
build/opnfv-environment.yaml [new file with mode: 0644]
build/undercloud.sh
ci/deploy.sh

diff --git a/build/opnfv-environment.yaml b/build/opnfv-environment.yaml
new file mode 100644 (file)
index 0000000..127a728
--- /dev/null
@@ -0,0 +1,5 @@
+#Environment file used to list common parameters required for all deployment
+#types
+
+parameters:
+  controllerImage: overcloud-full
index 02ff3ff..f39ee73 100755 (executable)
@@ -27,6 +27,7 @@ LIBGUESTFS_BACKEND=direct virt-customize \
     --run-command "curl http://download.opensuse.org/repositories/Openwsman/CentOS_CentOS-7/Openwsman.repo > /etc/yum.repos.d/wsman.repo" \
     --run-command "yum update -y openwsman*" \
     --run-command "cp /usr/share/instack-undercloud/undercloud.conf.sample /home/stack/undercloud.conf && chown stack:stack /home/stack/undercloud.conf" \
+    --upload ../opnfv-environment.yaml:/home/stack/ \
     -a undercloud.qcow2
 
 # Patch in OpenDaylight installation and configuration
@@ -34,3 +35,4 @@ LIBGUESTFS_BACKEND=direct virt-customize \
 #                                         --run-command "cd /usr/share/openstack-tripleo-heat-templates/ && patch -Np1 < /tmp/opnfv-tripleo-heat-templates.patch" \
 #                                         -a undercloud.qcow2
 popd > /dev/null
+
index 9e317c8..c14a91e 100755 (executable)
@@ -922,6 +922,8 @@ function undercloud_prep_overcloud_deploy {
      DEPLOY_OPTIONS+=" --control-flavor control --compute-flavor compute"
   fi
 
+  DEPLOY_OPTIONS+=" -e opnfv-environment.yaml"
+
   echo -e "${blue}INFO: Deploy options set:\n${DEPLOY_OPTIONS}${reset}"
 
   ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI