Bug 662741 - Sync progress indicator needs to only show content stats for downloaded content
Summary: Sync progress indicator needs to only show content stats for downloaded content
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: John Matthews
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2010-12-13 19:09 UTC by Todd Sanders
Modified: 2011-08-16 13:58 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-08-16 13:58:48 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.