aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/config/states
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-09-23 02:55:24 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-23 02:55:24 +0000
commit6205a5cf55ba25a9a632ba8db930e1e0ab07b781 (patch)
tree9a8d47c8eb59d5f7ef3bf637c3c6d5fccd858bb8 /mcp/config/states
parentb0c72d0c9bf3ccdf2549d9f5ddeca49085aae636 (diff)
parentfc8846206dad84bdd356500068b740603306300e (diff)
Merge "states: maas: Add 30s delay in re-deploy attempt" into stable/euphrates
Diffstat (limited to 'mcp/config/states')
-rwxr-xr-xmcp/config/states/maas2
1 files changed, 2 insertions, 0 deletions
diff --git a/mcp/config/states/maas b/mcp/config/states/maas
index 11c89c99b..e1ffa8733 100755
--- a/mcp/config/states/maas
+++ b/mcp/config/states/maas
@@ -28,6 +28,7 @@ function maas_fixup() {
for node_system_id in ${fcnodes}; do
salt -C 'mas01*' state.apply maas.machines.delete \
pillar="{'system_id': '${node_system_id}'}"
+ sleep 30
done
if [ -n "${fcnodes}" ]; then
salt -C 'mas01*' state.apply maas.machines
@@ -40,6 +41,7 @@ function maas_fixup() {
for node_system_id in ${fdnodes}; do
salt -C 'mas01*' state.apply maas.machines.mark_broken_fixed \
pillar="{'system_id': '${node_system_id}'}"
+ sleep 30
done
if [ -n "${fdnodes}" ]; then
salt -C 'mas01*' state.apply maas.machines.deploy