Bug 846752

Summary: Package, which is renamed, is not available for the client
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: Pavlina Bartikova <pbartiko>
Component: RHUAAssignee: James Slagle <jslagle>
Status: CLOSED NOTABUG QA Contact: mkovacik
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.1CC: tsanders, whayutin
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-10 12:25:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screen log none

Description Pavlina Bartikova 2012-08-08 15:30:43 UTC
Description of problem:
Package, which is renamed, is not available for the client. It can be uploaded with new name. On CDS - in /var/lib/pulp-cds/packages and /var/lib/pulp-cds/repos/our_repo is new package with old name. But client can't see the package (neither new nor old name).

Version-Release number of selected component (if applicable):
RHEL-6.3-RHUI-2.1-20120801.0-Server-x86_64-DVD1.iso

How reproducible:
always

Steps to Reproduce:
1. on RHUA:
1.1. have some package
1.2. rename the package with mv command
1.3. upload package to custom repository
1.4. synchronize CDS
2. on client
2.1. yum clean all
2.2. yum repolist (number of repolist is incremented correctly)
2.3. yum list available
  
Actual results:
new package is available

Expected results:
nothing (new package is not available)

Comment 1 wes hayutin 2012-08-08 17:19:08 UTC
There is meta data that is not simply changed by using mv..
You will need to rebuild the rpm after changing the rpm specfile. 

I suggest building a couple custom rpms to work with.

Comment 2 wes hayutin 2012-08-08 19:25:13 UTC
whoops broke my own rule.. 
instead of closing, moving to on_qa.  

Further explanation.. 
The spec file for the rpm needs to be changed, specifically the "name" value in the spec file..

Comment 3 Pavlina Bartikova 2012-08-09 09:06:21 UTC
Yes, I understand. But it doesn't solve problem, that RHUI let me upload this package, the package is on CDS, but it's not available for the client..

Moving bug to ON_DEV.

Comment 4 James Slagle 2012-08-09 12:52:11 UTC
Is the "old" package (it's actually the same package to yum) already installed on the client?

Can we see output from "rpm -qa" and "yum list all" on the client?
As well as what the original package filename was, and what mv commands you ran.

Thanks

Comment 5 Pavlina Bartikova 2012-08-10 12:25:06 UTC
I'm sorry. It doesn't relate to renaming. I was trying this with source packages and these aren't available for the client.. 

Moving bug to CLOSED - NOTABUG.

Comment 6 Pavlina Bartikova 2012-08-10 12:39:09 UTC
Created attachment 603513 [details]
screen log