Moving undercloud root pw to debug only 75/32675/1
authorDan Radez <dradez@redhat.com>
Fri, 31 Mar 2017 03:37:32 +0000 (23:37 -0400)
committerDan Radez <dradez@redhat.com>
Fri, 31 Mar 2017 03:37:32 +0000 (23:37 -0400)
Change-Id: I380d39b6c78519487dec3b053c53a9579df57f06
Signed-off-by: Dan Radez <dradez@redhat.com>
build/undercloud.sh
lib/undercloud-functions.sh

index e3194e2..de96f02 100755 (executable)
@@ -67,7 +67,6 @@ LIBGUESTFS_BACKEND=direct virt-customize \
     --install "openstack-heat-api" \
     --upload ${BUILD_ROOT}/patches/0001-Removes-doing-yum-update.patch:/usr/lib/python2.7/site-packages/ \
     --run-command "cd /usr/lib/python2.7/site-packages/ && patch -p1 < 0001-Removes-doing-yum-update.patch" \
-    --root-password password:stack \
     -a undercloud_build.qcow2
 
 mv -f undercloud_build.qcow2 undercloud.qcow2
index 2a370bf..7108dcf 100755 (executable)
@@ -55,6 +55,10 @@ function setup_undercloud_vm {
 
   # if the VM is not running update the authkeys and start it
   if ! virsh list | grep undercloud > /dev/null; then
+    if [ "$debug" == 'TRUE' ]; then
+      LIBGUESTFS_BACKEND=direct virt-customize -a $undercloud_dst --root-password password:opnfvapex
+    fi
+
     echo "Injecting ssh key to Undercloud VM"
     LIBGUESTFS_BACKEND=direct virt-customize -a $undercloud_dst --run-command "mkdir -p /root/.ssh/" \
         --upload ~/.ssh/id_rsa.pub:/root/.ssh/authorized_keys \