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
This commit is contained in:
Armando Migliaccio 2012-04-20 22:58:00 +01:00
parent 32d847dad0
commit 7a5f7f2d91

View File

@ -150,7 +150,7 @@ if [ "$DO_SHUTDOWN" = "1" ]; then
for uuid in `xe vm-list | grep -1 instance | grep uuid | sed "s/.*\: //g"`; do
echo "Shutting down nova instance $uuid"
xe vm-unpause uuid=$uuid || true
xe vm-shutdown uuid=$uuid
xe vm-shutdown uuid=$uuid || true
xe vm-destroy uuid=$uuid
done