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:
parent
32d847dad0
commit
7a5f7f2d91
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user