summaryrefslogtreecommitdiffstats
path: root/mcp/scripts/lib_jump_deploy.sh
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2019-01-16 14:03:48 +0400
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2019-01-16 15:40:07 +0000
commitc4d457bfdcedde4f3b875701d49f301768bb8129 (patch)
tree619a729e035478873ea39c7fa8ca66b301c505c1 /mcp/scripts/lib_jump_deploy.sh
parentb7fd67db600be1212d1b56def62b14f1bf79d04a (diff)
Make shutdown only on physical nodes
Change-Id: If167e7a6bdcdccd6b6df43bd5cac54250abec61a Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com> (cherry picked from commit 352e7bb783b5cb70a41acff26d4a7635ba9aeaec)
Diffstat (limited to 'mcp/scripts/lib_jump_deploy.sh')
-rw-r--r--mcp/scripts/lib_jump_deploy.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcp/scripts/lib_jump_deploy.sh b/mcp/scripts/lib_jump_deploy.sh
index d8b62fd7c..9c4d8fb5a 100644
--- a/mcp/scripts/lib_jump_deploy.sh
+++ b/mcp/scripts/lib_jump_deploy.sh
@@ -194,7 +194,7 @@ function __apt_repos_pkgs_image {
function __cleanup_vms {
# clean up existing nodes
for node in $(${VIRSH} list --name | grep -P '\w{3}\d{2}'); do
- ${VIRSH} destroy "${node}"
+ ${VIRSH} destroy "${node}" 2>/dev/null || true
done
for node in $(${VIRSH} list --name --all | grep -P '\w{3}\d{2}'); do
${VIRSH} domblklist "${node}" | awk '/^.da/ {print $2}' | \