]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
fog: Wait 10 minutes for machine to be reachable after deploy 1158/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 27 Feb 2018 18:29:56 +0000 (13:29 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 20 Mar 2018 18:29:13 +0000 (14:29 -0400)
A lot's going on in rc.local after a machine is provisioned with FOG.  5
minutes is a little aggressive when taking into account the time it
takes for:
 - The machine to reboot after the FOG task completes
 - BIOS to load
 - DHCP/PXE/TFTP to timeout (double this if NIC order isn't correct)
 - OS to boot and rc.local to do its magic

Signed-off-by: David Galloway <dgallowa@redhat.com>
teuthology/provision/fog.py
teuthology/provision/test/test_fog.py

index 3e08e038e0667a36b9b06c5018a530b8b2cf0774..fc28ecdfcf3ac16aa5a627b11a51d0048843df14 100644 (file)
@@ -257,7 +257,7 @@ class FOG(object):
 
     def _wait_for_ready(self):
         """ Attempt to connect to the machine via SSH """
-        with safe_while(sleep=6, tries=50) as proceed:
+        with safe_while(sleep=6, tries=100) as proceed:
             while proceed():
                 try:
                     self.remote.connect()
index 61c342c43bf34eb4538784801eedd80c41b8a5cd..f4a791f1dc42bf8da62a5c4bf5a63ed7c3c8dfd6 100644 (file)
@@ -285,13 +285,13 @@ class TestFOG(object):
 
     @mark.parametrize(
         'tries',
-        [1, 51],
+        [1, 101],
     )
     def test_wait_for_ready(self, tries):
         connect_results = [MaxWhileTries for i in range(tries)] + [True]
         obj = self.klass('name.fqdn', 'type', '1.0')
         self.mocks['m_Remote_connect'].side_effect = connect_results
-        if tries >= 50:
+        if tries >= 100:
             with raises(MaxWhileTries):
                 obj._wait_for_ready()
             return