How to make puppet *fail* on "Unable to fetch my node definition, but the agent run will continue" ?

821 views
Skip to first unread message

Robin Lee Powell

unread,
Sep 23, 2014, 11:26:37 AM9/23/14
to puppet...@googlegroups.com

So right now, puppet is doing this because of DNS issues:

Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: getaddrinfo: Name or service not known
Info: Retrieving pluginfacts
Error: /File[/var/lib/puppet/facts.d]: Failed to generate additional resources using 'eval_generate': getaddrinfo: Name or service not known
Error: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet://ip-10-0-1-16.us-west-1.compute.internal/pluginfacts: getaddrinfo: Name or service not known
Wrapped exception:
getaddrinfo: Name or service not known
Info: Retrieving plugin
Error: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': getaddrinfo: Name or service not known
Error: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve file metadata for puppet://ip-10-0-1-16.us-west-1.compute.internal/plugins: getaddrinfo: Name or service not known
Wrapped exception:
getaddrinfo: Name or service not known
Info: Loading facts
Error: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Error: Could not send report: getaddrinfo: Name or service not known

I know how to fix the underlying problem, but what I would like is
for puppet to *NOT* continue after the first line. I would like it
to loudly bail and exit immediately, because all that trying takes a
long time (minutes) that I'd prefer my automation spend doing
something else, like alarming me about the problem.

--
http://intelligence.org/ : Our last, best hope for a fantastic future.
.i ko na cpedu lo nu stidi vau loi jbopre .i dafsku lu na go'i li'u .e
lu go'i li'u .i ji'a go'i lu na'e go'i li'u .e lu go'i na'i li'u .e
lu no'e go'i li'u .e lu to'e go'i li'u .e lu lo mamta be do cu sofybakni li'u

Christopher Wood

unread,
Sep 23, 2014, 11:33:13 AM9/23/14
to puppet...@googlegroups.com
It's a bit unintuitively named (for my values of intuition), maybe this helps?

https://docs.puppetlabs.com/references/latest/configuration.html#usecacheonfailure
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/20140923152618.GE14210%40stodi.digitalkingdom.org.
> For more options, visit https://groups.google.com/d/optout.

Robin Lee Powell

unread,
Sep 23, 2014, 4:37:01 PM9/23/14
to puppet...@googlegroups.com
Oh, yes, that's *lovely*, thank you!
> To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/20140923153303.GA5458%40iniquitous.heresiarch.ca.
> For more options, visit https://groups.google.com/d/optout.
>

Reply all
Reply to author
Forward
0 new messages