[vcp] Catch 'no response' of salt minion as well 57/49557/1
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Fri, 22 Dec 2017 13:53:36 +0000 (17:53 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Fri, 22 Dec 2017 14:09:46 +0000 (18:09 +0400)
Salt minion could return 'no response' and cause an
unconfigured state of the vcp node(s), so catch this output after linux
state as well. Also clean up excess route on proxy nodes.

Change-Id: I3183fa09ff41a8f027ee789869bdae0c3962ab8f
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
mcp/config/states/virtual_control_plane
mcp/reclass/classes/cluster/baremetal-mcp-pike-common-ha/openstack_interface_vcp_triport.yml
mcp/reclass/classes/system

index 3856bef..cabe44a 100755 (executable)
@@ -52,7 +52,7 @@ 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 | " \
-  "tee /dev/stderr | grep -Fq 'Not connected'"
+  "tee /dev/stderr | grep -Eq '(Not connected|No response)'"
 
 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")")"
index c81493e..9068cc0 100644 (file)
@@ -19,11 +19,6 @@ parameters:
           type: eth
           proto: dhcp
           name: ${_param:dhcp_nic}
-          route:
-            mcpcontrol:
-              address: ${_param:opnfv_net_mcpcontrol}
-              netmask: ${_param:opnfv_net_mcpcontrol_mask}
-              gateway: ${_param:opnfv_infra_maas_node01_deploy_address}
         single_int:
           enabled: true
           type: eth
index 426fec4..86378e7 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 426fec4fa187be968eaf57374c956a361aa65411
+Subproject commit 86378e7534a28143478cbf010928b30bfef81afd