Some Puppet Classes are unavailable in the selected environment

Problem:

Hi,
On HostGroup [puppet ENC], i have this message :
“Some Puppet Classes are unavailable in the selected environment”

I have no errors in my classes.
Everything is working fine.

How can I correct this warning?
Thanks

Foreman and Proxy versions:
foreman 3.0 - puppet 7.11 - ubuntu 20.04

Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data:

I specify that all the classes are in the production environment

Hey @Sebseb
Welcome to the community!

Are you a new user or have you upgraded?
Are you saying that it makes no material different but you’re getting this error message you don’t understand?

Hi @mcorr

i did a fresh install, ubuntu 20.04 + foreman 3.0 + open source 7.11 puppet

I don’t understand why foreman displays this warning.

I would say the puppet environment you have selected on the “Host Group” tab for this host group does not contain some of those classes.

Either, you have selected the wrong environment there or you haven’t imported the classes into foreman from the Puppet - Environment or Puppet - Classes page.

1 Like

hi @gvde

All the classes are in the production environment and they have all been imported with the import environment button from foreman

Did you import the latest version? Just import again and it shows you if it‘s up to date or not.

Did you select the production environment for the host group? (Don’t confuse it with the life cycle environment if you have…)

everything is perfectly up to date and the environment is correctly declared in the host groups…

image