aboutsummaryrefslogtreecommitdiffstats
path: root/mcp
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2019-01-13 18:49:07 +0100
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2019-01-15 13:52:10 +0000
commit6be6f921ef58007804641a6defe7536af03e6a97 (patch)
treee4e1b56ede6b7f4825c7cee4c1841210d1c94e5c /mcp
parent9ca1c4f8c3d5639d46c99b5fa3a9f06b485f0fb7 (diff)
[baremetal] Shutdown nodes from previous deploy
When noha scenarios are scheduled on the same CI POD currently running a previously deployed HA scenario, one baremetal node might remain unused (kvm03), connect to the new Salt master and interfere with the deployment. To prevent that, shutdown all baremetal nodes at the begining of the deployment. Change-Id: Ia9bad8b5d8348433cefac9aa76eca0de664f187d Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> (cherry picked from commit 267bd35d4b7656a7eb0236fa04acbbaba76f5da3)
Diffstat (limited to 'mcp')
-rw-r--r--mcp/scripts/lib.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh
index 947361e29..79767f0fa 100644
--- a/mcp/scripts/lib.sh
+++ b/mcp/scripts/lib.sh
@@ -47,6 +47,7 @@ function cleanup_uefi {
efibootmgr | grep -oP '(?<=Boot)[0-9]+(?=.*ubuntu)' | \
xargs -I{} efibootmgr --delete-bootnum --bootnum {}; \
rm -rf /boot/efi/*\"" || true
+ ${cmd_str} "sudo salt -C 'kvm* or cmp*' cmd.run 'shutdown now'" || true
}
function get_nova_compute_pillar_data {