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

Bug 929190

Summary: beaker-wizard: KeyError: 'ispatch' traceback
Product: [Retired] Beaker Reporter: Branislav Náter <bnater>
Component: command lineAssignee: Nick Coghlan <ncoghlan>
Status: CLOSED CURRENTRELEASE QA Contact: Xin Zhang <xinzhang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 0.11CC: asaha, dcallagh, isenfeld, jprokes, ksrot, kvolny, llim, mfranc, qwan, rglasz, rhack, rmancy, szhou, todoleza, xinzhang
Target Milestone: 0.13   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: BeakerWizard
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-25 06:28:00 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 Branislav Náter 2013-03-29 13:00:15 UTC
Description of problem:
I just hit following trace back when running beaker-wizard:

$ beaker-wizard -b 912443
Contacting bugzilla...
Fetching details for BZ#912443
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'

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

Steps to Reproduce:
1. beaker-wizard -b 912443
  
Actual results:
Traceback

Expected results:
Skeleton for desired bug created

Comment 1 Petr Šplíchal 2013-04-10 14:27:32 UTC
Modified version of Iveta's patch pushed to gerrit for review:
http://gerrit.beaker-project.org/#/c/1875/

Now the attachment fetching should work again:
> beaker-wizard -by 227655
> Contacting bugzilla...
> Fetching details for BZ#227655
> Examining attachments for possible reproducers
> Adding test.pl (simple test using Net::Config)
> Adding libnet.cfg (libnet.cfg test config file)
> Ready to create the test, please review
> ...

Comment 2 Qixiang Wan 2013-04-11 06:51:29 UTC
*** Bug 950870 has been marked as a duplicate of this bug. ***

Comment 3 Qixiang Wan 2013-04-11 08:10:10 UTC
*** Bug 950919 has been marked as a duplicate of this bug. ***

Comment 4 Qixiang Wan 2013-04-11 08:13:49 UTC
Note: People who have encountered this issue can just downgrade the python-bugzilla as the temp workaround.

Comment 5 Iveta Wiedermann 2013-04-15 12:28:00 UTC
*** Bug 951548 has been marked as a duplicate of this bug. ***

Comment 6 Qixiang Wan 2013-04-17 13:21:39 UTC
*** Bug 950878 has been marked as a duplicate of this bug. ***

Comment 7 Petr Šplíchal 2013-04-19 11:44:00 UTC
Updated patch pushed to gerrit for review.

Comment 10 Xin Zhang 2013-05-28 07:25:20 UTC
Verified.
beaker-wizard -b 912443(bug with attachment) will return skeleton for desired bug created.

version:
  beaker-0.12.1-1.git.138.df77d66.el6eng
  beaker-client-0.12.1-1.git.138.df77d66.el6eng

Comment 11 Nick Coghlan 2013-06-13 23:56:14 UTC
*** Bug 974165 has been marked as a duplicate of this bug. ***

Comment 12 Qixiang Wan 2013-06-19 08:47:29 UTC
*** Bug 975727 has been marked as a duplicate of this bug. ***

Comment 14 Amit Saha 2013-06-25 06:28:00 UTC
Beaker 0.13.1 has been released.