Bug 705334

Summary: repo status reports wrong percentage...
Product: [Retired] Pulp Reporter: Tim Powers <timp>
Component: z_otherAssignee: John Matthews <jmatthew>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: low    
Version: unspecifiedCC: skarmark, tsanders
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 24   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 12:07:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 647488    

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.