Bug 2232235

Summary: Hostgroup error: Some Puppet Classes are unavailable in the selected environment
Product: Red Hat Satellite Reporter: Joniel Pasqualetto <jpasqual>
Component: PuppetAssignee: satellite6-bugs <satellite6-bugs>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.12.4CC: rlavi
Target Milestone: UnspecifiedKeywords: Triaged, UserExperience
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: 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 Joniel Pasqualetto 2023-08-15 20:58:03 UTC
Description of problem:

webUI wrongly says that "Some Puppet Classes are unavailable in the selected environment" when editing hostgroup

This seems to be the same issue being discussed here: https://projects.theforeman.org/issues/34402

This is also affecting Satellite 6.12 and 6.13 (at least, didn't test others)

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


How reproducible:
Always

Steps to Reproduce:
1. Enable puppet integration on Satellite
2. Import some classes to one environment
3. Edit a hostgroup, select the environment where the classes were imported and assing at least one class to the hostgroup. Save it
4. Go back to the hostgroup details and you'll see a warning on the tab "Puppet ENC"

Actual results:
Warning complaining about classes not available in selected environment


Expected results:

no errors, unless classes are ACTUALLY missing from the environment

Additional info: