Commit fed371bd authored by Dan Radez's avatar Dan Radez
Browse files

cleaning up libvirt storage after undefine



Change-Id: Id03828b1a61c2f9a3c56821d8ca31f2d82251c9b
Signed-off-by: default avatarDan Radez <dradez@redhat.com>
parent 5928e7a6
...@@ -72,11 +72,11 @@ fi ...@@ -72,11 +72,11 @@ fi
ssh -T -o "StrictHostKeyChecking no" stack@localhost <<EOI ssh -T -o "StrictHostKeyChecking no" stack@localhost <<EOI
set -e set -e
virsh destroy instack 2> /dev/null || echo -n '' virsh destroy instack 2> /dev/null || echo -n ''
virsh undefine instack 2> /dev/null || echo -n '' virsh undefine instack --remove-all-storage 2> /dev/null || echo -n ''
virsh destroy baremetalbrbm_0 2> /dev/null || echo -n '' virsh destroy baremetalbrbm_0 2> /dev/null || echo -n ''
virsh undefine baremetalbrbm_0 2> /dev/null || echo -n '' virsh undefine baremetalbrbm_0 --remove-all-storage 2> /dev/null || echo -n ''
virsh destroy baremetalbrbm_1 2> /dev/null || echo -n '' virsh destroy baremetalbrbm_1 2> /dev/null || echo -n ''
virsh undefine baremetalbrbm_1 2> /dev/null || echo -n '' virsh undefine baremetalbrbm_1 --remove-all-storage 2> /dev/null || echo -n ''
instack-virt-setup instack-virt-setup
EOI EOI
...@@ -204,17 +204,17 @@ done ...@@ -204,17 +204,17 @@ done
# move and Sanitize private keys from instack.json file # move and Sanitize private keys from instack.json file
mv stack/instackenv.json instackenv-virt.json mv stack/instackenv.json instackenv-virt.json
sed -i '/pm_password/c\ "pm_password": "INSERT_STACK_USER_PRIV_KEY",' instackenv-virt.json sed -i '/pm_password/c\ "pm_password": "INSERT_STACK_USER_PRIV_KEY",' instackenv-virt.json
sed -i '/ssh-key/c\ "ssh-key": "INSERT_STACK_USER_PRIV_KEY",' instackenv-virt.json sed -i '/ssh-key/c\ "ssh-key": "INSERT_STACK_USER_PRIV_KEY",' instackenv-virt.json
# clean up the VMs # clean up the VMs
ssh -T -o "StrictHostKeyChecking no" stack@localhost <<EOI ssh -T -o "StrictHostKeyChecking no" stack@localhost <<EOI
set -e set -e
virsh destroy instack 2> /dev/null || echo -n '' virsh destroy instack 2> /dev/null || echo -n ''
virsh undefine instack 2> /dev/null || echo -n '' virsh undefine instack --remove-all-storage 2> /dev/null || echo -n ''
virsh destroy baremetalbrbm_0 2> /dev/null || echo -n '' virsh destroy baremetalbrbm_0 2> /dev/null || echo -n ''
virsh undefine baremetalbrbm_0 2> /dev/null || echo -n '' virsh undefine baremetalbrbm_0 --remove-all-storage 2> /dev/null || echo -n ''
virsh destroy baremetalbrbm_1 2> /dev/null || echo -n '' virsh destroy baremetalbrbm_1 2> /dev/null || echo -n ''
virsh undefine baremetalbrbm_1 2> /dev/null || echo -n '' virsh undefine baremetalbrbm_1 --remove-all-storage 2> /dev/null || echo -n ''
EOI EOI
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment