Hide Forgot
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 ~]#
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 ~]#
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
build: 0.244
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:
Pulp v1.0 is released Closed Current Release.
Pulp v1.0 is released.