summaryrefslogtreecommitdiffstats
path: root/patches/opnfv-fuel/0014-Add-opnfv-user-to-the-deployment.patch
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-10-19 17:35:40 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-10-19 15:35:30 +0000
commit56298a691ccef65102bbf139f9cec097230615e3 (patch)
treed28b2c3527c560f8441b9e364c30156d8d293458 /patches/opnfv-fuel/0014-Add-opnfv-user-to-the-deployment.patch
parent652d99207dfc616e56ba19a8d9442817675581db (diff)
u/fuel: Bump & rebase for infinite loop removal
Change-Id: Ia3d12bceae483571e1b1c91e2d0150c12b55b73b Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> (cherry picked from commit 05b5146d1bf7b02a72598bbd41e6b4817ab64456)
Diffstat (limited to 'patches/opnfv-fuel/0014-Add-opnfv-user-to-the-deployment.patch')
-rw-r--r--patches/opnfv-fuel/0014-Add-opnfv-user-to-the-deployment.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/patches/opnfv-fuel/0014-Add-opnfv-user-to-the-deployment.patch b/patches/opnfv-fuel/0014-Add-opnfv-user-to-the-deployment.patch
index d6a214de..e1570c67 100644
--- a/patches/opnfv-fuel/0014-Add-opnfv-user-to-the-deployment.patch
+++ b/patches/opnfv-fuel/0014-Add-opnfv-user-to-the-deployment.patch
@@ -21,7 +21,7 @@ Signed-off-by: Guillermo Herrero <Guillermo.Herrero@enea.com>
create mode 100644 mcp/salt-formulas/opnfv/adduser.sls
diff --git a/mcp/config/states/virtual_control_plane b/mcp/config/states/virtual_control_plane
-index 54cd1f4..a7ca03b 100755
+index 78076f5..955281b 100755
--- a/mcp/config/states/virtual_control_plane
+++ b/mcp/config/states/virtual_control_plane
@@ -14,6 +14,7 @@ source "$(dirname "${BASH_SOURCE[0]}")/../../scripts/lib.sh"
@@ -32,14 +32,14 @@ index 54cd1f4..a7ca03b 100755
salt -C 'kvm*' state.apply linux.network
salt -C 'cmp*' state.apply linux.system
salt -C 'cmp*' state.apply linux.network || true
-@@ -42,6 +43,7 @@ while [ $rc -ne 0 ]; do
+@@ -44,6 +45,7 @@ while [ $rc -ne 0 ] && [ ${attempt} -lt ${total_attempts} ]; do
rc=0
for node in $vcp_nodes; do
salt "$node" test.ping 2>/dev/null || { rc=$?; break; };
+ salt -C "$node" state.apply opnfv.adduser
done
sleep 5
- done
+ ((attempt+=1))
diff --git a/mcp/reclass/classes/cluster/all-mcp-ocata-common/opnfv/init.yml b/mcp/reclass/classes/cluster/all-mcp-ocata-common/opnfv/init.yml
index aa780e6..e4069c0 100644
--- a/mcp/reclass/classes/cluster/all-mcp-ocata-common/opnfv/init.yml