Bug 701736

Summary: currently syncing field shows 100% if you run repo status on a resync as soon as you run repo sync
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: z_otherAssignee: John Matthews <jmatthew>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: low Docs Contact:
Priority: medium    
Version: unspecifiedCC: jmatthew, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 24   
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:06:31 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 Preethi Thomas 2011-05-03 17:26:58 UTC
Description of problem:
If run repo sync on an already synced repo and run repo status immediately 
Currently syncing shows  as follows

Currently syncing: 100% done (0 of 0 packages downloaded)

Version-Release number of selected component (if applicable):
[root@preethi ~]# rpm -q pulp
pulp-0.0.172-1.fc14.noarch


How reproducible:


Steps to Reproduce:
1. create and sync a repo
2. see the repo status to make sure that  the sync is completed and Last sync is shown
3.Now run repo sync again
4. run repo status soon after running repo sync
  
Actual results:


[root@preethi ~]# pulp-admin repo status --id=f14-original 
+------------------------------------------+
           Status for f14-original
+------------------------------------------+
Repository: f14-original
Number of Packages: 2766
Last Sync: 2011-05-03 17:31:12

[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin repo sync --id=f14-original 
Sync for repository f14-original started
Use "repo status" to check on the progress
[root@preethi ~]# pulp-admin repo status --id=f14-original 
+------------------------------------------+
           Status for f14-original
+------------------------------------------+
Repository: f14-original
Number of Packages: 2766
Last Sync: 2011-05-03 17:31:12
Currently syncing: 100% done (0 of 0 packages downloaded)

Comment 1 John Matthews 2011-06-13 17:08:05 UTC
Fixed in this commit: 45e80840ad64ef8e4c63aeb166aa416ae0d04414

Comment 2 Jeff Ortel 2011-06-13 19:48:12 UTC
build: 0.190

Comment 3 Preethi Thomas 2011-07-07 18:42:18 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.202-1.fc14.noarch

[root@preethi ~]# pulp-admin repo sync --id=f14
Sync for repository f14 started
Use "repo status" to check on the progress
[root@preethi ~]# pulp-admin repo status --id=f14
+------------------------------------------+
               Status for f14
+------------------------------------------+
Repository: f14
Number of Packages: 2766
Last Sync: 2011-07-07 14:49:39-04:00
Currently syncing: 0% done (0 of 0 packages downloaded)

[root@preethi ~]# pulp-admin repo status --id=f14
+------------------------------------------+
               Status for f14
+------------------------------------------+
Repository: f14
Number of Packages: 2766
Last Sync: 2011-07-07 14:49:39-04:00
Currently syncing: 28% done (669 of 2773 packages downloaded)

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

pulp-0.0.223-4.

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

pulp-0.0.223-4.