Bug 600323 - rhnpush, KeyError: 'checksums'
Summary: rhnpush, KeyError: 'checksums'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 1.1
Hardware: All
OS: Linux
urgent
medium
Target Milestone: ---
Assignee: Justin Sherrill
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space11
TreeView+ depends on / blocked
 
Reported: 2010-06-04 12:49 UTC by Petr Sklenar
Modified: 2010-08-19 08:24 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-08-19 08:24:08 UTC
Embargoed:


Attachments (Terms of Use)

Description Petr Sklenar 2010-06-04 12:49:44 UTC
Description of problem:
I cannot push any package into custom channel

Version-Release number of selected component (if applicable):
spacewalk-backend-1.1.19-1.el5, today's nightbuild

How reproducible:
always

Steps to Reproduce:
1. rhnpush --username=admin --password=***
--server=http://<fqdn_spacewalk>/APP --nosig --channel=channel_name
  
Actual results:


Issue is in spacewalk-backend-1.1.19-1.el5 : 

# rhnpush --username=admin --password=admin
--server=http://<fqdn_spacewalk>/APP --nosig --channel=channel_name
psklenar-1-1.noarch.rpm
Internal server error 500 Internal Server Error
Error pushing psklenar-1-1.noarch.rpm: Error 500 (500)
Waiting 4 seconds and trying again...
Internal server error 500 Internal Server Error
Error pushing psklenar-1-1.noarch.rpm: Error 500 (500)
Waiting 4 seconds and trying again...
Internal server error 500 Internal Server Error
Error pushing psklenar-1-1.noarch.rpm: Error 500 (500)
Waiting 2 seconds and trying again...
Giving up after 3 attempts

[root@ibm-hs22-01 first-sanity-test]# getenforce 
Permissive
[root@ibm-hs22-01 first-sanity-test]# rpm -q spacewalk-backend
spacewalk-backend-1.1.19-1.el5


# tail /var/log/httpd/error_log 
RHN 24867 2010/06/04 07:49:52 -04:00: ('Unhandled exception',)
Exception reported from ibm-hs22-01.lab.bos.redhat.com
Time: Fri Jun  4 07:49:54 2010
Exception type exceptions.KeyError
Exception while handling function upload_server._wrapper
Request object information:
URI: /PACKAGE-PUSH
Remote Host: 10.16.44.93
Server Name: ibm-hs22-01.lab.bos.redhat.com:0
Headers passed in:
 Accept-Encoding: identity
 Content-Length: 1711
 Content-Type: application/x-rpm
 Host: ibm-hs22-01.lab.bos.redhat.com
 User-Agent: rhnpush
 X-RHN-Upload-Auth-Session: 12x6094a2fc4a70c13ee7ed052d9f8aabd7
 X-RHN-Upload-File-Checksum: be6a38721968044c8041a493e808668b
 X-RHN-Upload-File-Checksum-Type: md5
 X-RHN-Upload-File-MD5sum: be6a38721968044c8041a493e808668b
 X-RHN-Upload-Force: 0
 X-RHN-Upload-Package-Arch: noarch
 X-RHN-Upload-Package-Name: psklenar
 X-RHN-Upload-Package-Release: 1
 X-RHN-Upload-Package-Version: 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 176, in push_package
    importer.run()
  File "/usr/share/rhn/server/importlib/importLib.py", line 646, in run
    self.preprocess()
  File "/usr/share/rhn/server/importlib/packageImport.py", line 51, in
preprocess
    self._processPackage(package)
  File "/usr/share/rhn/server/importlib/packageImport.py", line 225, in
_processPackage
    ChannelPackageSubscription._processPackage(self, package)
  File "/usr/share/rhn/server/importlib/packageImport.py", line 168, in
_processPackage
    GenericPackageImport._processPackage(self, package)
  File "/usr/share/rhn/server/importlib/importLib.py", line 699, in
_processPackage
    for type, chksum in package['checksums'].iteritems():
  File "/usr/lib64/python2.4/UserDict.py", line 17, in __getitem__
    def __getitem__(self, key): return self.data[key]
KeyError: 'checksums'

RHN 24863 2010/06/04 07:49:54 -04:00: ('Unhandled exception',) 

Expected results:
works , can push packages

Additional info:
Its testblocker and rhnpush is core function, adding priority=urgent

Comment 1 Justin Sherrill 2010-06-09 21:21:23 UTC
Should be fixed now:

b59a49c806f68d4d6b2b239fc983218645d8b6ac


Problem was a fix for satellite-sync package importing that occurred last month, broke rhnpush.

Comment 2 Justin Sherrill 2010-06-09 23:38:52 UTC
One small fix for channel associations: 
2dbd5c022449f548a162639652821e119a5553ce

Comment 3 Milan Zázrivec 2010-08-19 08:24:08 UTC
Spacewalk 1.1 has been released.


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