Bug #3551
closedForeman removes all puppet classes from a hostgroup when the environment is changed.
Description
When changing the environment for a hostgroup, puppet removes all classes.
Updated by Sebastian Gräßl about 8 years ago
The circumstances under which this occurs are when a class are not available in the environment the `HostGroup` will be changed to.
If the target environment does have the class available it will be kept. This does not happen instantly (anymore) but requires the form to be submitted.
Since Foreman does not create classes in puppet, but only reflect what is in puppet, keeping the classes in host groups as they are could lead to confusion, if they are not actually in the current environment. Keeping them, and marking them as "unavailable" if the environment does not include it and allow to remove them manually.
A simpler approach would be to simple warn in case classes are not available and will be purged on submit.
Thoughts on which route would be the more feasible way to go?
Updated by Marek Hulán about 8 years ago
I prefer warning about purging on submit.
Updated by The Foreman Bot almost 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/4048 added
Updated by Anonymous almost 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 915ee07715e012bdd15c9e123acefa36bd6b41c9.
Updated by Dominic Cleal almost 8 years ago
- Translation missing: en.field_release set to 209
Updated by Dominic Cleal almost 8 years ago
- Related to Bug #18045: Puppet classes don't show up without hostgroups added
Updated by Daniel Lobato Garcia almost 8 years ago
- Target version changed from 1.15.5 to 169
Updated by Dominic Cleal almost 8 years ago
- Related to Bug #18427: Hostgroups don't have any puppet classes (or are removed upon editing a hostgroup) added
Updated by Daniel Lobato Garcia almost 8 years ago
- Target version set to 1.11.0