Bug 754804 - Cloning a repo duplicates all packages
Summary: Cloning a repo duplicates all packages
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 30
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-17 19:16 UTC by Justin Sherrill
Modified: 2013-09-09 16:36 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-24 20:16:03 UTC


Attachments (Terms of Use)

Description Justin Sherrill 2011-11-17 19:16:59 UTC
Description of problem:
When i clone a repo, all the packages in /var/lib/pulp/packages are duplicated, resulting in 2x the amount of disk space used.

Version-Release number of selected component (if applicable):
pulp-0.0.248-3.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. Create repo A and sync some content
2. Note the packages in /var/lib/pulp/packages
3. Clone the repo to repo B
4. Note that all packages are now duplicated in /var/lib/pulp/packages

For example:


./jpam/0.4/20.el6/x86_64/862/jpam-0.4-20.el6.x86_64.rpm
./jpam/0.4/20.el6/x86_64/dfa/jpam-0.4-20.el6.x86_64.rpm

dfa010295c1024cc0dd8753d57431555f407642e43e45210799096ffa6c4cf4c  ./jpam/0.4/20.el6/x86_64/862/jpam-0.4-20.el6.x86_64.rpm
dfa010295c1024cc0dd8753d57431555f407642e43e45210799096ffa6c4cf4c  ./jpam/0.4/20.el6/x86_64/dfa/jpam-0.4-20.el6.x86_64.rpm


For some reason pulp thinks that the package has a different checksum the second time.

Comment 1 Justin Sherrill 2011-11-17 19:25:55 UTC
Note, i first encountered this with a RHEL 6 repo that when cloning filled up the file system and did not complete.

I then reproduced it on a fresh install with a very small repo that completed successfully.  In both cases, packages were duplicated.

The repositories also pointed to the different copies:

[root@dhcp77-170 packages]# ls -l ../repos/ACME_Corporation/Locker/Spacewalk/Spacewalk/jpam-0.4-20.el6.x86_64.rpm ../repos/ACME_Corporation/Devel/Spacewalk/Spacewalk/jpam-0.4-20.el6.x86_64.rpm
lrwxrwxrwx. 1 apache apache 77 Nov 17 13:58 ../repos/ACME_Corporation/Devel/Spacewalk/Spacewalk/jpam-0.4-20.el6.x86_64.rpm -> ../../../../../packages/jpam/0.4/20.el6/x86_64/dfa/jpam-0.4-20.el6.x86_64.rpm
lrwxrwxrwx. 1 apache apache 77 Nov 17 13:47 ../repos/ACME_Corporation/Locker/Spacewalk/Spacewalk/jpam-0.4-20.el6.x86_64.rpm -> ../../../../../packages/jpam/0.4/20.el6/x86_64/862/jpam-0.4-20.el6.x86_64.rpm

Comment 2 Pradeep Kilambi 2011-11-29 22:32:36 UTC
commit 83161acc7207964f1626fdd1b24bf5e791eec836

Comment 3 Jeff Ortel 2011-12-03 00:00:51 UTC
build: 0.254.

Comment 4 Preethi Thomas 2011-12-15 15:49:19 UTC
verified

[root@preethi ~]# pulp-admin repo list
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+

Id                 	content                  
Name               	content                  
Repo URL           	https://preethi.usersys.redhat.com/pulp/repos/content/
Feed URL           	None                     
Feed Type          	None                     
Content Type       	yum                      
Feed Certs         	CA:No   Cert:No
Consumer Certs     	CA:No   Cert:No
Architecture       	noarch                   
Sync Schedule      	None                     
Packages           	1                        
Files              	1                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	None                     
Filters            	[]                       
Notes              	{}                       
Preserve Metadata  	False                    
Checksum Type      	sha256                   
[root@preethi ~]# ls /var/lib/pulp/packages/
gofer
[root@preethi ~]# ls /var/lib/pulp/packages/gofer/0.32/1.fc14/noarch/af0/
gofer-0.32-1.fc14.noarch.rpm


[root@preethi ~]# pulp-admin repo clone --id=content --clone_id=content-clone --feed=origin -F
Repository [content] is being cloned as [content-clone]
Clone: Finished
Item Details: 
RPMs: 1/1

[root@preethi ~]# ls /var/lib/pulp/packages/
gofer
[root@preethi ~]# ls /var/lib/pulp/packages/gofer/0.32/1.fc14/noarch/af0/
gofer-0.32-1.fc14.noarch.rpm
[root@preethi ~]# 
root@preethi ~]# ls -l /var/lib/pulp/packages/
total 4
drwxr-sr-x. 3 apache apache 4096 Dec 14 16:52 gofe

Comment 5 Preethi Thomas 2012-02-24 20:16:03 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 6 Preethi Thomas 2012-02-24 20:17:31 UTC
Pulp v1.0 is released.


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