Bug 662744

Summary: [RFE] Sync progress indicator need to show stats for all content types (pkgs, errata, files, distros, etc)
Product: [Retired] Pulp Reporter: Todd Sanders <tsanders>
Component: z_otherAssignee: John Matthews <jmatthew>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jmatthew
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-15 15:14:09 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 Todd Sanders 2010-12-13 19:13:45 UTC
Description of problem:

Currently the sync progress indicator only shows statistics for packages.  We support syncing of errata, files, & distributions as well.  These need to be added to the indicator.

Comment 1 John Matthews 2011-01-14 21:28:28 UTC
$ sudo pulp-admin repo sync --id f14_testing -F
Sync for repository f14_testing started
You can safely CTRL+C this current command and it will continue
[=========================] 100% Total: 2396/2396 items (1262/1262<rpms> 1134/1134<delta_rpms>)
0/2396 new items downloaded
2396/2396 existing items verified
Sync: Finished

Addressed "yum" syncs from grinder.  
While sync is running the progress bar and percentage account for all different item types which will be downloaded.  When it reaches 100% that means everything has been downloaded, rpms, delta_rpms, distribution trees.  During the process a counter is updated to show how many of each item type are left to be fetched.

Pulp Commit
http://git.fedorahosted.org/git/?p=pulp.git;a=commit;h=0aa5bf203b55d2d7e9f7642ffb55c08b0b6f903a

Grinder Commit
http://git.fedorahosted.org/git/?p=grinder.git;a=commit;h=cf219fd12c2bf7d45542224d41f7f3698df191ea


Local Syncs have not been fixed yet.

Comment 2 John Matthews 2011-01-18 22:41:11 UTC
Update local syncs to report progress on rpm & distribution trees

$ sudo pulp-admin repo sync --id local_trees -F
Sync for repository local_trees started
You can safely CTRL+C this current command and it will continue
[=========================] 100% Total: 311/311 items (5/5<tree_files> 306/306<rpms>

Commit here
http://git.fedorahosted.org/git/?p=pulp.git;a=commit;h=eb80cf4e9b9811a934e2aa8841386b489306bbe6

Comment 3 Jay Dobies 2011-01-21 19:18:44 UTC
Fixed in 0.130.

Comment 4 Preethi Thomas 2011-02-08 20:07:01 UTC
verified

[root@preethi pulp]#  pulp-admin repo sync --id=f14 -F
Sync for repository f14 started
Step: Downloading Items or Verifying
[==                       ] 10%
Tree_Files: 0/7
Rpms: 335/2766
Total: 335/2773 items



[root@preethi pulp]#  pulp-admin repo sync --id=f14-update -FSync for repository f14-update started
Step: Downloading Items or Verifying
[=============            ] 53%
Rpms: 4167/6065
Delta_Rpms: 0/5282
Total: 4167/11347 items



[root@preethi pulp]#  pulp-admin repo sync --id=f14-update -F
Sync for repository f14-update already in progress
Sync: Finished
362/11347 new items downloaded
10985/11347 existing items processed

Item Details: 
Rpms: 6065/6065
Delta_Rpms: 5282/5282

Comment 5 Preethi Thomas 2011-08-15 15:14:09 UTC
Closing with current community release

pulp-0.0.223