Browse Source

Improve logging around ansible timeouts

When a job gets killed by the timeout watchdog the log only contains
the note 'Ansible timeout exceeded' but no information about what the
timeout actually was. Add this to this message so unexpected timeouts
are easier to debug.

Change-Id: I4f7f29e649cf042e07408ec05cb4d938a209dddd
changes/91/633191/1
Tobias Henkel 2 years ago
parent
commit
057374c9a2
No known key found for this signature in database GPG Key ID: 3750DEC158E5FA2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      zuul/executor/server.py

+ 1
- 1
zuul/executor/server.py View File

@ -1854,7 +1854,7 @@ class AnsibleJob(object):
ret = None
if timeout:
watchdog = Watchdog(timeout, self._ansibleTimeout,
("Ansible timeout exceeded",))
("Ansible timeout exceeded: %s" % timeout,))
watchdog.start()
try:
# Use manual idx instead of enumerate so that RESULT lines


Loading…
Cancel
Save