Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1158991

Summary: Editing Environment or Content View of Hostgroup clears assigned modules
Product: Red Hat Satellite Reporter: Nick Strugnell <nstrug>
Component: PuppetAssignee: Sebastian Gräßl <sgraessl>
Status: CLOSED NEXTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.4CC: dcleal, jcallaha, peter.vreman
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/3551
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 20:01:30 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:
Bug Depends On:    
Bug Blocks: 1122832    

Description Nick Strugnell 2014-10-30 16:07:36 UTC
Description of problem:
When editing a hostgroup, if the 'Environment' or 'Content View' select boxes are changed on the 'Host Group' tab, all puppet module allocations under the 'Puppet Classes' tab are immediately cleared.

Version-Release number of selected component (if applicable):
6.0.4

How reproducible:
Always


Steps to Reproduce:
1.Edit a host group
2. Go to the 'Puppet Classes' tab and ensure it has puppet modules assigned
3. Go to the 'Host Group' tab and change either the 'Lifecycle Environment' or the 'Puppet Environment/Content View' tab
4. Go back to the 'Puppet Classes' tab

Actual results:
All puppet modules have been cleared from the hostgroup


Expected results:
All puppet modules should still be available.

Additional info:
My understanding is that changing the Lifecycle Environment or Content View of a hostgroup does not change existing hosts, only future ones, however changing the puppet module assignments will change existing hosts too. We need to reconcile these two behaviours - for example, what happens if you change the content view in the hostgroup to one that does not contain the existing modules?

Comment 1 RHEL Program Management 2014-10-30 16:13:16 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Dominic Cleal 2014-10-30 16:37:43 UTC
Connecting redmine issue http://projects.theforeman.org/issues/3551 from this bug

Comment 5 Bryan Kearney 2015-08-25 18:32:27 UTC
Upstream bug component is Provisioning

Comment 6 Bryan Kearney 2015-08-26 19:18:36 UTC
Upstream bug component is Provisioning

Comment 7 Peter Vreman 2015-11-23 17:18:57 UTC
This is still a problem with Sat6.1.3. Changing the Content View and puppet environments does not keep the classes, even if the classes are available in the both contentview/puppetenvironment

UseCase is when you upgrade the Host to a ContentView that has a newer release:

Before CV-1.0 Change to CV-1.1
Then the puppet module with the name product-cv-module that is availabel in both Contentviews is not kept, requiring the user to re-associate all puppet modules. This is a tedious task if you have 10+ puppet modules to associate.

Comment 8 Bryan Kearney 2016-07-08 20:29:25 UTC
Per 6.3 planning, moving out non acked bugs to the backlog

Comment 10 Bryan Kearney 2016-08-10 19:04:51 UTC
Upstream bug component is Configuration Management

Comment 11 Bryan Kearney 2016-08-10 20:05:48 UTC
Upstream bug component is Provisioning

Comment 12 Bryan Kearney 2016-08-10 22:05:30 UTC
Upstream bug component is Puppet

Comment 13 Satellite Program 2017-01-05 15:58:33 UTC
Upstream bug assigned to sgraessl

Comment 14 Satellite Program 2017-01-05 15:58:37 UTC
Upstream bug assigned to sgraessl

Comment 15 Satellite Program 2017-01-11 17:05:39 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/3551 has been resolved.

Comment 16 Bryan Kearney 2017-08-01 20:01:30 UTC
The fix to this bug will be delivered with release 6.3 of Satellite.