Puppetmaster compiles old catalogs

40 views
Skip to first unread message

César

unread,
Dec 6, 2015, 9:27:21 AM12/6/15
to Puppet Users
Hi all,

we're seeing every now and then an odd behaviour with Puppet catalog compilation. Basically, we modify and save the node manifests and a few seconds later we trigger a catalog run to apply the changes.
However, what we see is that sometimes the Puppet master compiles the old version of the node manifest, leaving changes behind and requiring two catalog runs to apply all of them.

A sample site.pp would look like this:


import "/path/to/manifests/plugins/ms1.pp"

import "/path/to/manifests/plugins/n1.pp"

import "/path/to/manifests/plugins/n2.pp"

node default {}


I would like to know if using import might be causing this? (We use Puppet 3.3.2)
If that's not the case, do you have any hints or tips to troubleshoot the issue? How does the Puppetmaster handle the compilation of the node manifest? We tried to use the configuration option to avoid caching, but so far that didn't fix it.


jcbollinger

unread,
Dec 7, 2015, 11:54:42 AM12/7/15
to Puppet Users


Are you sure the master is running Puppet 3.3?  What you're describing sounds like an effect of new-style environment caching, but I don't think that was implemented yet in Puppet 3.3.  (The Puppet version on the agents doesn't matter for this purpose.)


John

Thomas Müller

unread,
Dec 12, 2015, 4:57:58 AM12/12/15
to Puppet Users


Am Sonntag, 6. Dezember 2015 15:27:21 UTC+1 schrieb César:
Hi all,

we're seeing every now and then an odd behaviour with Puppet catalog compilation. Basically, we modify and save the node manifests and a few seconds later we trigger a catalog run to apply the changes.
However, what we see is that sometimes the Puppet master compiles the old version of the node manifest, leaving changes behind and requiring two catalog runs to apply all of them.

A sample site.pp would look like this:


import "/path/to/manifests/plugins/ms1.pp"

import "/path/to/manifests/plugins/n1.pp"

import "/path/to/manifests/plugins/n2.pp"

not about your problem now, but possible future problems with import:


- Thomas

Reply all
Reply to author
Forward
0 new messages