Ask Your Question
0

what "Using cached catalog" does?

asked 2016-02-19 07:36:01 -0500

vinothkumardba gravatar image

updated 2016-02-20 08:54:28 -0500

Hi All,

I'm New to Puppet, I want to know what "Using cached catalog" does?

My server log:

Feb 16 14:56:10 libra puppet-agent[3953]: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known
Feb 16 14:56:10 libra puppet-agent[3953]: Creating db_listener via Puppet.newtype is deprecated and will be removed in a future release. Use Puppet::Type.newtype instead.
Feb 16 14:56:10 libra puppet-agent[3953]:    (at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:162:in `newtype')
Feb 16 14:56:11 libra puppet-agent[3953]: Using cached catalog
Feb 16 14:56:12 libra puppet-agent[3953]: (/Stage[main]/Download/Download[patch]/ensure) created
Feb 16 14:56:12 libra puppet-agent[3953]: (/Stage[main]/Download/Exec[unzip]/returns) executed successfully

Thanks in Advance :)

Regards, Vinothkumar R

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-02-19 12:25:19 -0500

lavaman gravatar image

The master sends the compiled catalog to the agent to be applied. In the event the agent cannot reach the master, it will continue to enforce the last catalog it received (the cached catalog). This is so that when the master is unavailable, there is still some ongoing management of your systems.

edit flag offensive delete link more
0

answered 2016-02-20 08:39:34 -0500

rjhornsby gravatar image

@lavaman is correct about what a cached catalog does.

You also want to look at the first line of output you posted for why the agent is doing that. "Name or service not known" looks like your agent is having a hard time resolving the hostname of your puppet master - i.e. the DNS entry does not exist, the agent is misconfigured, DNS is not reachable, etc.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-02-19 07:36:01 -0500

Seen: 275 times

Last updated: Feb 20 '16