Bug 571413 - can not push source package - KeyError: 'sigmd5'
Summary: can not push source package - KeyError: 'sigmd5'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 0.8
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space09
TreeView+ depends on / blocked
 
Reported: 2010-03-08 13:36 UTC by Jan Hutař
Modified: 2010-05-05 14:57 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-05-05 14:57:18 UTC
Embargoed:


Attachments (Terms of Use)

Description Jan Hutař 2010-03-08 13:36:35 UTC
Description of problem:
I have SW08 running on RHEL5 and I can not push source packages I have just built.


Version-Release number of selected component (if applicable):
spacewalk-schema-0.8.12-1.el5
rhnpush-5.4.13-1.el5
spacewalk-backend-server-0.8.45-1.el5


How reproducible:
always


Steps to Reproduce:
1. # rhnpush --channel=test-i386-1 --username=admin --password=admin -v --server=https://.../APP --nosig build/test-regular-i386-0.1-1.i386.rpm
2. # rhnpush --channel=test-i386-1 --username=admin --password=admin -v --server=https://.../APP --nosig --source build/test-regular-i386-0.1-1.src.rpm


Actual results:
Connecting to https://hp-bl480c-01.rhts.eng.bos.redhat.com/APP
Package build/test-regular-i386-0.1-1.src.rpm Not Found on RHN Server -- Uploading
Uploading package build/test-regular-i386-0.1-1.src.rpm
Using POST request
Internal server error 500 Internal Server Error
Error pushing build/test-regular-i386-0.1-1.src.rpm: Error 500 (500)
Waiting 4 seconds and trying again...
Uploading package build/test-regular-i386-0.1-1.src.rpm
Using POST request
Internal server error 500 Internal Server Error
Error pushing build/test-regular-i386-0.1-1.src.rpm: Error 500 (500)
Waiting 1 seconds and trying again...
Uploading package build/test-regular-i386-0.1-1.src.rpm
Using POST request
Internal server error 500 Internal Server Error
Error pushing build/test-regular-i386-0.1-1.src.rpm: Error 500 (500)
Waiting 4 seconds and trying again...
Giving up after 3 attempts


Expected results:
Should push package correctly.


Additional info:
From /var/log/httpd/error_log:
Exception reported from hp-bl480c-01.rhts.eng.bos.redhat.com
Time: Mon Mar  8 08:32:01 2010
Exception type exceptions.KeyError
Exception while handling function upload_server._wrapper
Request object information:
URI: /PACKAGE-PUSH
Remote Host: 10.16.64.241
Server Name: hp-bl480c-01.rhts.eng.bos.redhat.com:443
Headers passed in:
        Accept-Encoding: identity
        Content-Length: 2233
        Content-Type: application/x-rpm
        Host: hp-bl480c-01.rhts.eng.bos.redhat.com:443
        User-Agent: rhnpush
        X-RHN-Upload-Auth-Session: 22xd219f66e2057c8811faafa9d660eab06
        X-RHN-Upload-File-Checksum: fe4cdba28d0704839182505cae519994
        X-RHN-Upload-File-Checksum-Type: md5
        X-RHN-Upload-File-MD5sum: fe4cdba28d0704839182505cae519994
        X-RHN-Upload-Force: 0
        X-RHN-Upload-Package-Arch: src
        X-RHN-Upload-Package-Name: test-regular-i386
        X-RHN-Upload-Package-Release: 1
        X-RHN-Upload-Package-Version: 0.1
        X-RHN-Upload-Packaging: rpm

Exception Handler Information
Traceback (most recent call last):
  File "/usr/share/rhn/server/apacheUploadServer.py", line 107, in _wrapper
    ret = function(req)
  File "/usr/share/rhn/upload_server/handlers/package_push/package_push.py", line 136, in handler
    relative_path=self.rel_package_path, org_id=self.org_id)
  File "/usr/share/rhn/server/rhnPackageUpload.py", line 155, in push_package
    header_end=header_end, channels=channels)
  File "/usr/share/rhn/server/importlib/mpmSource.py", line 211, in create_package
    header_end=header_end, channels=channels)
  File "/usr/share/rhn/server/importlib/headerSource.py", line 403, in createPackage
    channels)
  File "/usr/share/rhn/server/importlib/headerSource.py", line 267, in populate
    header_start, header_end)
  File "/usr/share/rhn/server/importlib/headerSource.py", line 79, in populate
    if self['sigmd5']:
  File "/usr/lib/python2.4/UserDict.py", line 17, in __getitem__
    def __getitem__(self, key): return self.data[key]
KeyError: 'sigmd5'

RHN 17008 2010/03/08 08:32:01 -04:00: ('Unhandled exception',)

Comment 2 Michael Mráka 2010-03-22 09:34:47 UTC
Added src rpm package handling for sha256 feature.

FIxed in spacewalk git:

commit 167bc9463c3643a617432cdf891b62e38c28c38b
    571413 - added missing sha256 src rpms code

Comment 3 Michael Mráka 2010-04-07 07:48:44 UTC
Has been fixed in spacewalk-backend-0.9.12-1 (nightly repo).

Comment 4 Miroslav Suchý 2010-05-05 14:57:18 UTC
This bug has been fixed in Spacewalk 1.0.
Closing.


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