Bug 1158991 - Editing Environment or Content View of Hostgroup clears assigned modules
Summary: Editing Environment or Content View of Hostgroup clears assigned modules
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Puppet
Version: 6.0.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Sebastian Gräßl
QA Contact: Katello QA List
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks: 1122832
TreeView+ depends on / blocked
 
Reported: 2014-10-30 16:07 UTC by Nick Strugnell
Modified: 2019-08-12 14:36 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 20:01:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 3551 0 Normal Closed Foreman removes all puppet classes from a hostgroup when the environment is changed. 2020-06-12 13:06:59 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.