Ask Your Question

Classes don't show up in PE console

asked 2016-02-05 13:12:16 -0600

wsanders1 gravatar image

I am using the PE console. I am trying to add a class (module) to the list of classes run by a node group, but the class doesn't show up in the pull-down menu that appears when I click in the "Add New Class" box.

I have recently placed the module in /etc/puppetlabs/code/environments/production/modules. The "refresh" options for class definitions updates "Class definitions updated X minutes ago" but the class doesn't appear.

How do I debug this? It there a way to ass a class to a node group by running a command or editing a file?

edit retag flag offensive close merge delete


Can you provide an example of the class you created and are trying to use as well as your directory structure once under modules?

mikachewie gravatar imagemikachewie ( 2016-02-05 16:33:47 -0600 )edit

Could you check to see if a service has crashed? You can see the PE-related services with `systemctl --all | grep pe-`

Kevin gravatar imageKevin ( 2016-02-07 22:55:46 -0600 )edit

I have a similar issue using the enterprise console with modules that i wrote. I can run it with the agent that is installed on master. However, when attempting to use the console to classify a node with the module, the module does not appear in the drop down. Installed modules appear but mine dont.

jkerr gravatar imagejkerr ( 2016-02-09 17:55:50 -0600 )edit

Experiencing same issues on console running on CentOS. All PE services are running. However, the problem seems to be limited to modules I create. Modules from Forge are showing up. Forge manifest have 5 files and my manifest has 2 files. Other files related to console? gravatar ( 2016-03-01 07:17:35 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2016-03-04 00:10:56 -0600

Mr_Sharma gravatar image

Hi, well It takes few seconds to get the class list refreshed. If you are not getting your desired class in your drop down list, you can find the issues here: /var/log/puppetlabs/console-services/console-services.log The log can tell you if there is something wrong with your class and it's not getting compiled successfully.

Please see if you are getting lines like: ERROR [p.c.class-updater] 400 response received for request in the log after hitting the refresh button. Also make sure all your classes under module directory are getting compiled successfully.

edit flag offensive delete link more

answered 2016-03-03 22:54:35 -0600

pstivers gravatar image

updated 2016-03-04 14:29:58 -0600

Just started using PE last night. I'm finding that classes I've written can take some time to show up in Node Classification on the PE console. Usually within 10 min. One may have taken about 30 min last night.

It's a good idea to run

$ puppet-lint file.pp

to ensure you don't have an error like this:

ERROR: <class name> not in autoload module layout on line 2

Related question: What's the lightest touch way to refresh the class list in Node Classification in the PE console, if any? Next time a class doesn't show up I'll try restarting pe-puppetserver and pe-console-services to see if either one loads the latest classes.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2016-02-05 13:12:16 -0600

Seen: 1,985 times

Last updated: Mar 04 '16