Issue #21981 has been updated by Sylvain Avril.

Well, the issue is not random like sometimes it happens, sometimes it works. 
The problem happen on every run (no matter the host) on one class which is part 
of this host config. If I remove this class from this host config, the problem 
will appear on another class.
I suspect this problem is due to the increase of volume of the puppetmaster 
modules. I tried to increase ulimit -n to 4096 (was 1024) with no effect.

All my modules are in version control and I tried to get back to the last 
versions that one week ago worked with no luck.

I really don't know how to trace this problem which is probably due to class 
loading.

But I have sometimes an error in my logs which could be related :
puppet-master[3015]: Could not find file_metadata for 
'modules/apache/content.tar.gz

This problem occurs not everytime on the same files but as I remind now, they 
occurs on files which are in the same modules than the class affected by the 
first problem. So it could be related to the way puppet scan modules folder.

Most of my modules follow the puppet standard way :
a module folder which has the same name as the class
manifest/init.pp with only the class with the same name as the module (without 
::)
manifest/xx.pp for class module::xx

I tried to remove modules which didn't strictly respect and it hasn't changed 
anything).

----------------------------------------
Bug #21981: Random "Could not find class xxx for node [node] on [node]"
https://projects.puppetlabs.com/issues/21981#change-95768

* Author: Sylvain Avril
* Status: Needs More Information
* Priority: Normal
* Assignee: Sylvain Avril
* Category: 
* Target version: 
* Affected Puppet version: 3.2.3
* Keywords: 
* Branch: 
----------------------------------------
After some modules updates, my puppet master keep logging a "Could not find 
class" error 3 times :
Jul 30 16:49:02 ILNXSVCPUP01 puppet-master[20687]: Could not find class 
apache::params for dlnxwebext01.filhetallard.com on node 
dlnxwebext01.filhetallard.com

At first, it was with another class. I've commented all references to it and 
went in another error on another class.
Everytime, this error come three times. In debug mode, I don't see much 
information.

I've got the error with Puppet 3.1.x and I have upgraded to 3.2.3 with no 
result.

<pre>
It seems a bit like issue 20573. However my configuration didn't have any 
reference to custom module path :
[main]
    confdir = /app/data/puppet/master-dev/etc
    vardir = /app/data/puppet/master-dev/var
    logdir = $vardir/log
    rundir = $vardir/run
    ssldir = $vardir/ssl
    pluginsync = true
    pluginsignore = .svn CVS .hg
    puppetport = 18139

[agent]
    classfile = $vardir/classes.txt
    localconfig = $vardir/localconfig
    report = true
    listen = true
    puppetport = 18139

[master]
    environment = dev
    masterport = 18140
    user = s-puppet
    group = applis
    masterlog = $logdir/puppetmaster.log
    ignorecache = true
    certname=ilnxsvcpup01.xxxxx.com
    dns_alt_names=puppet-devintranet.xxxxx.com
    reports = store, http
    reporturl = http://localhost/foreman-dev/reports/create?format=yml

    storeconfigs = true
    dbmigrate = true
    dbadapter = mysql
    dbserver = localhost
    dbname = puppetdevdb
    dbuser = puppetdev
    dbpassword = xxxxxx
    dbconnections = 10
    dbsocket = /tmp/mysql.sock
</pre>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to