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>
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()
@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