Fixes no root pw on perf images 53/18153/1
authorTim Rozet <trozet@redhat.com>
Mon, 8 Aug 2016 14:41:05 +0000 (10:41 -0400)
committerTim Rozet <trozet@redhat.com>
Mon, 8 Aug 2016 14:43:54 +0000 (10:43 -0400)
Bug where root password was not being set on overcloud nodes when perf
options were specified in deploy settings.

JIRA: APEX-224

Change-Id: I14b8240f40d5901aabdd53814143e0fa002df92b
Signed-off-by: Tim Rozet <trozet@redhat.com>
lib/overcloud-deploy-functions.sh

index e613dae..2d35232 100755 (executable)
@@ -105,6 +105,10 @@ EOI
     exit 1
   fi
 
+  if [ "$debug" == 'TRUE' ]; then
+    ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" "LIBGUESTFS_BACKEND=direct virt-customize -a overcloud-full.qcow2 --root-password password:opnfvapex"
+  fi
+
   # Set ODL version accordingly
   if [[ "${deploy_options_array['sdn_controller']}" == 'opendaylight' && "${deploy_options_array['odl_version']}" == 'boron' ]]; then
     ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI
@@ -208,10 +212,6 @@ EOI
   echo -e "${blue}INFO: Deploy options set:\n${DEPLOY_OPTIONS}${reset}"
 
   ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI
-if [ "$debug" == 'TRUE' ]; then
-    LIBGUESTFS_BACKEND=direct virt-customize -a overcloud-full.qcow2 --root-password password:opnfvapex
-fi
-
 if [ "${deploy_options_array['tacker']}" == 'False' ]; then
     sed -i '/EnableTacker:/c\  EnableTacker: false' opnfv-environment.yaml
 fi