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
pull/46221/head
Dag Wieers 6 years ago committed by Sam Doran
parent 14da4d66f2
commit 06eabc9783

@ -0,0 +1,2 @@
minor_changes:
- reboot - Expose timeout value in error message

@ -204,7 +204,7 @@ class ActionModule(ActionBase):
fail_count += 1
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):
display.debug("%s: rebooting server" % self._task.action)

Loading…
Cancel
Save