summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-08-29 01:22:28 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-08-29 01:22:28 +0200
commitc9fa418334ac41f0ff4a448bfb807766ae7261b3 (patch)
treedd2bc1cd4a50c20c956a98d7b62b74b0235fc515
parent6a35ee2149e74b850120f7fcfec666448ad40fbd (diff)
p/fuel: states: maas: Retry linux state if no resp
Change-Id: I5bcfba9fc9536ae388e8e4b13e0826f7f2106613 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
-rw-r--r--patches/opnfv-fuel/0021-states-maas-Retry-linux-state-if-no-response.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/patches/opnfv-fuel/0021-states-maas-Retry-linux-state-if-no-response.patch b/patches/opnfv-fuel/0021-states-maas-Retry-linux-state-if-no-response.patch
new file mode 100644
index 00000000..d1f5ccb5
--- /dev/null
+++ b/patches/opnfv-fuel/0021-states-maas-Retry-linux-state-if-no-response.patch
@@ -0,0 +1,23 @@
+From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
+Date: Tue, 29 Aug 2017 01:21:30 +0200
+Subject: [PATCH] states: maas: Retry linux state if no response
+
+Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
+---
+ mcp/config/states/maas | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/mcp/config/states/maas b/mcp/config/states/maas
+index 9e0093b..c54225d 100755
+--- a/mcp/config/states/maas
++++ b/mcp/config/states/maas
+@@ -104,7 +104,8 @@ done
+
+ wait_for 10 "salt -C '* and not cfg01* and not mas01*' saltutil.sync_all"
+ wait_for 10 "salt -C 'E@^(?!cfg01|mas01|kvm|cmp00).*' state.apply salt"
+-wait_for 10 "salt -C 'E@^(?!cfg01|mas01|kvm|cmp00).*' state.apply linux,ntp"
++wait_for 10 "! salt -C 'E@^(?!cfg01|mas01|kvm|cmp00).*' state.apply linux,ntp | " \
++ "tee /dev/stderr | fgrep -q 'Not connected'"
+
+ wait_for 10 "salt -C 'E@^(?!cfg01|mas01|kvm|cmp00).*' ssh.set_auth_key ${SUDO_USER} \
+ $(awk 'NR==1{print $2}' $(eval echo ~${SUDO_USER}/.ssh/authorized_keys))"