Project

Profile

Help

Issue #890

Updated by bmbouter over 9 years ago

Reproducer steps: 

 0) Perform a fresh install EL6 

 1) If you download the file: 
 <pre> 
 wget https://forgeapi.puppetlabs.com/v3/files/deric-accounts-1.1.2.tar.gz 
 </pre> this module: https://forge.puppetlabs.com/deric/accounts/1.0.2 

 2) Rename the deric-accounts-1.1.2.tar.gz file and upload it to be foo-bar-1.1.2.tar.gz 

 <pre> 
 cp deric-accounts-1.1.2.tar.gz foo-bar-1.1.2.tar.gz 
 </pre> 

 3) create an empty puppet repo: 
 <pre> 
 pulp-admin -u admin -p admin puppet repo create --repo-id zoo-puppet 
 </pre> 

 4) upload the puppet module using the new name. 
 <pre> 
 pulp-admin -u admin -p admin puppet repo uploads upload --file ./foo-bar-1.1.2.tar.gz --repo-id zoo-puppet 
 </pre> 

 4) list the metadata of the modules: 
 <pre> 
 [bmbouter@server pulp]$ pulp-admin -u admin -p admin puppet repo modules --repo-id zoo-puppet 
 </pre> 

 5) You pulp, it will see end up with the wrong author, name and version in pulp. This is 'stdlib', but the expected name because there is 'accounts' Also an entire additional puppet module bundled with it, and when pulp goes looking for the author will be 'puppetlabs', but "metadata.json" file, it finds and uses the expected author wrong one. 

 The bundled module is 'deric'. puppetlabs-stdlib-4.1.0, and so pulp ends up using that module's metadata.

Back