Bug 662741

Summary: Sync progress indicator needs to only show content stats for downloaded content
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: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 13:58:48 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:09:14 UTC
Description of problem:

*Fedora 14
*Build 0.109

Every time I run pulp-admin repo sync -F it shows:

[root@tsanders-x201 rhui-amazon-20101109]# pulp-admin repo sync --id=rhui1.1 -F
Sync for repository rhui1.1 started
You can safely CTRL+C this current command and it will continue
[==================================================] 100% (10 of 10 pkgs)
Sync: Finished


I understand that it has to verify checksums for each package against what is already in the repo, but unless there are updated packages that are downloaded in a sync run.....I'd expect to see "0 of 0 pkgs"....in other words, no updated content to sync'd.

Comment 1 John Matthews 2011-01-11 20:30:15 UTC
I made a change to the end of a repo sync to display more information about how
many packages were downloaded vs. verified. 

Example 1:  First time sync

$ sudo pulp-admin repo sync --id repo500 -F
Sync for repository repo500 started
You can safely CTRL+C this current command and it will continue
[==================================================] 100% (500 of 500 pkgs)
500/500 new items downloaded
0/500 existing items verified
Sync: Finished



Example 2: Partial sync (some packages were corrupted in pulp)

$ sudo pulp-admin repo sync --id repo500 -F
Sync for repository repo500 started
You can safely CTRL+C this current command and it will continue
[==================================================] 100% (500 of 500 pkgs)
36/500 new items downloaded
464/500 existing items verified
Sync: Finished


Example 3: No new content 
$ sudo pulp-admin repo sync --id repo500 -F
Sync for repository repo500 started
You can safely CTRL+C this current command and it will continue
[==================================================] 100% (500 of 500 pkgs)
0/500 new items downloaded
500/500 existing items verified
Sync: Finished


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

Comment 2 Jay Dobies 2011-01-12 19:37:00 UTC
Fixed in build 0.123.

Comment 3 Preethi Thomas 2011-01-13 15:07:06 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.123-1.fc14.noarch

[root@preethi ~]# pulp-admin repo sync --id=f13 -F
Sync for repository f13 started
You can safely CTRL+C this current command and it will continue
[==================================================] 100% (3111 of 3111 pkgs)
3102/3111 new items downloaded
9/3111 existing items verified
Sync: Finished

[root@preethi ~]# pulp-admin repo sync --id=f13 -F
Sync for repository f13 started
You can safely CTRL+C this current command and it will continue
[==================================================] 100% (3111 of 3111 pkgs)
0/3111 new items downloaded
3111/3111 existing items verified
Sync: Finished

[root@preethi ~]# pulp-admin repo sync --id=f13 -F
Sync for repository f13 started
You can safely CTRL+C this current command and it will continue
[==================================================] 100% (3111 of 3111 pkgs)
1/3111 new items downloaded
3110/3111 existing items verified
Sync: Finished

Comment 4 Preethi Thomas 2011-08-16 13:58:48 UTC
Closing with Community Release 15

pulp-0.0.223-4.