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:
Dag Wieers 2018-10-18 20:42:39 +02:00 committed by Sam Doran
parent 14da4d66f2
commit 06eabc9783
2 changed files with 3 additions and 1 deletions

View file

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

View file

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