From f91a4783b6daf08573da4b72f55cb1dca68680bd Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Mon, 20 Mar 2017 10:21:37 +0000 Subject: prototypes: bifrost: destroy-env: Delete nodes from vbmc Upstream commit 12376b958e76 ("Use virtualbmc for virtual BM nodes") moved the VM IPMI management from the ssh drivers to the vbmc one. As a result, we need to clear all the nodes from vbmc during cleanup. Change-Id: I2a4e7233874c4fad8df525c8f7b526df17a8211f Signed-off-by: Markos Chandras --- prototypes/bifrost/scripts/destroy-env.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/prototypes/bifrost/scripts/destroy-env.sh b/prototypes/bifrost/scripts/destroy-env.sh index b73092b0f..8a5014468 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 -- cgit 1.2.3-korg