The devstack script sometimes failed to clean up the left over
instances. This patch will utilize the xe vm-uninstall force=true
command to get rid of the instances.
Change-Id: I3450e2d5c9a4b1fe8ede39c4cc5c337cd541ea35
| ... | ... |
@@ -138,9 +138,7 @@ if [ "$DO_SHUTDOWN" = "1" ]; then |
| 138 | 138 |
# Destroy any instances that were launched |
| 139 | 139 |
for uuid in `xe vm-list | grep -1 instance | grep uuid | sed "s/.*\: //g"`; do |
| 140 | 140 |
echo "Shutting down nova instance $uuid" |
| 141 |
- xe vm-unpause uuid=$uuid || true |
|
| 142 |
- xe vm-shutdown uuid=$uuid || true |
|
| 143 |
- xe vm-destroy uuid=$uuid |
|
| 141 |
+ xe vm-uninstall uuid=$uuid force=true |
|
| 144 | 142 |
done |
| 145 | 143 |
|
| 146 | 144 |
# Destroy orphaned vdis |