Issue #20077 has been updated by Charlie Sharpsteen. Category set to modules Status changed from Unreviewed to Needs More Information Assignee set to James Patterson
Possibly a dupe of #16568---but it seems like there may be more than one issue at play there. The first type I've been able to identify is related to commit [242692e](https://github.com/puppetlabs/puppet/commit/242692e) where the Puppet master will cache missing classes and skip looking for those classes on subsequent runs. So, if you were moving modules or manifests around and a Puppet run happened to execute in the middle of that process then some classes will be flagged as missing and will remain so until the master is restarted. Or, this could be something different---a `--trace` log from the master could help us narrow it down. ---------------------------------------- Bug #20077: Could not find declared class https://projects.puppetlabs.com/issues/20077#change-89155 * Author: James Patterson * Status: Needs More Information * Priority: Normal * Assignee: James Patterson * Category: modules * Target version: * Affected Puppet version: 3.1.1 * Keywords: * Branch: ---------------------------------------- We sometimes see the error below on the puppet master and the puppet node under the following circumstances: * We have edited a class on the puppet master * We restart puppet on a puppet node very shortly after The error is: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class XXX at /etc/puppet/manifests/node/NODENAME.pp on node NODENAME Where XXX is a class name that exists. Important is that the XXX class name is not the class we have just edited: it's like the editing of the class is causing some kind of re-read of all classes by the puppet module, and that during the re-read these errors are returned. i.e. a race condition. Re-starting puppet on the puppet node a second time will work fine, and not show any errors. Puppet 3.1.1. Reporting here in case this a dupe. Will attach logs if not a dupe, just let me know what you need. -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
