From 0f4795273910ebdccbcbc602bd749093bcd51e9b Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Mon, 11 Jun 2018 19:27:32 +0200 Subject: [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 --- mcp/config/states/baremetal_init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mcp/config') 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" -- cgit 1.2.3-korg