Browse code

bug 986401: xe vm-shutdown expects running instances in os_install_domU.sh

do not fail if the instance is already halted.

Change-Id: Id080535c1eb008c9fc7335c9004318bbfb41e1f7

Armando Migliaccio authored on 2012/04/21 06:58:00
Showing 1 changed files
... ...
@@ -150,7 +150,7 @@ if [ "$DO_SHUTDOWN" = "1" ]; then
150 150
     for uuid in `xe vm-list | grep -1 instance | grep uuid | sed "s/.*\: //g"`; do
151 151
         echo "Shutting down nova instance $uuid"
152 152
         xe vm-unpause uuid=$uuid || true
153
-        xe vm-shutdown uuid=$uuid
153
+        xe vm-shutdown uuid=$uuid || true
154 154
         xe vm-destroy uuid=$uuid
155 155
     done
156 156