Project

Profile

Help

Issue #1385

Updated by ipanova@redhat.com over 8 years ago

Following Puppet Quick Start Guide [1], @Content Unit Counts@ is not updated when puppet modules are added to repository. Same issue occures with RPM module. One thus can not query repository by number of units it contains. 
 <pre> 

 # [root@ec2-54-216-27-134 ~]# pulp-admin puppet repo create --repo-id=repo1 --description="Mirror of Puppet Forge" --display-name="Repo 1" --feed=http://forge.puppetlabs.com 
 Successfully created repository [repo1] 
 # 

 [root@ec2-54-216-27-134 ~]# pulp-admin puppet repo update --repo-id=repo1 --queries=libvirt 
 Repository [repo1] successfully updated 
 # 

 [root@ec2-54-216-27-134 ~]# pulp-admin puppet repo sync run --repo-id=repo1 
 +----------------------------------------------------------------------+ 
                     Synchronizing Repository [repo1] 
 +----------------------------------------------------------------------+ 

 This command may be exited via ctrl+c without affecting the request. 


 Downloading metadata... 
 [==================================================] 100% 
 Metadata Query: 1/1 items 
 ... completed 

 Downloading new modules... 
 [==================================================] 100% 
 Module: 8/8 items 
 ... completed 


 Task Succeeded 



 Publishing modules... 
 [==================================================] 100% 
 Module: 8/8 items 
 ... completed 

 Generating repository metadata... 
 [-] 
 ... completed 

 Publishing repository over HTTP... 
 ... completed 

 Publishing repository over HTTPS... 
 ... skipped 

 Task Succeeded 

 # 


 [root@ec2-54-216-27-134 ~]# pulp-admin puppet repo search 
 +----------------------------------------------------------------------+ 
                               Repositories 
 +----------------------------------------------------------------------+ 

 Id:                    repo1 
 Display Name:          Repo 1 
 Description:           Mirror of Puppet Forge 
 Content Unit Counts: 
   Puppet Module: 8 
 Last Unit Added:       2015-11-24T14:12:36Z 
 Last Unit Removed:     None 
 Notes: 


 # [root@ec2-54-216-27-134 ~]# pulp-admin puppet repo search --gt='content_unit_count=0' 
 +----------------------------------------------------------------------+ 
                               Repositories 
 +----------------------------------------------------------------------+ 

 [root@ec2-54-216-27-134 ~]# 

 </pre> 

 [1] http://pulp-puppet.readthedocs.org/en/latest/user-guide/quick-start.html

Back