Bug 705334 - repo status reports wrong percentage...
Summary: repo status reports wrong percentage...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: ---
: Sprint 24
Assignee: John Matthews
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-05-17 12:09 UTC by Tim Powers
Modified: 2011-08-16 12:21 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-08-16 12:07:55 UTC
Embargoed:


Attachments (Terms of Use)

Description Tim Powers 2011-05-17 12:09:39 UTC
Description of problem:
Percentage complete is incorrect for a sync when running pulp-admin repo status

Version-Release number of selected component (if applicable):
0.0.177-1.el6

Steps to Reproduce:
1. Create a new repo with a new feed
2. Start syncing the repo
3. Check the status of the repo while the sync is in progress.
  
Actual results:

[root@pulp-dev debug]# pulp-admin repo status --id=RHEL-6.0-Client-x86_64
+------------------------------------------+
     Status for RHEL-6.0-Client-x86_64
+------------------------------------------+
Repository: RHEL-6.0-Client-x86_64
Number of Packages: 0
Last Sync: never
Currently syncing: 100% done (2775 of 2776 packages downloaded)


Expected results:
[root@pulp-dev debug]# pulp-admin repo status --id=RHEL-6.0-Client-x86_64
+------------------------------------------+
     Status for RHEL-6.0-Client-x86_64
+------------------------------------------+
Repository: RHEL-6.0-Client-x86_64
Number of Packages: 0
Last Sync: never
Currently syncing: 100% done (2776 of 2776 packages downloaded)

Comment 1 John Matthews 2011-06-10 11:07:20 UTC
It looks like this is working with master as of 6/9/11.  
QE: Please verify this is indeed fixed.
 
+------------------------------------------+
           Status for local_rhel5
+------------------------------------------+
Repository: local_rhel5
Number of Packages: 0
Last Sync: never
Currently syncing: 99% done (7180 of 7184 packages downloaded)



+------------------------------------------+
           Status for local_rhel5
+------------------------------------------+
Repository: local_rhel5
Number of Packages: 0
Last Sync: never
Currently syncing: 99% done (7182 of 7184 packages downloaded)




+------------------------------------------+
           Status for local_rhel5
+------------------------------------------+
Repository: local_rhel5
Number of Packages: 0
Last Sync: never
Currently syncing: 100% done (7184 of 7184 packages downloaded)

Comment 2 Preethi Thomas 2011-07-08 17:12:39 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.202-1.fc14.noarch
[root@preethi ~]# 


[root@preethi ~]# pulp-admin -u admin -p admin  repo status --id=f15
+------------------------------------------+
               Status for f15
+------------------------------------------+
Repository: f15
Number of Packages: 0
Last Sync: never
Currently syncing: 19% done (749 of 2941 packages downloaded)

[root@preethi ~]# pulp-admin -u admin -p admin  repo status --id=f15
+------------------------------------------+
               Status for f15
+------------------------------------------+
Repository: f15
Number of Packages: 0
Last Sync: never
Currently syncing: 29% done (999 of 2941 packages downloaded)

[root@preethi ~]# pulp-admin -u admin -p admin  repo status --id=f15
+------------------------------------------+
               Status for f15
+------------------------------------------+
Repository: f15
Number of Packages: 0
Last Sync: never
Currently syncing: 32% done (1092 of 2941 packages downloaded)

[root@preethi ~]# pulp-admin -u admin -p admin  repo status --id=f15
+------------------------------------------+
               Status for f15
+------------------------------------------+
Repository: f15
Number of Packages: 0
Last Sync: never
Currently syncing: 35% done (1212 of 2941 packages downloaded)

[root@preethi ~]# pulp-admin -u admin -p admin  repo status --id=f15
+------------------------------------------+
               Status for f15
+------------------------------------------+
Repository: f15
Number of Packages: 0
Last Sync: never
Currently syncing: 44% done (1512 of 2941 packages downloaded)

[root@preethi ~]# pulp-admin -u admin -p admin  repo status --id=f15
+------------------------------------------+
               Status for f15
+------------------------------------------+
Repository: f15
Number of Packages: 0
Last Sync: never
Currently syncing: 59% done (1862 of 2941 packages downloaded)

[root@preethi ~]# pulp-admin -u admin -p admin  repo status --id=f15
+------------------------------------------+
               Status for f15
+------------------------------------------+
Repository: f15
Number of Packages: 0
Last Sync: never
Currently syncing: 82% done (2509 of 2941 packages downloaded)

[root@preethi ~]# pulp-admin -u admin -p admin  repo status --id=f15
+------------------------------------------+
               Status for f15
+------------------------------------------+
Repository: f15
Number of Packages: 0
Last Sync: never
Currently syncing: 86% done (2630 of 2941 packages downloaded)

[root@preethi ~]# pulp-admin -u admin -p admin  repo status --id=f15
+------------------------------------------+
               Status for f15
+------------------------------------------+
Repository: f15
Number of Packages: 0
Last Sync: never
Currently syncing: 97% done (2837 of 2941 packages downloaded)

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

Comment 3 Preethi Thomas 2011-08-16 12:07:55 UTC
Closing with Community Release 15

pulp-0.0.223-4.

Comment 4 Preethi Thomas 2011-08-16 12:21:17 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.