From: David Galloway Date: Tue, 27 Feb 2018 02:36:55 +0000 (-0500) Subject: cobbler: Allow a little leeway in rc.local when pinging http_server X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a00f461de44177709b0d8a152822a2fa4f33673a;p=ceph-cm-ansible.git 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 --- 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.