Browse code

Cleanup VM instances during unstack

Currently VMs created by a previous DevStack run still exists even
after re-run stack.sh. This leads to a failure in launching a VM after
the second run of stack.sh. We need to check the reason of the failure
by nova compute log and clean up remaining VMs. It is annoying.

IIRC we cleaned up existing VMs. While I failed to identify which commit
changed this behavior, I believe it is worth recovering it.

This commit changes unstack.sh to call cleanup_nova. cleanup_cinder()
already cleans up LVM volumes and some of them may be used by VMs,
so I believe it is reasonable to clean up VMs in unstack.sh.

Change-Id: I9fcbc5105e443037fada1ef6a76a078145964256

Akihiro Motoki authored on 2020/01/15 10:58:29
Showing 1 changed files
... ...
@@ -99,6 +99,7 @@ run_phase unstack
99 99
 
100 100
 if is_service_enabled nova; then
101 101
     stop_nova
102
+    cleanup_nova
102 103
 fi
103 104
 
104 105
 if is_service_enabled placement; then