Bug 767763 - repo clone issue for repos with schedule
Summary: repo clone issue for repos with schedule
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: ---
: ---
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-14 20:26 UTC by Preethi Thomas
Modified: 2014-03-31 01:39 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description Preethi Thomas 2011-12-14 20:26:36 UTC
Description of problem:

repo clone seems to be waiting indefinitely if you try to clone a repo which has a sync schedule and clone command is issued when the sync is being done

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

[root@preethi ~]# rpm -q pulp
pulp-0.0.254-6.fc15.noarch

How reproducible:


Steps to Reproduce:
1. create a large repo with sync schedule
2. when the sync is in progress issue a repo clone command
3. see that the its waiting and never completing the clone
4. If you ctr+c out an try to clone again when the sync is not in progress, clone completes 
  
Actual results:
[root@preethi ~]# pulp-admin repo clone --id=rhel6 --clone_id=rhe16-clone --feed=parent -F
Sync for parent repository rhel6 already in progress
Waiting -
^C

[root@preethi ~]# pulp-admin repo clone --id=rhel6 --clone_id=rhe16-clone --feed=parent -F
Repository [rhel6] is being cloned as [rhe16-clone]
Clone: Finished
Item Details: 
Tree Files: 6/6
RPMs: 3529/3529


Expected results:

clone gets invoked as soon as sync is done
Additional info:

Comment 1 Jason Connor 2012-01-09 18:22:39 UTC
Added server-side checking for parent repo sync and return a 409 conflict if one is found
Removed client side check for parent repo sync

Fixes pushed in:
2178a6076134984a1f367ad6fa0f63bf777e62fd
91b3f370be148346e2d51f9b925b4ec1655a48bb

Comment 2 Jeff Ortel 2012-01-10 16:33:38 UTC
build: 0.257

Comment 3 Preethi Thomas 2012-01-11 19:50:34 UTC
fails_qa
[root@preethi ~]# rpm -q pulp
pulp-0.0.257-1.fc15.noarch

typo in the error message

[root@preethi ~]# pulp-admin repo clone --id=centos --clone_id=centos_id --feed=origin -F
error:  operation failed: The repository centos is currently syncing, cannot create clone util it is finished

change util to until

Comment 4 Jason Connor 2012-01-11 22:26:57 UTC
fixed in revision 549079c4f5de7cfcb78d039045297fede33120a8

Comment 5 Jeff Ortel 2012-01-16 22:47:55 UTC
build: 0.258

Comment 6 Preethi Thomas 2012-01-23 14:49:47 UTC
verified

[root@qeblade20 ~]# rpm -q pulp
pulp-0.0.258-1.el6.noarch
[root@qeblade20 ~]# 

[root@qeblade20 ~]# pulp-admin -u admin -p admin repo clone --id=protected_test_parallel_repo_A0 --clone_id=clone1 --feed=origin -F
error:  operation failed: The repository protected_test_parallel_repo_A0 is currently syncing, cannot create clone until it is finished
[root@qeblade20 ~]#

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

Comment 8 Preethi Thomas 2012-02-24 20:18:02 UTC
Pulp v1.0 is released.


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