Bug 532040

Summary: src.rpm are renamed when pushed by rhnpush
Product: [Community] Spacewalk Reporter: Alessio Panizzi <a.panizzi>
Component: ServerAssignee: Michael Mráka <mmraka>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: low    
Version: 0.6CC: a.panizzi
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: 2010-05-05 14:56:54 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: 559281    

Description Alessio Panizzi 2009-10-30 11:46:01 UTC
Description of problem:

A src.rpm package pushed by rhnpush into the Spacewalk server
it's showed in "Manage Software Packages" with bad NVREA. 
The name of rpm is changed with bad arch, for example:

package-0.3.4-1.el5.centos.src.rpm

it's changed in:

package-0.3.4-1.el5.centos.x86_64

The package into the filesystem is renamed as showed by the WebUI:
/var/satellite/redhat/1/e30/package/0.3.4-1.el5.centos/x86_64/e309f5c516a9def6a916beea2e128163/pakage-0.3.4-1.el5.centos.x86_64.rpm

Version-Release number of selected component:
Spacewalk 0.6

How reproducible:
always


Steps to Reproduce:
1. install spacewalk 0.6
2. create new channel
3. use rhnpush to push rpm to spacewalk
rhnpush --server https://spacewalk-server/APP --source --channel channelname package-1.1.12-1.i386.rpm  -vvvvvvv
4. use rhnpush to push the relative src.rpm to spacewalk
rhnpush --server https://spacewalk-server/APP --source --channel channelname package-1.1.12-1.src.rpm  -vvvvvvv

Actual results:
WebUI show package-1.1.12-1.x86_64.rpm
file as saved in filesystem as 
/var/satellite/redhat/1/e30/package/0.3.4-1.el5.centos/x86_64/e309f5c516a9def6a916beea2e128163/pakage-0.3.4-1.el5.centos.x86_64.rpm

Expected results:
The src.rpm should be associated to right .rpm and show as "Source Package:" in its proprierties

Comment 1 Michael Mráka 2010-03-23 10:05:48 UTC
The issue was fixed as a part of bug 571413.

Comment 2 Michael Mráka 2010-04-07 14:09:15 UTC
Has been fixed in spacewalk-backend-0.9.12-1 (nightly repo).

Comment 3 Miroslav Suchý 2010-05-05 14:56:54 UTC
This bug has been fixed in Spacewalk 1.0.
Closing.