diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2017-08-23 04:44:45 +0200 |
---|---|---|
committer | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2017-08-23 04:46:34 +0200 |
commit | 2cc327653a8a294346e6d47b0c94e9486414608a (patch) | |
tree | 70a1fd58de73a8fd8365a0a3beba090bb87b2ac8 /patches/opnfv-fuel | |
parent | e8fe3642e0e83c5480b1d980a295b04fa4bcae5f (diff) |
p/fuel: states: maas: Remove retries for salt.virt
salt.virt always returns a non-zero status due to pillar parsing
issues. Until we fix this, drop retries which cause an infinite loop.
Change-Id: I451e0d4d054a19ac912ac29e1c37f49fcd96c17d
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'patches/opnfv-fuel')
-rw-r--r-- | patches/opnfv-fuel/0007-states-maas-Add-mcp.rsa.pub-to-authorized_keys.patch | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/patches/opnfv-fuel/0007-states-maas-Add-mcp.rsa.pub-to-authorized_keys.patch b/patches/opnfv-fuel/0007-states-maas-Add-mcp.rsa.pub-to-authorized_keys.patch index 2393e145..8265abef 100644 --- a/patches/opnfv-fuel/0007-states-maas-Add-mcp.rsa.pub-to-authorized_keys.patch +++ b/patches/opnfv-fuel/0007-states-maas-Add-mcp.rsa.pub-to-authorized_keys.patch @@ -11,11 +11,11 @@ Change-Id: I34f79848c52e36de8d981055880321a081420874 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> Signed-off-by: Guillermo Herrero <Guillermo.Herrero@enea.com> --- - mcp/config/states/maas | 7 +++++-- - 1 file changed, 5 insertions(+), 2 deletions(-) + mcp/config/states/maas | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mcp/config/states/maas b/mcp/config/states/maas -index 52a9b77..600578f 100755 +index 52a9b77..fecd991 100755 --- a/mcp/config/states/maas +++ b/mcp/config/states/maas @@ -69,6 +69,9 @@ while [ $rc -ne 0 ]; do @@ -23,10 +23,9 @@ index 52a9b77..600578f 100755 done -salt -C '* and not cfg01* and not mas01*' saltutil.sync_all --salt -C '* and not cfg01* and not mas01*' state.apply salt +wait_for "salt -C '* and not cfg01* and not mas01*' ssh.set_auth_key ${SUDO_USER} \ + $(awk 'NR==1{print $2}' $(eval echo ~${SUDO_USER}/.ssh/authorized_keys))" + +wait_for "salt -C '* and not cfg01* and not mas01*' saltutil.sync_all" -+wait_for "salt -C '* and not cfg01* and not mas01*' state.apply salt" + salt -C '* and not cfg01* and not mas01*' state.apply salt wait_for "salt -C '* and not cfg01* and not mas01*' state.apply linux,ntp" |