Ask Your Question
0

directory environments error: Could not find class pe_mcollective for node

asked 2015-01-09 02:12:23 -0500

kariboe gravatar image

updated 2015-01-09 04:21:15 -0500

Setup: Puppet v3.4.3 (Puppet Enterprise 3.2.3)

Started implementing directory environments yesterday. (production & test directories added), changed environment variables in my PE ENC and changed my puppet.conf on the master as decribed here: https://docs.puppetlabs.com/puppet/la...

Puppet.conf (changed master hostname to PUPPETMASTER):

[main]
    certname = PUPPETMASTER
    dns_alt_names = PUPPETMASTER
    vardir = /var/opt/lib/pe-puppet
    logdir = /var/log/pe-puppet
    rundir = /var/run/pe-puppet
    environmentpath = /etc/puppetlabs/puppet/environments
    basemodulepath = $confdir/modules:/opt/puppet/share/puppet/modules 
    server = PUPPETMASTER
    user  = pe-puppet
    group = pe-puppet
    archive_files = true
    archive_file_server = PUPPETMASTER
    pluginsync = true
[master]
    certname = PUPPETMASTER
    ca_name = 'Puppet CA generated on PUPPETMASTER at 2014-05-13 12:57:26 +0200'
    reports = console,puppetdb
    node_terminus = console
    ssl_client_header = SSL_CLIENT_S_DN
    ssl_client_verify_header = SSL_CLIENT_VERIFY
    storeconfigs_backend = puppetdb
    storeconfigs = true

[agent]
    report = true
    classfile = $vardir/classes.txt
    localconfig = $vardir/localconfig
    graph = true
    pluginsync = true
    runinterval = 1h

When I want to test my new setup on a 'production' node and on a 'test' node I receive this error when running puppet agent:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class pe_mcollective for xxxx on node xxxx
    Notice: Using cached catalog
    Info: Applying configuration version '1418911280'
    Error: /Stage[main]/Pe_mcollective::Server::Plugins/File[/opt/puppet/libexec/mcollective/mcollective]: Could not evaluate: Could not retrieve information from environment production source(s) puppet:///modules/pe_mcollective/plugins
    Notice: /Stage[main]/Pe_mcollective::Server::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/agent/puppetd.ddl]: Dependency File[/opt/puppet/libexec/mcollective/mcollective] has failures: true
    Warning: /Stage[main]/Pe_mcollective::Server::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/agent/puppetd.ddl]: Skipping because of failed dependencies
    Notice: /Stage[main]/Pe_mcollective::Server::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/agent/puppetd.rb]: Dependency File[/opt/puppet/libexec/mcollective/mcollective] has failures: true
    Warning: /Stage[main]/Pe_mcollective::Server::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/agent/puppetd.rb]: Skipping because of failed dependencies
    Notice: /Stage[main]/Pe_mcollective::Server::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/application/puppetd.rb]: Dependency File[/opt/puppet/libexec/mcollective/mcollective] has failures: true
    Warning: /Stage[main]/Pe_mcollective::Server::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/application/puppetd.rb]: Skipping because of failed dependencies
    Notice: /Stage[main]/Pe_mcollective::Server/Service[pe-mcollective]: Dependency File[/opt/puppet/libexec/mcollective/mcollective] has failures: true
    Warning: /Stage[main]/Pe_mcollective::Server/Service[pe-mcollective]: Skipping because of failed dependencies
    Notice: Finished catalog run in 7.34 seconds

I used a basemodulepath to offer base modules to all environments. I'm thinking something is going wrong there. Any help appreciated

UPDATE: when I print my config variables on the master the variables for environmentpath and basemodulepath remain empty. Seems like the config changes aren't picked up by the master after a restart of the service.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-01-11 17:36:22 -0500

cbarbour gravatar image

It would be helpful to include your environment.conf file for the environment that's giving you problems.

Without seeing your environment.conf file, my best guess is that you did not include $basemodulepath in your environment's modulepath setting. $basemodulepath must be explicitly included if you want it in your environment's modulepath. It's only implicitly included if the modulepath setting does not appear in your environment.conf file.

See the official documentation for more details: https://docs.puppetlabs.com/puppet/latest/reference/environments_creating.html#modulepath-includes-optpuppetsharepuppetmodules

edit flag offensive delete link more
0

answered 2015-01-16 02:57:33 -0500

kariboe gravatar image

Cbarbour,

It was indeed a problem with my puppet.conf Thanks for pointing my in the right direction!

Stefaan

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

1 follower

Stats

Asked: 2015-01-09 02:12:23 -0500

Seen: 1,488 times

Last updated: Jan 16 '15