Bug 1439927

Summary: UUID is not set on a ContentViewPuppetModule
Product: Red Hat Satellite Reporter: Andrew Kofink <akofink>
Component: Content ViewsAssignee: Andrew Kofink <akofink>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.8CC: bbuckingham, jcallaha
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-19 13:54:05 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 Andrew Kofink 2017-04-06 21:27:44 UTC
Description of problem:
UUID is used to link a ContentViewPuppetModule to a PuppetModule in the database, but it is not set when you add a puppet module to a content view.

Version-Release number of selected component (if applicable):
6.2.8 and nightly

How reproducible:
Always

Steps to Reproduce:
1. Create a product
2. Create a puppet module repo
3. Upload a puppet module to the new repo (i.e. https://forge.puppet.com/v3/files/puppetlabs-stdlib-4.16.0.tar.gz)
4. Create a content view
5. Add your puppet module to the content view

Actual results:
The ContentViewPuppetModule object has a nil uuid

Expected results:
The ContentViewPuppetModule object has the uuid set to the PuppetModule's uuid

Additional info:
The UUID is on the ContentViewPuppetModule to enable access to the PuppetModule. i.e. content_view_puppet_module.puppet_module will give you the PuppetModule object. Otherwise, it will return nil.

Comment 1 Andrew Kofink 2017-04-06 21:29:13 UTC
Created redmine issue http://projects.theforeman.org/issues/19211 from this bug

Comment 4 Andrew Kofink 2017-04-19 13:54:05 UTC
This is not a bug. This happens when you add the latest version of a puppet module to a content view. The UUID is set if you add a specific version of the puppet module to the content view.

Regardless, when the content view is published the UUID of the version specified (specific or latest at the time) is added to the content view version.