[root@pulp-qe ~]# pulp-admin repo create --id=foo --feed=yum:http://10.16.76.78/pub/updates Successfully created repository [ foo ] [root@pulp-qe ~]# pulp-admin repo sync --id=foo Sync for repository foo started Use "repo status" to check on the progress [root@pulp-qe ~]# pulp-admin repo clone --id=foo --clone_id=bar --feed=parent -F Repository [foo] is being cloned as [bar] You can safely CTRL+C this current command and it will continue [ ] 0% Clone: Finished [root@pulp-qe ~]# pulp-admin repo clone --id=foo --clone_id=baz --feed=origin -F Repository [foo] is being cloned as [baz] You can safely CTRL+C this current command and it will continue [ ] 0% Clone: Finished [root@pulp-qe ~]# pulp-admin repo sync --id=bar -F Sync for repository bar started You can safely CTRL+C this current command and it will continue [ ] 0% Sync: Finished [root@pulp-qe ~]# pulp-admin repo sync --id=baz -F Sync for repository baz started You can safely CTRL+C this current command and it will continue [==================================================] 100% (5 of 5 pkgs) Sync: Error KeyError: 'repo_defined'
011-01-07 15:45:26,421 [INFO][Thread-41] _sync() @ repo.py:1154 - Sync returned 10 packages, 0 errata 2011-01-07 15:45:26,442 [ERROR][Thread-41] failed() @ task.py:207 - Task id:0d96c828-1a9f-11e0-8302-54520047a0af, method_name:_sync: Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/pulp/server/tasking/task.py", line 131, in run result = self.callable(*self.args, **self.kwargs) File "/usr/lib/python2.6/site-packages/pulp/server/api/repo.py", line 1162, in _sync repo["packages"][pid]["repo_defined"]: KeyError: 'repo_defined'
This was reported in f13. f14 worked fine.
Tried reproducing it on F13 x86_64 box, but no luck. $ pulp-admin repo clone --id=example --clone_id=ex-clone1 --feed=origin -F Repository [example] is being cloned as [ex-clone1] You can safely CTRL+C this current command and it will continue [ ] 0% Clone: Finished $ sudo pulp-admin repo sync --id=ex-clone1 -F Sync for repository ex-clone1 started You can safely CTRL+C this current command and it will continue [==================================================] 100% (10 of 10 pkgs) 0/10 new items downloaded 10/10 existing items verified Sync: Finished $ cat /etc/redhat-release Fedora release 13 (Goddard) Preethi, can you cross-check?
David was able to reproduce it on nightly build box. I tested my fix on that box and it seems to be working fine now. Moving it to modified.
Fixed in build 0.124.
[root@unused ~]# pulp-admin repo clone --id=rhel5-pulp --clone_id=clone-pulp-el5 --clone_name=clone-pulp-el5 --feed=origin -F Repository [rhel5-pulp] is being cloned as [clone-pulp-el5] Clone: Finished Item Details: Rpms: 12/12
201102041045:56.343 - FINE: ssh root.redhat.com pulp-admin repo sync --id origin_clone_repo -F (com.redhat.qe.tools.SSHCommandRunner.run) 201102041045:58.016 - FINE: Stdout: Sync for repository origin_clone_repo started You can safely CTRL+C this current command and it will continue [0F[JWaiting / [1F[JStep: Downloading Items or Verifying [=========================] 100% Rpms: 6/6 Total: 6/6 items [4F[JStep: Importing data into pulp Waiting - [2F[JStep: Processing Errata Waiting \ [2F[JSync: Finished 0/6 new items downloaded 6/6 existing items processed Item Details: Rpms: 6/6
Closing with Community Release 15 pulp-0.0.223-4.