Bug 621246 - Wrong package count shown in repo list
Summary: Wrong package count shown in repo list
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
: ---
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
: 619162 (view as bug list)
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2010-08-04 15:14 UTC by Preethi Thomas
Modified: 2011-08-16 14:02 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 14:02:48 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2010-08-04 15:14:35 UTC
Description of problem:


1. Create a rhn repo rhel-x86_64-client-vt-5 

2. Repo sync 

[root@preethi pulp]# pulp -u admin -p admin repo sync --id=rhel-x86_64-client-vt-5
Sync Status:: running
Sync Status:: running
Sync Status:: finished
 Sync Successful. Repo [ rhel-x86_64-client-vt-5 ] now has a total of [ 86 ] packages
[root@preethi pulp]# pulp -u admin -p admin repo list

see the message  Repo [ rhel-x86_64-client-vt-5 ] now has a total of [ 86 ] packages

3. 

[root@preethi pulp]# pulp -u admin -p admin repo list
+-------------------------------------------+
    List of Available Repositories 
+-------------------------------------------+

Label                   rhel-x86_64-client-vt-5  
Name                    rhel-x86_64-client-vt-5  
Feed                    {u'url': u'satellite.rhn.redhat.com/rhel-x86_64-client-vt-5', u'type': u'rhn', u'supported_types': [u'yum', u'local', u'rhn']}
Arch                    x86_64                   
Sync Schedule           None                     
Packages                47

Comment 2 Pradeep Kilambi 2010-08-17 14:43:00 UTC
*** Bug 619162 has been marked as a duplicate of this bug. ***

Comment 3 Jason Connor 2010-09-14 15:37:12 UTC
I've added a new package count field, so the output now looks like:
sudo pulp-admin -u admin -p admin repo list
+-------------------------------------------+
    List of Available Repositories 
+-------------------------------------------+

Label              	my-rawhide               
Name               	My Fedora Rawhide Repo   
Feed               	{u'url': u'ftp://mirror.cs.princeton.edu/pub/mirrors/fedora/linux/development/x86_64/os/', u'type': u'yum', u'supported_types': [u'yum', u'local', u'rhn']}
Arch               	x86_64                   
Sync Schedule      	None                     
Package Count      	0                        
Packages           	/pulp/api/repositories/my-rawhide/packages/

Should I replace the packages field? or just leave it?

Comment 4 Jason Connor 2010-09-14 16:07:45 UTC
Got rid of the Package Count field and just replaced Packages with the count:
sudo pulp-admin -u admin -p admin repo list
+-------------------------------------------+
    List of Available Repositories 
+-------------------------------------------+

Label              	my-rawhide               
Name               	My Fedora Rawhide Repo   
Feed               	{u'url': u'ftp://mirror.cs.princeton.edu/pub/mirrors/fedora/linux/development/x86_64/os/', u'type': u'yum', u'supported_types': [u'yum', u'local', u'rhn']}
Arch               	x86_64                   
Sync Schedule      	None                     
Packages           	0

Comment 5 Preethi Thomas 2010-09-21 15:18:14 UTC
verified
[root@preethi ~]# rpm -qa  |grep pulp
pulp-client-0.0.65-1.fc13.noarch
pulp-common-0.0.65-1.fc13.noarch
pulp-0.0.65-1.fc13.noarch


[root@preethi ~]# pulp-admin -u admin -p admin repo sync --id=f12_x86_64
Task created with ID:: 0732f49e-c594-11df-ac2d-002564a85a58
Sync Status:: running
Sync Status:: running
Sync Status:: running
Sync Status:: running
Sync Status:: running
Sync Status:: running
Sync Status:: running
Sync Status:: running
Sync Status:: running
Sync Status:: running
Sync Status:: running
Sync Status:: running
Sync Status:: running
Sync Status:: running
Sync Status:: running
Sync Status:: running
Sync Status:: running
Sync Status:: running
Sync Status:: running
Sync Status:: finished
 Sync Successful. Repo [ f12_x86_64 ] now has a total of [ 2998 ] packages
[root@preethi ~]# pulp-admin -u admin -p admin repo list
+-------------------------------------------+
    List of Available Repositories 
+-------------------------------------------+



Label                   f13                      
Name                    f13                      
Feed                    {u'url': u'http://download.devel.redhat.com/released/F-13/GOLD/Fedora/x86_64/os/', u'type': u'yum', u'supported_types': [u'yum', u'local', u'rhn']}
Arch                    x86_64                   
Sync Schedule           None                     
Packages                3102                     
Files                   8                        


Label                   f12_x86_64               
Name                    f12                      
Feed                    {u'url': u'http://download.devel.redhat.com/released/F-12/GOLD/Fedora/x86_64/os/', u'type': u'yum', u'supported_types': [u'yum', u'local', u'rhn']}
Arch                    x86_64                   
Sync Schedule           None                     
Packages                2998                     
Files                   8

Comment 6 Preethi Thomas 2011-08-16 14:02: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.