From a00f461de44177709b0d8a152822a2fa4f33673a Mon Sep 17 00:00:00 2001 From: David Galloway Date: Mon, 26 Feb 2018 21:36:55 -0500 Subject: [PATCH] cobbler: Allow a little leeway in rc.local when pinging http_server DHCP might not complete within that one second. We'll relax the timeout a bit. Signed-off-by: David Galloway --- roles/cobbler/templates/snippets/cephlab_rc_local | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/cobbler/templates/snippets/cephlab_rc_local b/roles/cobbler/templates/snippets/cephlab_rc_local index 5dcee1b9..b87bcd21 100644 --- a/roles/cobbler/templates/snippets/cephlab_rc_local +++ b/roles/cobbler/templates/snippets/cephlab_rc_local @@ -38,7 +38,7 @@ if [ ! -f /.cephlab_net_configured ]; then set +e ifup $nic #end raw - if ! timeout 1s ping -I $nic -nq -c1 $http_server 2>&1 >/dev/null; then + if ! timeout 5s ping -I $nic -nq -c1 $http_server 2>&1 >/dev/null; then #raw # If we can't ping our Cobbler host, remove the DHCP config for this NIC. # It must either be on a non-routable network or has no reachable DHCP server. -- 2.47.3