set undercloud VM to autostart 19/22919/1
authorDan Radez <dradez@redhat.com>
Thu, 6 Oct 2016 14:28:02 +0000 (10:28 -0400)
committerTim Rozet <trozet@redhat.com>
Mon, 10 Oct 2016 13:25:20 +0000 (13:25 +0000)
When an apex deployment reboot's it fails to come back clean because it
expects to connect to the undercloud which is not set to autostart.

JIRA: APEX-289

Change-Id: Ia4984a3de68067d7c68aeb5ae955ff358865ce79
Signed-off-by: Dan Radez <dradez@redhat.com>
lib/undercloud-functions.sh

index 5f45588..fea5f62 100755 (executable)
@@ -62,6 +62,7 @@ function setup_undercloud_vm {
         --run-command "cp /root/.ssh/authorized_keys /home/stack/.ssh/" \
         --run-command "chown stack:stack /home/stack/.ssh/authorized_keys && chmod 600 /home/stack/.ssh/authorized_keys"
     virsh start undercloud
+    virsh autostart undercloud
   fi
 
   sleep 10 # let undercloud get started up