mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
kernel: ignore connection problems while waiting for reboot
This commit is contained in:
parent
45e4c924fa
commit
29885f3e42
@ -187,11 +187,14 @@ def wait_for_reboot(ctx, need_install, timeout):
|
||||
teuthology.reconnect(ctx, timeout)
|
||||
for client in need_install.keys():
|
||||
log.info('Checking client {client} for new kernel version...'.format(client=client))
|
||||
if need_to_install(ctx, client, need_install[client]):
|
||||
assert time.time() - starttime < timeout, \
|
||||
'failed to install new kernel version within timeout'
|
||||
else:
|
||||
try:
|
||||
assert not need_to_install(ctx, client, need_install[client]), \
|
||||
'failed to install new kernel version within timeout'
|
||||
del need_install[client]
|
||||
except:
|
||||
# ignore connection resets and asserts while time is left
|
||||
if time.time() - starttime > timeout:
|
||||
raise
|
||||
time.sleep(1)
|
||||
|
||||
def task(ctx, config):
|
||||
|
Loading…
Reference in New Issue
Block a user