Makes flavor consistent in virtual/baremetal deploys 99/17099/1
authorTim Rozet <trozet@redhat.com>
Mon, 18 Jul 2016 21:34:59 +0000 (17:34 -0400)
committerTim Rozet <trozet@redhat.com>
Mon, 18 Jul 2016 21:34:59 +0000 (17:34 -0400)
Changes include:
 - Fixes bug where baremetal control nodes would deploy to ironic nodes
   labeled 'compute', and cause deployment failure
 - Makes virtual deployments also use flavor types when deploying

JIRA: APEX-205

Change-Id: I84e1a6d1e2ccc3391ad2b4e34ea6ca62d480d64f
Signed-off-by: Tim Rozet <trozet@redhat.com>
build/opnfv-environment.yaml
lib/overcloud-deploy-functions.sh

index 7a3ae73..fe37aba 100644 (file)
@@ -3,7 +3,8 @@
 
 parameters:
   controllerImage: overcloud-full
-  OvercloudControlFlavor: baremetal
+  OvercloudControlFlavor: control
+  OvercloudComputeFlavor: compute
   ControllerEnableSwiftStorage: false
   EnableSahara: false
   ExtraConfig:
index 992d22a..3652240 100755 (executable)
@@ -183,9 +183,8 @@ EOI
      DEPLOY_OPTIONS+=" --ntp-server $ntp_server"
   fi
 
-  if [[ ! "$virtual" == "TRUE" ]]; then
-     DEPLOY_OPTIONS+=" --control-flavor control --compute-flavor compute"
-  else
+  DEPLOY_OPTIONS+=" --control-flavor control --compute-flavor compute"
+  if [[ "$virtual" == "TRUE" ]]; then
      DEPLOY_OPTIONS+=" -e virtual-environment.yaml"
   fi