Bug 695657 - rhn-satellite-exporter - KeyError caught in dump_errata.
Summary: rhn-satellite-exporter - KeyError caught in dump_errata.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 1.4
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space15
TreeView+ depends on / blocked
 
Reported: 2011-04-12 10:40 UTC by Jiri Kastner
Modified: 2011-07-21 14:43 UTC (History)
0 users

Fixed In Version: spacewalk-backend-1.5.4-1
Clone Of:
Environment:
Last Closed: 2011-07-21 14:43:47 UTC
Embargoed:


Attachments (Terms of Use)

Description Jiri Kastner 2011-04-12 10:40:58 UTC
Description of problem:
not able export erratas, rhn-satellite-exporter produces only "KeyError caught in dump_errata." message/traceback during export, and then satellite-sync fails with traceback (see attachment).


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. cerate channel
2. create packages and push them to channel from step 1.
3. create erratas for packages from step2.
4. publish errata
5. rhn-satellite-exporter -d /tmp/XXXX -c channel-from-step-1
6. KeyError caught in dump_errata.
  
Actual results:

10:36:17 Exporting errata...
           ____________________
Exporting: 10:36:17 
KeyError caught in dump_errata.

Expected results:

10:36:17 Exporting errata...
           ____________________
Exporting: #################### - Done!
10:33:37 Number of errata exported: 1


10:33:37 Exporting kickstart data...
           ____________________
Exporting: #################### - Done!
10:33:37 Amount of kickstart data exported: 0


10:33:37 Exporting kickstart files...
           ____________________
Exporting: #################### - Done!
10:33:37 Number of kickstart files exported: 0


Additional info:

Comment 4 Michael Mráka 2011-04-12 12:26:07 UTC
This is an error introduced by updateinfo patch.

It's been fixed by
commit cc93aa352c85543a00e33a24269842d330e189f7
    fixed errata export / import
    fixing
    Exception type <type 'exceptions.KeyError'>
    ...
      File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/exporter/exportLi
        SimpleDumper(self._writer, 'rhn-erratum-bug-href', self._row['bug_href']),
    KeyError: 'bug_href'    
    introduced in 307d2c5606ab10561acbfa3fda89b5c0a2671233
commit 015d3e740336d3a994d3062c7159311521d01e0e
    fixed errata_from export
    fixing
    Exception type <type 'exceptions.KeyError'>
    ...
        arr.append(SimpleDumper(self._writer, k, self._row[v] or "", b))
    KeyError: 'errata_from'
    introduced in 307d2c5606ab10561acbfa3fda89b5c0a2671233

Comment 5 Jan Pazdziora (Red Hat) 2011-07-19 19:36:54 UTC
This bugzilla is currently MODIFIED, so we believe the fix is in the Spacewalk nightly yum repository at http://spacewalk.redhat.com/yum/nightly/

Therefore, moving ON_QA.

Comment 6 Jan Pazdziora (Red Hat) 2011-07-21 14:43:47 UTC
Spacewalk 1.5 was released.


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