Bug 619162

Summary: Repo reports having packages even thou never synced
Product: [Retired] Pulp Reporter: Mike McCune <mmccune>
Component: z_otherAssignee: Mike McCune <mmccune>
Status: CLOSED DUPLICATE QA Contact: wes hayutin <whayutin>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: bkearney, jmatthew, mmccune, pkilambi
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-17 14:43:00 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:

Description Mike McCune 2010-07-28 18:11:46 UTC
* No repo schedule defined, no feed defined yet the repo has packages:

+-------------------------------------------+
    List of Available Repositories 
+-------------------------------------------+

Label              	my-repo                  
Name               	my repo's name           
Feed               	None                     
Arch               	i686                     
Sync Schedule      	None                     
Packages           	31                       

DB reports no packages either:

use _database / db.repos.find()[0]:

 "packages" : {}

need to figure out why this is.

Comment 1 John Matthews 2010-07-28 18:25:17 UTC
This is due to the change to using 'deferred fields'.  The CLI is simply doing a len on 'packages', which is a string of a URL.

Fix we discussed a bit back would be to change the API and fetch the number of packages in a repo and return that, then update the CLI so it displays that package_count.

Comment 2 Pradeep Kilambi 2010-08-17 14:43:00 UTC

*** This bug has been marked as a duplicate of bug 621246 ***