Robin Lee Powell
2014-Sep-23 15:26 UTC
[Puppet Users] How to make puppet *fail* on "Unable to fetch my node definition, but the agent run will continue" ?
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
--
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+unsubscribe@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.