summaryrefslogtreecommitdiffstats
path: root/lib/undercloud-functions.sh
diff options
context:
space:
mode:
authorDan Radez <dradez@redhat.com>2016-10-06 10:28:02 -0400
committerTim Rozet <trozet@redhat.com>2016-10-10 13:25:20 +0000
commit259a65bd7283b39caf1b57b5523c8bfcbcb07378 (patch)
tree2c6da3c49194831dca1a2abddec1afc053f78852 /lib/undercloud-functions.sh
parentc65e51f972578231104f0d271ef278ed5be1d84c (diff)
set undercloud VM to autostart
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>
Diffstat (limited to 'lib/undercloud-functions.sh')
-rwxr-xr-xlib/undercloud-functions.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/undercloud-functions.sh b/lib/undercloud-functions.sh
index 5f455889..fea5f620 100755
--- a/lib/undercloud-functions.sh
+++ b/lib/undercloud-functions.sh
@@ -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