aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/config
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-06-11 19:27:32 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-06-11 19:27:32 +0200
commit0f4795273910ebdccbcbc602bd749093bcd51e9b (patch)
treeba16e191c24008949249bd6dd045fa462841a97a /mcp/config
parent327cf3fb6a1c5745fa9666d4e2762ee1e4eac853 (diff)
[ha] Retry salt.minion state apply
Baremental compute nodes time out with 'Not connected' or 'No response' while trying to apply `salt.minion` highstate after the Salt 2017.7 bump, retry applying it up to 5 times. Change-Id: I67f74c65a7cebe0a0b4c2812fa0ced6c1144be58 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'mcp/config')
-rwxr-xr-xmcp/config/states/baremetal_init2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcp/config/states/baremetal_init b/mcp/config/states/baremetal_init
index 91a3c1ec0..c02333894 100755
--- a/mcp/config/states/baremetal_init
+++ b/mcp/config/states/baremetal_init
@@ -24,7 +24,7 @@ salt -C 'kvm* or cmp*' file.replace $debian_ip_source \
salt -C 'kvm* or cmp*' pkg.install bridge-utils
salt -C 'kvm*' state.apply linux.network,linux.system.kernel
-salt -C 'kvm* or cmp*' state.apply salt.minion
+wait_for 5.0 "salt -C 'kvm* or cmp*' state.apply salt.minion"
wait_for 5.0 "salt -C 'cmp*' state.apply linux.system"
# wrap distro `route` binary to silence errors when route already exists
wait_for 5.0 "salt -C 'kvm* or cmp*' state.apply opnfv.route_wrapper"