Issue #12397 has been updated by Alex Jurkiewicz.

Derek Yarnell wrote:
>   import "*"

I think you got it! In modules/ssh/manifests/init.pp the first line is `import 
"*.pp"`. Commenting out that line stopped this error from appearing whenever I 
touch'd a .pp file. I also found that placing `import ssh` above the original 
problematic line `import ssh::auth` without modifying the module also fixed the 
problem.

I'm not super familiar with what and how Puppet autoloads so what's going on 
here is basically inscrutable to me. Let me know if I can provide more info.
----------------------------------------
Bug #12397: Puppet doesn't work initially after touch'ing any .pp source file
https://projects.puppetlabs.com/issues/12397#change-56354

Author: Alex Jurkiewicz
Status: Needs More Information
Priority: Normal
Assignee: 
Category: compiler
Target version: 
Affected Puppet version: 2.7.1
Keywords: 
Branch: 


Hi, we recently upgraded to 2.7.1 (from 2.6.x) and are seeing a strange 
problem. If we touch any *.pp file on the master the next puppet client run 
will fail, but all subsequent runs succeed.

An example of running Puppet on our puppetmaster itself:
<pre>
$ sudo puppetd -t                                    
notice: Ignoring --listen on onetime run
info: Caching catalog for puppet.fqdn
[...]
notice: Finished catalog run in 25.01 seconds
$ sudo touch /home/puppet/main/manifests/site.pp
$ sudo puppetd -t
notice: Ignoring --listen on onetime run
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could 
not find class ssh::auth for puppet.fqdn at 
/home/puppet/main/manifests/roles/soe.pp:34 on node puppet.fqdn
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
Time:
         Last run: 1328226675
$
</pre>

The ssh::auth mentioned line is the first non-top level module included by 
every node:
<pre>
$ cat /home/puppet/main/manifests/roles/soe.pp
class soe {
    $servername = $puppet_server
    include common
    include hosts
    include resolver
    include cron
    include sysctl
    include misc
    package { "bsd-mailx": ensure => installed }
    package { "sysstat": ensure => installed }
    include ssh::auth
[...]
</pre>

What's going on here?


-- 
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to