mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
reboot: Add timeout in error to help troubleshooting (#47216)
* reboot: Add timeout in error to help troubleshooting So we've been hit by 'Timed out waiting for boot_time check' and it was unclear what timeout was used for the boot_time check. By adding the timeout value it is easier to understand the used value, and verify if a change to the timeout is reflected in the output. * Add changelog fragment
This commit is contained in:
parent
14da4d66f2
commit
06eabc9783
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/reboot-show-timeout.yaml
Normal file
2
changelogs/fragments/reboot-show-timeout.yaml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- reboot - Expose timeout value in error message
|
|
@ -204,7 +204,7 @@ class ActionModule(ActionBase):
|
||||||
fail_count += 1
|
fail_count += 1
|
||||||
time.sleep(fail_sleep)
|
time.sleep(fail_sleep)
|
||||||
|
|
||||||
raise TimedOutException('Timed out waiting for %s' % (action_desc))
|
raise TimedOutException('Timed out waiting for %s (timeout=%s)' % (action_desc, reboot_timeout))
|
||||||
|
|
||||||
def perform_reboot(self):
|
def perform_reboot(self):
|
||||||
display.debug("%s: rebooting server" % self._task.action)
|
display.debug("%s: rebooting server" % self._task.action)
|
||||||
|
|
Loading…
Reference in a new issue