Red Hat Bugzilla – Bug 977586
harness failed to run task: exception while processing peer roles: AttributeError: 'bool' object has no attribute 'items'
Last modified: 2018-02-05 19:41:31 EST
Description of problem:
The external watchdog triggered on the second task in a recipe with many tasks, even though the recipe appeared to have completed successfully.
Looking in console.log it appears the harness failed to run the task (after rhts-reboot) with the following exception:
2013-06-21 16:00:14,488 backend simple_recipe: ERROR Encoutnered problem while running task '13363603'.
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/beah/backends/beakerlc.py", line 510, in simple_recipe
result = task.getResult()
File "/usr/lib/python2.6/site-packages/twisted/internet/defer.py", line 584, in getResult
File "/usr/lib/python2.6/site-packages/twisted/internet/defer.py", line 605, in _deferGenerator
result = g.next()
File "/usr/lib/python2.6/site-packages/beah/backends/beakerlc.py", line 562, in _run_task
for role, hostnames in roles.items():
AttributeError: 'bool' object has no attribute 'items'
so the task was never stopped in Beaker and the EWD eventually killed it off.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
I don't see any way that the server/LC could have returned a bool from get_peer_roles, so I suspect something iffy happened in the harness in this case. The fact that it failed after rhts-reboot in the same task is suspicious.