Bug 701297 - rhnpush for solaris (mpm) package fails with ISE
Summary: rhnpush for solaris (mpm) package fails with ISE
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 1.5
Hardware: Unspecified
OS: Unspecified
urgent
medium
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On: 699700
Blocks: space15
TreeView+ depends on / blocked
 
Reported: 2011-05-02 13:56 UTC by Michael Mráka
Modified: 2011-07-21 14:43 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description Michael Mráka 2011-05-02 13:56:51 UTC
+++ This bug was initially created as a clone of Bug #699700 +++

Description of problem:

...
uploading solaris mpm package fails with Internal server error 500 Internal Server Error

Here is the complete output and traceback in error_log:

-------------------
# rhnpush -n 5 -v -c solaris2 atch-solaris-118666-30-1.sparc-solaris-patch.mpm
Connecting to https://localhost/APP
Package atch-solaris-118666-30-1.sparc-solaris-patch.mpm Not Found on RHN Server -- Uploading
Uploading package atch-solaris-118666-30-1.sparc-solaris-patch.mpm
Using POST request
Internal server error 500 Internal Server Error
Error pushing atch-solaris-118666-30-1.sparc-solaris-patch.mpm: Error 500 (500)
Waiting 2 seconds and trying again...

Error_log has :
RHN 7712 2011/04/26 13:04:19 -05:00: ('Unhandled exception',)
Exception reported from vm181.gsslab.pnq.redhat.com
Time: Tue Apr 26 13:04:31 2011
Exception type _rpm.error
Exception while handling function upload_server._wrapper
Request object information:
URI: /PACKAGE-PUSH
Remote Host: 127.0.0.1
Server Name: vm181.gsslab.pnq.redhat.com:443
Headers passed in:
        Accept-Encoding: identity
        Content-Length: 69435636
        Content-Type: application/x-rpm
        Host: localhost:443
        User-Agent: rhnpush
        X-RHN-Upload-Auth-Session: 51366xe317095fcd821ed5305ceea90068dd28
        X-RHN-Upload-File-Checksum: 9ae0e792de888c9d3e68518e4a120924
        X-RHN-Upload-File-Checksum-Type: md5
        X-RHN-Upload-File-MD5sum: 9ae0e792de888c9d3e68518e4a120924
        X-RHN-Upload-Force: 0
        X-RHN-Upload-Package-Arch: sparc-solaris-patch
        X-RHN-Upload-Package-Name: patch-solaris-118666
        X-RHN-Upload-Package-Release: 1
        X-RHN-Upload-Package-Version: 30
        X-RHN-Upload-Packaging: mpm

Exception Handler Information
Traceback (most recent call last):
  File "/usr/share/rhn/server/apacheUploadServer.py", line 102, in _wrapper
    ret = function(req)
  File "/usr/share/rhn/upload_server/handlers/package_push/package_push.py", line 135, in handler
    relative_path=self.rel_package_path, org_id=self.org_id)
  File "/usr/share/rhn/server/rhnPackageUpload.py", line 175, in push_package
    importer.run()
  File "/usr/share/rhn/server/importlib/importLib.py", line 651, in run
    self.submit()
  File "/usr/share/rhn/server/importlib/packageImport.py", line 322, in submit
    self._import_signatures()
  File "/usr/share/rhn/server/importlib/packageImport.py", line 509, in _import_signatures
    header = rhn_rpm.get_package_header(filename=full_path)
  File "/usr/lib/python2.4/site-packages/spacewalk/common/rhn_rpm.py", line 280, in get_package_header
    hdr = ts.hdrFromFdno(file_desc)
  File "	", line 112, in hdrFromFdno
    return self.ts.hdrFromFdno(fd)
error: error reading package header

RHN 7588 2011/04/26 13:04:32 -05:00: ('Unhandled exception',)


Version-Release number of selected component (if applicable):
RHN Satellite v5.4
spacewalk-backend*-1.2.13-38.el5sat


How reproducible:
Always

Steps to Reproduce:
1.Ensure that Satellite v5.4 is updated with spacewalk-backend*-1.2.13-38.el5sat
2.Try to push an mpm file to a solaris channel.
rhnpush -n 5 -v -c solaris2 patch-solaris-118666-30-1.sparc-solaris-patch.mpm

 
Actual results:
Fails with error:
Internal server error 500 Internal Server Error

Expected results:
package should be pushed without any error.

Additional info:
This behavior is not seen if we install old spacewalk-backend* packages (spacewalk-backend*1.2.13-26.2.el5sat.noarch.rpm)

Comment 1 Michael Mráka 2011-05-02 14:02:25 UTC
Fixed in spacewalk master by
commit b561351b9a9e02fc4c279198462cd4e21ac0d733
    701297 - don't try to read rpm header from mpm package

Comment 2 Jan Pazdziora (Red Hat) 2011-07-19 19:36:50 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 3 Jan Pazdziora (Red Hat) 2011-07-21 14:43:43 UTC
Spacewalk 1.5 was released.


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