Bug 670526

Summary: Add more information to progress reporting of repo syncs: Remove Obsolete items and Metadata Update
Product: [Retired] Pulp Reporter: John Matthews <jmatthew>
Component: z_otherAssignee: John Matthews <jmatthew>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: tsanders
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 12:07:44 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 John Matthews 2011-01-18 15:33:28 UTC
Description of problem:
We currently display information for the download portion of a repository synchronization.  After this step completes, pulp may perform other operations like metadata creation or removal of packages no longer in the repository.  We do not report progress report for these activities.  On small repos this time is not noticed, on certain larger repos this time is significant.

Example:
Begin test with an old sync of fedora testing.  A few days old should be sufficient.  Point is we want to have an existing sync with data that will be deleted.  

Re-sync and observe that status reports: 100% yet the sync hasn't returned.  It will probably be a few minutes of removing packages (tail /var/log/pulp/pulp.log to see what's happening).


Fix would be to add more information to progress report, after downloading of packages has completed.

Possible new states to show:
a) Downloading items
b) Removing obsolete items
c) Metadata update

Comment 1 John Matthews 2011-01-25 13:02:56 UTC
CLI has been updated to show:
1) Download metadata
2) Downloading items
3) Removing old packages
4) Updating metadata (if appropriate)

Each step is updated in real-time.  While a step is on-going we spin a symbol to show the CLI is still running.

Main commit for these changes is below:
http://git.fedorahosted.org/git/?p=pulp.git;a=commitdiff;h=c0754c729bdc6efe2dd4ad18abf5c70fb731b643

Comment 2 Jay Dobies 2011-01-26 21:27:20 UTC
Fixed in 0.132.

Comment 3 Preethi Thomas 2011-02-04 19:23:08 UTC
verified

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

[root@unused ~]# pulp-admin repo clone --id=rhel5-pulp --clone_id=clone-pulp-el5 --clone_name=clone-pulp-el5 --feed=origin -F
Repository [rhel5-pulp] is being cloned as [clone-pulp-el5]
Clone: Finished
Item Details: 
Rpms: 12/12

Comment 4 Preethi Thomas 2011-08-16 12:07:44 UTC
Closing with Community Release 15

pulp-0.0.223-4.

Comment 5 Preethi Thomas 2011-08-16 12:21:09 UTC
Closing with Community Release 15

pulp-0.0.223-4.