Bug 652685 - sync status not reporting status of the cloned repo.
Summary: sync status not reporting status of the cloned repo.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
: 648551 (view as bug list)
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2010-11-12 14:43 UTC by Preethi Thomas
Modified: 2014-03-31 01:38 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 14:01:56 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2010-11-12 14:43:52 UTC
Description of problem:



If you run repo clone and the run repo status on the cloned repo, the status is not being reported back.


1. Clone a repo without the -F option

2. See the message that use "repo status to check the progress

3. Run repo status on the cloned repo

4. Wait sometime and run repo status again


[root@preethi ~]# pulp-admin repo clone --id=f13 --clone_id=clone_f13 --clone_name=clone_f13 --feed=parent
Repository [f13] is being cloned as [clone_f13]
Use "repo status" to check on the progress

[root@preethi ~]# pulp-admin repo status --id=clone_f13 
+------------------------------------------+
            Status for clone_f13
+------------------------------------------+
Repository: clone_f13
Number of Packages: 0
Last Sync: never

[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin repo status --id=clone_f13 +------------------------------------------+
            Status for clone_f13
+------------------------------------------+
Repository: clone_f13
Number of Packages: 3102
Last Sync: 2010-11-12 09:38:11.853000

Comment 1 Jay Dobies 2010-11-17 16:54:14 UTC
*** Bug 648551 has been marked as a duplicate of this bug. ***

Comment 2 Jason Connor 2011-01-13 03:40:40 UTC
This "bug" really amounts to an RFE for progress on local syncs. Because no progress is reported for local syncs, no progress can be reported for cloning.

As of git revision: 30598cfdba6942d693f0d948d6c08bb73a79a27c
Progress reporting has been added to both local syncs and cloning

$ sudo pulp-admin -u admin -p admin repo clone --id=my-rpmfusion --clone_id=my-rpmfusion-clone-2 --feed=parent -F
Repository [my-rpmfusion] is being cloned as [my-rpmfusion-clone-2]
You can safely CTRL+C this current command and it will continue
[==================================================] 100% (411 of 411 pkgs)
Clone: Finished

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

Comment 4 Preethi Thomas 2011-01-14 20:19:19 UTC
verified

[root@preethi ~]# rpm -q pulp
pulp-0.0.124-1.fc14.noarch

[root@preethi ~]# pulp-admin repo clone --id=pulp-repo --clone_id=pulp-clone1 --feed=parent -F
Repository [pulp-repo] is being cloned as [pulp-clone1]
You can safely CTRL+C this current command and it will continue
[==================================================] 100% (10 of 10 pkgs)
Clone: Finished

[root@preethi ~]# pulp-admin repo clone --id=pulp-repo --clone_id=pulp-clone2 --feed=origin -F
Repository [pulp-repo] is being cloned as [pulp-clone2]
You can safely CTRL+C this current command and it will continue
[==================================================] 100% (10 of 10 pkgs)
Clone: Finished


[root@preethi ~]# pulp-admin repo clone --id=pulp-repo --clone_id=pulp-clone2 --feed=none -F
error: operation failed: A repository with the id, pulp-clone2, already exists
[root@preethi ~]# pulp-admin repo clone --id=pulp-repo --clone_id=pulp-clone3 --feed=none -F
Repository [pulp-repo] is being cloned as [pulp-clone3]
You can safely CTRL+C this current command and it will continue
[==================================================] 100% (10 of 10 pkgs)
Clone: Finished

[root@preethi ~]# pulp-admin repo list
+------------------------------------------+
       List of Available Repositories
+------------------------------------------+

Id                 	pulp-repo                
Name               	pulp-repo                
FeedURL            	http://repos.fedorapeople.org/repos/pulp/pulp/testing/fedora-13/x86_64/
FeedType           	yum                      
Arch               	x86_64                   
Sync Schedule      	None                     
Packages           	10                       
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	['pulp-clone1', 'pulp-clone2', 'pulp-clone3']
Groups             	None                     


Id                 	pulp-clone1              
Name               	pulp-clone1              
FeedURL            	file:///var/lib/pulp/repos/repos/pulp/pulp/testing/fedora-13/x86_64
FeedType           	local                    
Arch               	x86_64                   
Sync Schedule      	None                     
Packages           	10                       
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	None                     


Id                 	pulp-clone2              
Name               	pulp-clone2              
FeedURL            	http://repos.fedorapeople.org/repos/pulp/pulp/testing/fedora-13/x86_64/
FeedType           	yum                      
Arch               	x86_64                   
Sync Schedule      	None                     
Packages           	10                       
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	None                     


Id                 	pulp-clone3              
Name               	pulp-clone3              
FeedURL            	None                     
FeedType           	None                     
Arch               	x86_64                   
Sync Schedule      	None                     
Packages           	10                       
Files              	0                        
Distributions      	None                     
Publish            	True                     
Clones             	[]                       
Groups             	None

Comment 5 Preethi Thomas 2011-08-16 14:01:56 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.