Bug 977586 - harness failed to run task: exception while processing peer roles: AttributeError: 'bool' object has no attribute 'items'
Summary: harness failed to run task: exception while processing peer roles: AttributeE...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Beaker
Classification: Retired
Component: beah
Version: 0.12
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: beaker-dev-list
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-25 00:44 UTC by Dan Callaghan
Modified: 2020-02-11 12:08 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-02-11 12:08:46 UTC
Embargoed:


Attachments (Terms of Use)

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>


Note You need to log in before you can comment on or make changes to this bug.