Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 950870

Summary: beaker-wizard: error when creating new test (bug with attachments)
Product: [Retired] Beaker Reporter: Robin Hack <rhack>
Component: command lineAssignee: Petr Šplíchal <psplicha>
Status: CLOSED DUPLICATE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.11CC: asaha, dcallagh, llim, ohudlick, qwan, rglasz, rmancy
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: 2013-04-11 06:51:29 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:
Attachments:
Description Flags
Bad keys patch none

Description Robin Hack 2013-04-11 06:26:14 UTC
Created attachment 733998 [details]
Bad keys patch

Description of problem:
When i use beaker-wizard on bug 929087 (with attachments) i will get error message.
Were changes in bugzilla output data format?

I wrote small patch.

Version-Release number of selected component (if applicable):
beaker-client-0.11.2-1.el6eng.noarch

How reproducible:
always


Steps to Reproduce:
1. $ beaker-wizard -b 929087

Actual results:
Contacting bugzilla...
Fetching details for BZ#929087
Examining attachments for possible reproducers
Traceback (most recent call last):
  File "/usr/bin/beaker-wizard", line 9, in <module>
    load_entry_point('bkr.client==0.11.2', 'console_scripts', 'beaker-wizard')()
  File "/usr/lib/python2.6/site-packages/bkr/client/wizard.py", line 2623, in main
    test = Test(options)
  File "/usr/lib/python2.6/site-packages/bkr/client/wizard.py", line 1089, in __init__
    self.init()
  File "/usr/lib/python2.6/site-packages/bkr/client/wizard.py", line 2325, in init
    self.testname = Name(self.options)
  File "/usr/lib/python2.6/site-packages/bkr/client/wizard.py", line 1089, in __init__
    self.init()
  File "/usr/lib/python2.6/site-packages/bkr/client/wizard.py", line 1846, in init
    self.bugs.fetchBugDetails()
  File "/usr/lib/python2.6/site-packages/bkr/client/wizard.py", line 1776, in fetchBugDetails
    self.reproducers.find(self.bug)
  File "/usr/lib/python2.6/site-packages/bkr/client/wizard.py", line 1908, in find
    if attachment['ispatch'] == 0 and attachment['isobsolete'] == 0:
KeyError: 'ispatch'

Expected results:
New test template without errors.

Comment 1 Qixiang Wan 2013-04-11 06:51:29 UTC
Petr submitted a patch for this issue (bug 929190 comment 1), welcome to give your comments on that.

*** This bug has been marked as a duplicate of bug 929190 ***