summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2017-02-06 17:18:11 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-06 17:18:11 +0000
commit37be24917bc1e00c587414fbb499011b0b6a2050 (patch)
tree5e190eb18c10b1b29fbcc6a9fc60ddff34024f69
parentfa5a2f73693254e5370f61a86347999685115609 (diff)
parentaa9d01c7292f94c1a2c8354f559bd82a4ce0d2e0 (diff)
Merge "prototypes: bifrost: Drop the entire ironic database"
-rwxr-xr-xprototypes/bifrost/scripts/destroy-env.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/prototypes/bifrost/scripts/destroy-env.sh b/prototypes/bifrost/scripts/destroy-env.sh
index f6c66a876..14869b0e2 100755
--- a/prototypes/bifrost/scripts/destroy-env.sh
+++ b/prototypes/bifrost/scripts/destroy-env.sh
@@ -23,12 +23,9 @@ virsh undefine compute00.opnfvlocal || true
service ironic-conductor stop || true
-echo "removing from database"
+echo "removing ironic database"
if $(which mysql &> /dev/null); then
- mysql -u root ironic --execute "truncate table ports;"
- mysql -u root ironic --execute "delete from node_tags;"
- mysql -u root ironic --execute "delete from nodes;"
- mysql -u root ironic --execute "delete from conductors;"
+ mysql -u root ironic --execute "drop database ironic;"
fi
echo "removing leases"
[[ -e /var/lib/misc/dnsmasq/dnsmasq.leases ]] && > /var/lib/misc/dnsmasq/dnsmasq.leases