Master Timeout

257 views
Skip to first unread message

de

unread,
May 16, 2012, 9:53:08 AM5/16/12
to Puppet Users
Howdy,

our puppet master is hosting nagios at the same time. it happens that
the compilation of the catalog for the master during a puppet run
produces a timeout:

===
err: Could not retrieve catalog from remote server: execution expired
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
===

If the whole nagios part is commented out for the master host puppet
runs fine. I think it is due to loads of stored configs that have to
be collected.

Easiest solution for me would be to increase the timeout on the
master. How and where can the timeout be changed? Are there other
options to speed up the compilation process?

Regards,
David

Christopher Wood

unread,
May 16, 2012, 9:56:16 AM5/16/12
to puppet...@googlegroups.com
Maybe I'm lazy but on our puppetmasters I have a cron job doing "puppet apply /etc/puppet/manifests/site.pp".

> Regards,
> David
>
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>
>

Adam Heinz

unread,
May 16, 2012, 5:20:39 PM5/16/12
to puppet...@googlegroups.com
> Maybe I'm lazy but on our puppetmasters I have a cron job doing "puppet apply /etc/puppet/manifests/site.pp".

I don't think that works with storeconfigs.

[root@puppet ~]# rpm -q puppet-server
puppet-server-2.6.16-1.el6.noarch

[root@puppet ~]# grep storeconfigs /etc/puppet/puppet.conf
storeconfigs = true

[root@puppet ~]# puppet apply /etc/puppet/manifests/site.pp
warning: You cannot collect without storeconfigs being set on line 7
in file /etc/puppet/modules/nagios/manifests/target.pp
warning: You cannot collect without storeconfigs being set on line 14
in file /etc/puppet/modules/nagios/manifests/target.pp
...

I think the canonical form is more like:

/usr/bin/puppet agent --no-daemonize --no-listen --onetime

Nan Liu

unread,
May 16, 2012, 6:42:48 PM5/16/12
to puppet...@googlegroups.com
On Wed, May 16, 2012 at 2:20 PM, Adam Heinz <a...@metricwise.net> wrote:
>> Maybe I'm lazy but on our puppetmasters I have a cron job doing "puppet apply /etc/puppet/manifests/site.pp".
>
> I don't think that works with storeconfigs.
>
> [root@puppet ~]# rpm -q puppet-server
> puppet-server-2.6.16-1.el6.noarch
>
> [root@puppet ~]# grep storeconfigs /etc/puppet/puppet.conf
>    storeconfigs = true
>
>
> [root@puppet ~]# puppet apply /etc/puppet/manifests/site.pp
> warning: You cannot collect without storeconfigs being set on line 7
> in file /etc/puppet/modules/nagios/manifests/target.pp
> warning: You cannot collect without storeconfigs being set on line 14
> in file /etc/puppet/modules/nagios/manifests/target.pp
> ...

You can use storeconfigs via puppet apply if you have the appropriate
storeconfigs settings in section [main] rather than [master].

Nan
Reply all
Reply to author
Forward
0 new messages