Bug 977586

Summary: harness failed to run task: exception while processing peer roles: AttributeError: 'bool' object has no attribute 'items'
Product: [Retired] Beaker Reporter: Dan Callaghan <dcallagh>
Component: beahAssignee: beaker-dev-list
Status: CLOSED EOL QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.12CC: jburke, jstancek, mastyk, pbunyan, qwan, tools-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-11 12:08:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dan Callaghan 2013-06-25 00:44:25 UTC
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  
    self.result.raiseException()  
  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):
0.12.1

How reproducible:
not reproducible

Steps to Reproduce:
unknown

Comment 2 Dan Callaghan 2013-06-25 00:46:02 UTC
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.

Comment 7 Martin Styk 2020-02-11 12:08:46 UTC
Beah is no longer supported by Beaker development team.
Instead of that, we are working on Restraint test harness. You can find all the features of Restraint here.

https://restraint.readthedocs.io/en/latest/

If you think your RFE should be still implemented as part of Restraint feel free to create a new BZ ticket.

https://bugzilla.redhat.com/enter_bug.cgi?product=Restraint

In case you have any question feel free to reach out to me
Thank you,
Martin Styk <martin.styk>