Bug 123073
Summary: | rhn_package_manager getting Internal Server Error uploading src.rpm | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Network | Reporter: | Jack Neely <jjneely> | ||||
Component: | RHN/Channels | Assignee: | Mihai Ibanescu <mihai.ibanescu> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fanny Augustin <fmoquete> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | RHN Stable | CC: | rhn-bugs, tao | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2005-03-22 18:31:30 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 127673 | ||||||
Attachments: |
|
Description
Jack Neely
2004-05-12 00:47:28 UTC
Created attachment 100169 [details]
Log of rhn_package-manager run
punting to misa, our package manager man. Should be fixed in the latest version of the code. TEST PLAN: ---------- o test all funcionality of rhn_package_manager, it is way overdue, to include pushing RPMs and SRPMs, individually and enmasse. I tested the tool with: rhn_package_manager -v --dir /var/spool/up2date This directory does not contain any RPMs per say, but the error message (traceback) I received did not contain any information about why the tool is failing. I think this error message should be cleaner, in other words, it should let the customer knows that they are no packages (rpm) to manage in the given directory. Below is the traceback I received: Connecting to https://rhnblade4.perf.redhat.com/XP Uploading /var/spool/up2date/redhat-advanced-server-i386.20040625001752 Traceback (innermost last): File "/usr/bin/rhn_package_manager", line 29, in ? rhn_package_manager.main() File "/var/www/rhns/PackageManager/rhn_package_manager.py", line 103, in main upload.uploadHeaders() File "/var/www/rhns/PackageManager/uploadLib.py", line 307, in uploadHeaders verbose=self.options.verbose, nosig=self.options.nosig) File "/var/www/rhns/PackageManager/uploadLib.py", line 429, in _processBatch nosig=nosig) File "/var/www/rhns/PackageManager/uploadLib.py", line 387, in _processFile h = get_header(None, f.fileno(), source) File "/var/www/rhns/PackageManager/uploadLib.py", line 578, in get_header h = rhn_rpm.get_package_header(filename=file, fd=fildes) File "/var/www/rhns/PackageManager/rhn_rpm.py", line 112, in get_package_header raise InvalidPackageError PackageManager.rhn_rpm.InvalidPackageError Fanny, Let's file this error-handling bug as a separate bug that blocks rhn350sat instead. If the functionality for pushing RPMs and SRPMs works as advertised if the RPMs/SRPMs are actually present, this fix is acceptable to me. Not all functionalities are working as expected. I created a software channel on the sat. I received the error message below while trying to list the packages in the channel, even though I was the one who created the channel: Sat: https://farm03.rhndev.redhat.com/ user/passwd: farm03/dog8code channel: channel-test [root@slag temp]# rhn_package_manager --list -c channel-test Channels: channel-test Red Hat Network username: farm03 Red Hat Network password: Connecting to http://farm03.rhndev.redhat.com/XP Error Message: You are not allowed to manage channel channel-test Error Class Code: 32 Error Class Info: Channel error Explanation: An error has occurred while processing your request. If this problem persists please enter a bug report at bugzilla.redhat.com. If you choose to submit the bug report, please be sure to include details of what you were trying to do when this error occurred and details on how to reproduce this problem. [root@slag temp]# Moving to rhn350sat for clarification. Internal server error fixed. Fanny, if the above error still happens, please pull me in because I don't understand why it says that. proxy test aligning against rhn360sat for full testing... Taw has tested this partially on rhn350sat. QA push. {ON_DEV,QA_READY} --> ON_QA Works find with the exception of this observation: I had 4 packages in the channel: rhn-applet-actions-2.0.13-2.noarch rhncfg-3.1.6-12.noarch samba-common-3.0.0-14.3E.i386 samba-common-3.0.7-1.3E:0.i386 When I: rhn_package_manager --list -c channel-test... I got: ['rhn-applet-actions', '2.0.13', '2', '', 'noarch', 'channel-test'] ['rhncfg', '3.1.6', '12', '', 'noarch', 'channel-test'] ['samba-common', '3.0.7', '1.3E', '0', 'i386', 'channel-test'] Please notice that one of the samba packages is listed instead of the two packages... Is this behavior expected or this is a bug? no docs Mass move from PROD_READY to CLOSED:CURRENTRELEASE |