Bug 929190 - beaker-wizard: KeyError: 'ispatch' traceback
Summary: beaker-wizard: KeyError: 'ispatch' traceback
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: command line
Version: 0.11
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 0.13
Assignee: Nick Coghlan
QA Contact: Xin Zhang
URL:
Whiteboard: BeakerWizard
: 950870 950878 950919 951548 974165 975727 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-29 13:00 UTC by Branislav Náter
Modified: 2018-02-06 00:41 UTC (History)
15 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-06-25 06:28:00 UTC
Embargoed:


Attachments (Terms of Use)

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.


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