Bug 690157

Summary: Sync'd Repository Structure does not match Feed Repo
Product: [Retired] Grinder Reporter: Todd Sanders <tsanders>
Component: coreAssignee: John Matthews <jmatthew>
Status: CLOSED EOL QA Contact: Preethi Thomas <pthomas>
Severity: urgent Docs Contact:
Priority: urgent    
Version: unspecified   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Todd Sanders 2011-03-23 13:29:05 UTC
Description of problem:

My source (feed) repo looks like this:

Name Last modified Size
Parent Directory -
repodata/ 15-Mar-2011 15:59 -
gofer-0.23-1.fc14.noarch.rpm 15-Mar-2011 15:59 35K
grinder-0.0.86-1.fc14.noarch.rpm 15-Mar-2011 15:59 109K
pulp-0.0.151-1.fc14.noarch.rpm 15-Mar-2011 15:59 521K
pulp-cds-0.0.151-1.fc14.noarch.rpm 15-Mar-2011 15:59 99K
pulp-client-0.0.151-1.fc14.noarch.rpm 15-Mar-2011 15:59 276K
pulp-common-0.0.151-1.fc14.noarch.rpm 15-Mar-2011 15:59 95K
python-gofer-0.23-1.fc14.noarch.rpm 15-Mar-2011 15:59 53K
python-qpid-0.7.946106-1.fc14.noarch.rpm 15-Mar-2011 15:59 453K
python-webpy-0.32-6.fc14.noarch.rpm 15-Mar-2011 15:59 247K
ruby-gofer-0.23-1.fc14.noarch.rpm 15-Mar-2011 15:59 14K 

After creating a repo in Pulp:

pulp-admin repo create --id=pulp-fedora14 --arch=x86_64 --feed=yum:http://repos.fedorapeople.org/repos/pulp/pulp/fedora-14/x86_64/

And Syncing:

pulp-admin repo sync --id=pulp-fedora14 -F


The repo structure on the Pulp server is:

Name Last modified Size
Parent Directory -
cachecookie 23-Mar-2011 09:07 0
filelists.xml.gz 15-Mar-2011 11:59 4.9K
gofer-0.23-1.fc14.noarch.rpm 23-Mar-2011 09:07 35K
grinder-0.0.86-1.fc14.noarch.rpm 23-Mar-2011 09:07 109K
other.xml.gz 15-Mar-2011 11:59 9.1K
packages/ 23-Mar-2011 09:07 -
primary.xml.gz 15-Mar-2011 11:59 2.8K
primary.xml.gz.sqlite 23-Mar-2011 09:07 30K
pulp-0.0.151-1.fc14.noarch.rpm 23-Mar-2011 09:07 521K
pulp-cds-0.0.151-1.fc14.noarch.rpm 23-Mar-2011 09:07 99K
pulp-client-0.0.151-1.fc14.noarch.rpm 23-Mar-2011 09:07 276K
pulp-common-0.0.151-1.fc14.noarch.rpm 23-Mar-2011 09:07 95K
python-gofer-0.23-1.fc14.noarch.rpm 23-Mar-2011 09:07 53K
python-qpid-0.7.946106-1.fc14.noarch.rpm 23-Mar-2011 09:07 453K
python-webpy-0.32-6.fc14.noarch.rpm 23-Mar-2011 09:07 247K
repodata/ 23-Mar-2011 09:07 -
repomd.xml 15-Mar-2011 11:59 1.3K
ruby-gofer-0.23-1.fc14.noarch.rpm 23-Mar-2011 09:07 14K

Yum meta-data exists at both root-level as well as in the ./repodata subdir and ./packages subdir is empty.  

My expectation is that the sync'd repo on the Pulp server would mirror the feed repo.  I'd also be ok if we stored the package solely in a ./packages subdir.

Comment 1 John Matthews 2011-03-25 13:35:03 UTC
This is fixed in grinder 0.89

http://git.fedorahosted.org/git/?p=grinder.git;a=commit;h=ca57ef516b4e7c06487be59ce3bdb7dc4f59d044

Fix is to create a temp directory for yum.basecachedir

Comment 2 Preethi Thomas 2011-04-29 12:18:27 UTC
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.172-1.fc14.noarch


[root@preethi ~]# ls /var/lib/pulp/repos/repos/pulp/pulp/fedora-14/x86_64/
gofer-0.33-1.fc14.noarch.rpm           python-gofer-0.33-1.fc14.noarch.rpm
grinder-0.0.94-1.fc14.noarch.rpm       python-qpid-0.7.946106-1.fc14.noarch.rpm
pulp-0.0.170-1.fc14.noarch.rpm         python-webpy-0.32-8.fc14.noarch.rpm
pulp-cds-0.0.170-1.fc14.noarch.rpm     repodata
pulp-client-0.0.170-1.fc14.noarch.rpm  ruby-gofer-0.33-1.fc14.noarch.rpm
pulp-common-0.0.170-1.fc14.noarch.rpm


[root@preethi ~]# ls /var/lib/pulp/repos/repos/pulp/pulp/fedora-14/x86_64/repodata/
filelists.sqlite.bz2  other.sqlite.bz2  primary.sqlite.bz2  repomd.xml
filelists.xml.gz      other.xml.gz      primary.xml.gz