Bug 781369 - backtrace: cmd_workflow_simple.py:157:run:AttributeError: type object 'TaskWatcher' has no attribute 'watch_tasks'
Summary: backtrace: cmd_workflow_simple.py:157:run:AttributeError: type object 'TaskWa...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: command line
Version: 0.8
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: ---
Assignee: Raymond Mancy
QA Contact:
URL:
Whiteboard:
: 744802 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-13 11:19 UTC by Michal Nowak
Modified: 2019-05-22 13:42 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-26 07:16:41 UTC


Attachments (Terms of Use)

Description Michal Nowak 2012-01-13 11:19:19 UTC
--wait option seems to be the issue.

RPM: beaker-client-0.8.0-16.el6eso.noarch

cmdline:        /usr/bin/python /usr/bin/bkr workflow-simple --task /tools/strace/Regression/bz769118-strace-f-shows-wrong-result-in-tracing-both-64bit-and-32bit-processes --task /distribution/reservesys --task /tools/strace/Regression/bz769118-strace-f-shows-wrong-result-in-tracing-both-64bit-and-32bit-processes --distro RHEL-6.2 --whiteboard '[6.2.z] Bug 769118 with OLD & NEW packages' --wait
comment:        --wait option makes problems to `bkr workflow-simple ...`
executable:     /usr/bin/bkr
kernel:         2.6.32-220.el6.x86_64
reason:         cmd_workflow_simple.py:157:run:AttributeError: type object 'TaskWatcher' has no attribute 'watch_tasks'
time:           Fri 13 Jan 2012 12:10:51 PM CET

backtrace:
:cmd_workflow_simple.py:157:run:AttributeError: type object 'TaskWatcher' has no attribute 'watch_tasks'
:
:Traceback (most recent call last):
:  File "/usr/bin/bkr", line 9, in <module>
:    load_entry_point('bkr.client==0.8.0', 'console_scripts', 'bkr')()
:  File "/usr/lib/python2.6/site-packages/bkr/client/main.py", line 45, in main
:    return cmd.run(*cmd_args, **cmd_opts.__dict__)
:  File "/usr/lib/python2.6/site-packages/bkr/client/commands/cmd_workflow_simple.py", line 157, in run
:    TaskWatcher.watch_tasks(self.hub, submitted_jobs)
:AttributeError: type object 'TaskWatcher' has no attribute 'watch_tasks'
:
:Local variables in innermost frame:
:requestedTasks: [{'arches': ['ppc', 's390', 'i386', 'ia64'], 'name': '/tools/strace/Regression/bz769118-strace-f-shows-wrong-result-in-tracing-both-64bit-and-32bit-processes'}, {'arches': [], 'name': '/distribution/reservesys'}, {'arches': ['ppc', 's390', 'i386', 'ia64'], 'name': '/tools/strace/Regression/bz769118-strace-f-shows-wrong-result-in-tracing-both-64bit-and-32bit-processes'}]
:username: None
:password: None
:taskParams: []
:dryrun: False
:family: None
:arch_node: <DOM Element: distro_arch at 0x13de7a0>
:self: <kobo.plugins.Workflow_Simple object at 0x13b7230>
:args: ()
:submitted_jobs: ['J:180417']
:arches: ['i386', 'x86_64', 'ppc64', 's390x']
:jobxml: '<job retention_tag="Scratch"><whiteboard>[6.2.z] Bug 769118 with OLD &amp; NEW packages</whiteboard><recipeSet priority="Normal"><recipe ks_meta="method=nfs" whiteboard="[6.2.z] Bug 769118 with OLD &amp; NEW packages"><distroRequires><and><distro_name op="=" value="RHEL-6.2"/><distro_method op="=" value="nfs"/><distro_arch op="=" value="i386"/></and></distroRequires><hostRequires><and/></hostRequires><repos/><partitions/><task name="/distribution/install" role="STANDALONE"><params/></task><task name="/distribution/reservesys" role="STANDALONE"><params/></task></recipe></recipeSet><recipeSet priority="Normal"><recipe ks_meta="method=nfs" whiteboard="[6.2.z] Bug 769118 with OLD &amp; NEW packages"><distroRequires><and><distro_name op="=" value="RHEL-6.2"/><distro_method op="=" value="nfs"/><distro_arch op="=" value="x86_64"/></and></distroRequires><hostRequires><and/></hostRequires><repos/><partitions/><task name="/distribution/install" role="STANDALONE"><params/></task><task name="/tools/strace/Regression/bz769118-strace-f-shows-wrong-result-in-tracing-both-64bit-and-32bit-processes" role="STANDALONE"><params/></task><task name="/distribution/reservesys" role="STANDALONE"><params/></task><task name="/tools/strace/Regression/bz769118-strace-f-shows-wrong-result-in-tracing-both-64bit-and-32bit-processes" role="STANDALONE"><params/></task></recipe></recipeSet><recipeSet priority="Normal"><recipe ks_meta="method=nfs" whiteboard="[6.2.z] Bug 769118 with OLD &amp; NEW packages"><distroRequires><and><distro_name op="=" value="RHEL-6.2"/><distro_method op="=" value="nfs"/><distro_arch op="=" value="ppc64"/></and></distroRequires><hostRequires><and/></hostRequires><repos/><partitions/><task name="/distribution/install" role="STANDALONE"><params/></task><task name="/tools/strace/Regression/bz769118-strace-f-shows-wrong-result-in-tracing-both-64bit-and-32bit-processes" role="STANDALONE"><params/></task><task name="/distribution/reservesys" role="STANDALONE"><params/></task><task name="/tools/strace/Regression/bz769118-strace-f-shows-wrong-result-in-tracing-both-64bit-and-32bit-processes" role="STANDALONE"><params/></task></recipe></recipeSet><recipeSet priority="Normal"><recipe ks_meta="method=nfs" whiteboard="[6.2.z] Bug 769118 with OLD &amp; NEW packages"><distroRequires><and><distro_name op="=" value="RHEL-6.2"/><distro_method op="=" value="nfs"/><distro_arch op="=" value="s390x"/></and></distroRequires><hostRequires><and/></hostRequires><repos/><partitions/><task name="/distribution/install" role="STANDALONE"><params/></task><task name="/tools/strace/Regression/bz769118-strace-f-shows-wrong-result-in-tracing-both-64bit-and-32bit-processes" role="STANDALONE"><params/></task><task name="/distribution/reservesys" role="STANDALONE"><params/></task><task name="/tools/strace/Regression/bz769118-strace-f-shows-wrong-result-in-tracing-both-64bit-and-32bit-processes" role="STANDALONE"><params/></task></recipe></recipeSet></job>'
:failed: False
:job: <bkr.client.BeakerJob object at 0x13ce7d0>
:recipeTemplate: <bkr.client.BeakerRecipe object at 0x13ce810>
:kwargs: {'whiteboard': '[6.2.z] Bug 769118 with OLD & NEW packages', 'ndump': False, 'family': None, 'cc': [], 'random': False, 'kernel_options': None, 'servers': None, 'tag': [], 'dryrun': False, 'machine': None, 'kernel_options_post': None, 'systype': None, 'retention_tag': 'Scratch', 'priority': 'Normal', 'type': None, 'method': 'nfs', 'taskparam': [], 'username': None, 'product': None, 'hostrequire': [], 'variant': None, 'repo': [], 'password': None, 'kdump': False, 'wait': True, 'task': ['/tools/strace/Regression/bz769118-strace-f-shows-wrong-result-in-tracing-both-64bit-and-32bit-processes', '/distribution/reservesys', '/tools/strace/Regression/bz769118-strace-f-shows-wrong-result-in-tracing-both-64bit-and-32bit-processes'], 'package': [], 'clients': None, 'quiet': False, 'arches': [], 'keyvalue': [], 'install': [], 'debug': False, 'distro': 'RHEL-6.2'}
:debug: False
:wait: True
:recipeSet: <bkr.client.BeakerRecipeSet object at 0x13ce710>
:arch: 's390x'
:distro: 'RHEL-6.2'

END:

Comment 1 Raymond Mancy 2012-03-02 04:01:45 UTC
The changes associated with the message bus implementation moved the watch_tasks attribute from being a task_watcher.TaskWatch unbound method to being a task_watcher function. Unfortunately some of these calls were not updated to reflect this...

Comment 3 Dan Callaghan 2012-10-24 04:40:22 UTC
*** Bug 744802 has been marked as a duplicate of this bug. ***


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