aboutsummaryrefslogtreecommitdiffstats
path: root/mcp
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-11-28 19:53:50 +0100
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-11-29 11:22:46 +0000
commitd35d6cc6a14800508b5a4e360d51efda1ddb91d8 (patch)
treee7aa822cd85edd21d032ce212dbb339374df1be0 /mcp
parente3302dfa84ddc65fc1b8f79a209fa0b621be379c (diff)
[baremetal] Fix prx stale route via MaaS DHCP
Although we add default routes via public network and disable DHCP client from setting new routes, until we reboot the prx* nodes we still have the stale route originally set at initial boot. Change-Id: Ib8e5fb67c7da00684e0ac21984fc4661d3820d83 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> (cherry picked from commit 7daf7f128714021711970557129a23a86cce2a72)
Diffstat (limited to 'mcp')
-rwxr-xr-xmcp/config/states/virtual_control_plane3
1 files changed, 3 insertions, 0 deletions
diff --git a/mcp/config/states/virtual_control_plane b/mcp/config/states/virtual_control_plane
index c355126f7..b08a31ce6 100755
--- a/mcp/config/states/virtual_control_plane
+++ b/mcp/config/states/virtual_control_plane
@@ -80,3 +80,6 @@ wait_for 10 "salt -C 'E@^(?!cfg01|mas01|kvm|cmp00).*' ssh.set_auth_key ${SUDO_US
# Disable proxy dhcp routes after installation
salt -C 'prx*' file.write /etc/dhcp/dhclient-enter-hooks.d/no-default-route \
args='unset new_routers'
+salt -C 'prx*' system.reboot
+wait_for 30 "! salt -C 'prx*' test.ping | " \
+ "tee /dev/stderr | grep -Fq 'Not connected'"