Bug 708373 - repo status not returning status of repo that is being cloned
Summary: repo status not returning status of repo that is being cloned
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 24
Assignee: Sayli Karmarkar
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-27 13:41 UTC by Preethi Thomas
Modified: 2015-03-23 01:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-24 20:12:55 UTC


Attachments (Terms of Use)

Description Preethi Thomas 2011-05-27 13:41:21 UTC
Description of problem:
If you are running a repo clone and run repo status on the repo id it just says

Sync for repository f15-clone started
Use "repo status" to check on the progress


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

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

How reproducible:


Steps to Reproduce:
1. clone a repo
2. run repo status on the clone_id while cloning is going on
3.
  
Actual results:
[root@preethi ~]# pulp-admin repo sync status --id=f15-clone
Sync for repository f15-clone started
Use "repo status" to check on the progress


Expected results:


Additional info:

Comment 1 Sayli Karmarkar 2011-06-10 22:52:53 UTC
This is fixed:


$ sudo pulp-admin repo status --id=cars
+------------------------------------------+
               Status for cars
+------------------------------------------+
Repository: cars
Number of Packages: 11
Last Sync: 2011-06-10 15:47:28-07:00

Comment 2 Sachin Ghai 2011-06-14 12:53:56 UTC
To verify this defect with build pulp 0.190, I cloned a rhel6 repo. But When I checked the sync progress using sync status, its saying 

[root@dhcp201-133 ~]# pulp-admin -u admin -p admin repo  clone --id rhel61 --clone_id test_clone_61
Repository [rhel61] is being cloned as [test_clone_61]
Use "repo status" to check on the progress

[root@dhcp201-133 ~]# pulp-admin -u admin -p admin repo  status --id test_clone_61
+------------------------------------------+
          Status for test_clone_61
+------------------------------------------+
Repository: test_clone_61
Number of Packages: 0
Last Sync: never


I tried the sync status couple of times and after around 4-5 minutes. The status was remain same. Finally when sync get finished, I got the exact status:

[root@dhcp201-133 ~]# pulp-admin -u admin -p admin repo  status --id test_clone_61
+------------------------------------------+
          Status for test_clone_61
+------------------------------------------+
Repository: test_clone_61
Number of Packages: 3391
Last Sync: 2011-06-14 18:11:10+05:30


I'm not sure the expected behaviour, however status should show the runtime progress, because "clone repo" throwing this message

>>Use "repo status" to check on the progress


Any comments ?

Comment 3 Preethi Thomas 2011-08-23 17:08:22 UTC
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.226-1.fc14.noarch

[root@preethi ~]# pulp-admin -u admin -p admin repo status --id=f14_clone
+------------------------------------------+
            Status for f14_clone
+------------------------------------------+
Repository: f14_clone
Number of Packages: 0
Last Sync: never
Currently cloning: 5% done (159 of 2773 packages cloned)

[root@preethi ~]# pulp-admin -u admin -p admin repo status --id=f14_clone
+------------------------------------------+
            Status for f14_clone
+------------------------------------------+
Repository: f14_clone
Number of Packages: 0
Last Sync: never
Currently cloning: 100% done (2773 of 2773 packages cloned)

[root@preethi ~]#

Comment 4 Preethi Thomas 2012-02-24 20:12:55 UTC
Pulp v1.0 is released
Closed Current Release.


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