Bug 1114631

Summary: cannot list all puppet modules what were uploaded to repository
Product: Red Hat Satellite Reporter: Ales Dujicek <adujicek>
Component: Content ManagementAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.3CC: bbuckingham
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-01 15:14:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ales Dujicek 2014-06-30 14:13:38 UTC
Description of problem:

some uploaded puppet modules to repository are not listed in repository


# hammer repository upload-content --id 12 --path puppetlabs-concat-1.0.2.tar.gz
Successfully uploaded file 'puppetlabs-concat-1.0.2.tar.gz'.

# hammer puppet-module list --repository-id 12
-------------------------------------|--------|---------|-----------
ID                                   | NAME   | VERSION | AUTHOR    
-------------------------------------|--------|---------|-----------
2c0028e0-5bee-4dd9-b046-6476d714bcac | concat | 1.0.2   | puppetlabs
-------------------------------------|--------|---------|-----------

# hammer repository upload-content --id 12 --path puppetlabs-apt-1.4.0.tar.gz
Successfully uploaded file 'puppetlabs-apt-1.4.0.tar.gz'.
# hammer repository upload-content --id 12 --path puppetlabs-inifile-1.0.3.tar.gz
Successfully uploaded file 'puppetlabs-inifile-1.0.3.tar.gz'.

# hammer puppet-module list --repository-id 12
-------------------------------------|--------|---------|-----------
ID                                   | NAME   | VERSION | AUTHOR    
-------------------------------------|--------|---------|-----------
2c0028e0-5bee-4dd9-b046-6476d714bcac | concat | 1.0.2   | puppetlabs
42931a34-a017-4f3b-bf8b-0c141b3c24db | apt    | 1.4.0   | puppetlabs
-------------------------------------|--------|---------|-----------

^^ puppetlabs-inifile-1.0.3.tar.gz missing
but when I upload the same module to another repo, then it is listed in both

# hammer repository upload-content --id 13 --path puppetlabs-inifile-1.0.3.tar.gz
Successfully uploaded file 'puppetlabs-inifile-1.0.3.tar.gz'.

# hammer puppet-module list --repository-id 12
-------------------------------------|---------|---------|-----------
ID                                   | NAME    | VERSION | AUTHOR    
-------------------------------------|---------|---------|-----------
98f3dbee-bb9c-47ae-a1dd-119f5940502d | inifile | 1.0.3   | puppetlabs
2c0028e0-5bee-4dd9-b046-6476d714bcac | concat  | 1.0.2   | puppetlabs
42931a34-a017-4f3b-bf8b-0c141b3c24db | apt     | 1.4.0   | puppetlabs
-------------------------------------|---------|---------|-----------



I also noticed that if I upload more versions of module, only the first one is listed

# hammer repository upload-content --id 12 --path puppetlabs-mysql-2.2.0.tar.gz
Successfully uploaded file 'puppetlabs-mysql-2.2.0.tar.gz'.
# hammer repository upload-content --id 12 --path puppetlabs-mysql-2.2.3.tar.gz 
Successfully uploaded file 'puppetlabs-mysql-2.2.3.tar.gz'.
# hammer puppet-module list --repository-id 12 ; hammer puppet-module list --repository-id 13
-------------------------------------|---------|---------|-----------
ID                                   | NAME    | VERSION | AUTHOR    
-------------------------------------|---------|---------|-----------
98f3dbee-bb9c-47ae-a1dd-119f5940502d | inifile | 1.0.3   | puppetlabs
2c0028e0-5bee-4dd9-b046-6476d714bcac | concat  | 1.0.2   | puppetlabs
42931a34-a017-4f3b-bf8b-0c141b3c24db | apt     | 1.4.0   | puppetlabs
fb3a6bfc-a9cb-459e-a4d4-3505f7a5c2ea | mysql   | 2.2.0   | puppetlabs
-------------------------------------|---------|---------|-----------


Version-Release number of selected component (if applicable):
Satellite-6.0.3-RHEL-6-20140626.1

Comment 2 Brad Buckingham 2014-07-01 15:14:10 UTC

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