Bug 643011

Summary: sync status not reporting the actual percentage for "Currently syncing" field
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: z_otherAssignee: Jason Connor <jconnor>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: high Docs Contact:
Priority: medium    
Version: unspecifiedCC: jason.dobies, mmccune, pkilambi, tsanders
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 14:03:04 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: 641987    

Description Preethi Thomas 2010-10-14 13:08:39 UTC
Description of problem:


Currently syncing shows 0% done during sync. It needs to report the actual percentage

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

Comment 1 Preethi Thomas 2010-10-14 13:36:02 UTC
[root@preethi ~]# pulp-admin repo status --id=f12_x86_64_update
+------------------------------------------+
        Status for f12_x86_64_update
+------------------------------------------+
Repository: f12_x86_64_update
Number of Packages: 0
Last Sync: never
Currently syncing: 1% done (11205 of 11205 packages downloaded)

Comment 2 Jason Connor 2010-10-27 19:34:38 UTC
*** Bug 644968 has been marked as a duplicate of this bug. ***

Comment 3 Jay Dobies 2010-10-29 16:58:35 UTC
Fixed in 0.77.

Comment 4 Jay Dobies 2010-11-03 19:35:37 UTC
Fixed in build 0.78.

Comment 5 Preethi Thomas 2010-11-08 14:55:48 UTC
fails_qa


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

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

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

[root@preethi ~]#  pulp-admin repo status --id=f13
+------------------------------------------+
               Status for f13
+------------------------------------------+
Repository: f13
Number of Packages: 0
Last Sync: never
Currently syncing: 1% done (3109 of 3111 packages downloaded)

[root@preethi ~]#  pulp-admin repo status --id=f13
+------------------------------------------+
               Status for f13
+------------------------------------------+
Repository: f13
Number of Packages: 0
Last Sync: never
Currently syncing: 1% done (3110 of 3111 packages downloaded)

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

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

Comment 6 Pradeep Kilambi 2011-01-04 18:06:43 UTC
seems to be working.. can you retest this?

$ sudo pulp-admin repo sync --id=rhel-server-5Server-i386 -F
Sync for repository rhel-server-5Server-i386 already in progress
You can safely CTRL+C this current command and it will continue
[=================================                 ] 66% (5549 of 7861 pkgs)



$ sudo pulp-admin repo sync --id=rhel-server-5Server-i386 -F
Sync for repository rhel-server-5Server-i386 already in progress
You can safely CTRL+C this current command and it will continue
[========================================          ] 80% (6634 of 7861 pkgs)

Comment 7 Preethi Thomas 2011-01-04 18:59:12 UTC
This seems to be working now. 

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


[root@preethi ~]# pulp-admin repo sync --id=f13-updates -F
Sync for repository f13-updates started
You can safely CTRL+C this current command and it will continue
[================================================  ] 97% (13362 of 13363 pkgs)

Comment 8 Preethi Thomas 2011-08-16 14:03:04 UTC
Closing with Community Release 15

pulp-0.0.223-4.