]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
cobbler: Allow a little leeway in rc.local when pinging http_server 382/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 27 Feb 2018 02:36:55 +0000 (21:36 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 27 Feb 2018 02:36:55 +0000 (21:36 -0500)
DHCP might not complete within that one second.  We'll relax the timeout
a bit.

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/cobbler/templates/snippets/cephlab_rc_local

index 5dcee1b97fb82d101eff52b7677effed94eb3def..b87bcd213629bb80ad6a4296d513b782cdf2102a 100644 (file)
@@ -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.