summaryrefslogtreecommitdiffstats
path: root/prototypes/bifrost/scripts/destroy-env.sh
diff options
context:
space:
mode:
Diffstat (limited to 'prototypes/bifrost/scripts/destroy-env.sh')
-rwxr-xr-xprototypes/bifrost/scripts/destroy-env.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/prototypes/bifrost/scripts/destroy-env.sh b/prototypes/bifrost/scripts/destroy-env.sh
index b73092b0f..1138da904 100755
--- a/prototypes/bifrost/scripts/destroy-env.sh
+++ b/prototypes/bifrost/scripts/destroy-env.sh
@@ -20,6 +20,10 @@ for vm in $(virsh list --all --name); do
virsh destroy $vm || true
virsh undefine $vm || true
done
+# Delete all hosts from vbmc (look for a port number)
+for vm in $(vbmc list | awk '/[0-9]/{{ print $2 }}'); do
+ vbmc delete $vm
+done
service ironic-conductor stop || true
@@ -47,6 +51,6 @@ rm -rf /var/lib/libvirt/images/*.qcow2
echo "restarting services"
service dnsmasq restart || true
service libvirtd restart
-service ironic-api restart || true
+service ironic-api restart || true
service ironic-conductor start || true
service ironic-inspector restart || true