Bug 743372 - cloning repo with origin feed syncs the repo from the feed rather than cloning from the parent.
Summary: cloning repo with origin feed syncs the repo from the feed rather than clonin...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 29
Assignee: Sayli Karmarkar
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-04 17:43 UTC by Preethi Thomas
Modified: 2015-03-23 01:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Preethi Thomas 2011-10-04 17:43:05 UTC
Description of problem:

If you clone repo with origin feed, it syncs the repo from the feed rather than cloning it from the repo


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. create a  yum repo with feed
2. do not sync it
3. now  clone the repo with --feed=origin
4. see the repo getting synced
  
[root@preethi ~]# pulp-admin repo list
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+

Id                 	f14                      
Name               	f14                      
Feed URL           	http://download.devel.redhat.com/released/F-14/GOLD/Fedora/x86_64/os
Feed Type          	remote                   
Content Type       	yum                      
Feed Certs         	CA:No   Cert:No
Consumer Certs     	CA:No   Cert:No
Architecture       	noarch                   
Sync Schedule      	None                     
Packages           	0                        
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[u'f14-clone', u'f14-clone1']
Groups             	None                     
Filters            	[]                       
Notes              	{}                  


root@preethi ~]# pulp-admin repo clone --id=f14 --clone_id=f14-clone1 --feed=origin -F
Repository [f14] is being cloned as [f14-clone1]
Clone: Finished
Item Details: 
Tree_File: 7/7
Rpm: 2766/2766

[root@preethi ~]#

Comment 1 Preethi Thomas 2011-10-04 17:44:43 UTC
Also 2nd part from 

https://bugzilla.redhat.com/show_bug.cgi?id=707633

while running cancel_clone on a repo that is being cloned gets the following
exception

[root@preethi ~]# pulp-admin repo cancel_clone  --id=f14-clone 
Clone for this repository f14-clone is being canceled

[root@preethi ~]# pulp-admin repo clone --id=f14 --clone_id=f14-clone
--feed=origin -F
Repository [f14] is being cloned as [f14-clone]
Clone: Error
Item Details: 
Tree_File: 0/7
Rpm: 304/2766
Traceback (most recent call last):
  File "/usr/bin/pulp-admin", line 23, in <module>
    admin.main()
  File "/usr/lib/python2.7/site-packages/pulp/client/lib/cli.py", line 152, in
main
    command.main(self.args[1:])
  File "/usr/lib/python2.7/site-packages/pulp/client/pluginlib/command.py",
line 129, in main
    action.main(args[1:])
  File "/usr/lib/python2.7/site-packages/pulp/client/pluginlib/command.py",
line 211, in main
    self.run()
  File "/usr/lib/python2.7/site-packages/pulp/client/admin/plugins/repo.py",
line 614, in run
    self.clone_foreground(task)
  File "/usr/lib/python2.7/site-packages/pulp/client/admin/plugins/repo.py",
line 583, in clone_foreground
    raise SyncError(task['traceback'][-1])
repo.SyncError: OSError: [Errno 2] No such file or directory:
'/var/lib/pulp//repos/f14-clone//Packages'

[root@preethi ~]#

Comment 2 Sayli Karmarkar 2011-10-28 19:09:23 UTC
commit a7ce0c1aad94c634bc0715969da78ce08f234435
Author: Sayli Karmarkar <skarmark>
Date:   Fri Oct 28 12:09:11 2011 -0700

    743372 - Fixed origin feed syncing from origin at the clone time instead of parent

Comment 3 Jeff Ortel 2011-10-28 23:12:49 UTC
build: 0.244

Comment 4 Preethi Thomas 2011-11-22 15:24:55 UTC
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.251-1.fc15.noarch

[root@preethi ~]# pulp-admin repo create --id=f15 --feed=http://download.devel.redhat.com/released/F-15/GOLD/Fedora/x86_64/os/ 
Successfully created repository [ f15 ]

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

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

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


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