Project

General

Profile

Actions

Bug #15867

open

Changing puppet environment on the hostgroup page shows all puppet classes

Added by David Davis over 8 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Puppet integration
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Steps to reproduce:

1. Create and publish two content views (View1 and View2) with two different sets of puppet modules
2. Create a Hostgroup and set it to one of the view's environments
3. Edit your Hostgroup and go to the Puppet Classes tab. Observe your view's puppet modules
4. Go back to Host Group tab and hit "Reset Puppet Environment to match selected Content View"
5. See the puppet classes and observe all puppet modules from BOTH content views

The problem is that we're not sending in hostgroup_id or environment_id so it creates a hostgroup without an environment here:

Actions #1

Updated by David Davis over 8 years ago

I think this should work with foreman only (no Katello):

1. Create two puppet environments with two different sets of puppet modules
2. Create a Hostgroup and set it to one of the environments
3. Edit your Hostgroup and go to the Puppet Classes tab. Observe your environment's puppet modules
4. Go back to Host Group tab and change the environment
5. See the puppet classes and observe all puppet modules from BOTH environments

Actions #2

Updated by David Davis over 8 years ago

  • Project changed from Katello to Foreman
  • Subject changed from Hitting "Reset Puppet Environment to match selected Content View" on the hostgroup page shows different set of puppet classes even if env is unchanged to Changing puppet environment on the hostgroup page shows all puppet classes
Actions #3

Updated by The Foreman Bot over 8 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to David Davis
  • Pull request https://github.com/theforeman/foreman/pull/3680 added
Actions #4

Updated by Dominic Cleal over 7 years ago

  • Category set to Puppet integration
  • Status changed from Ready For Testing to New
  • Assignee deleted (David Davis)
  • Pull request deleted (https://github.com/theforeman/foreman/pull/3680)
Actions

Also available in: Atom PDF