Bug 668071 - origin clone sync returns error
Summary: origin clone sync returns error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: Sayli Karmarkar
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: pulp-verified
TreeView+ depends on / blocked
 
Reported: 2011-01-07 20:04 UTC by dgao
Modified: 2015-03-23 01:10 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-08-16 14:02:03 UTC
Embargoed:


Attachments (Terms of Use)

Description dgao 2011-01-07 20:04:24 UTC
[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'

Comment 1 Preethi Thomas 2011-01-07 20:52:27 UTC
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'

Comment 2 Preethi Thomas 2011-01-11 19:32:04 UTC
This was reported in f13. f14 worked fine.

Comment 3 Sayli Karmarkar 2011-01-13 00:37:10 UTC
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?

Comment 4 Sayli Karmarkar 2011-01-13 21:25:05 UTC
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.

Comment 5 Jay Dobies 2011-01-14 20:08:10 UTC
Fixed in build 0.124.

Comment 6 Preethi Thomas 2011-02-04 18:31:48 UTC
[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

Comment 7 dgao 2011-02-04 18:50:46 UTC
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

Comment 8 Preethi Thomas 2011-08-16 14:02:03 UTC
Closing with Community Release 15

pulp-0.0.223-4.


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