log file shows intermittent success and failure

asked 2015-05-20 09:46:00 -0500

updated 2015-05-21 07:54:05 -0500

5 (five) hours after i asked this question, it was still "waiting for moderation".
I asked the same question on StackOverflow and got the answer in minutes.
I'm leaving this site for good.
Good luck to all of you who don't mind waiting for hours just to be allowed to ask something...

---

I will try a brief version first, then i can add more information as requested.

I have a client machine with the following configuration:

------------------------------------------------------------
Connected to puppet-client-10 as root
Debian 7.8 wheezy (amd64)
------------------------------------------------------------
FQDN        : puppet-client-10.mydomain
IP          : 161.148.1.10

PuppetMaster: puppet-master.mydomain
Puppet      : 3.7.5
Facter      : 2.2.0
------------------------------------------------------------

Connecting to the below puppetmaster:

------------------------------------------------------------
Connected to puppet-master as root
Debian 7.8 wheezy (amd64)
------------------------------------------------------------
FQDN        : puppet-master.mydomain
IP          : 161.148.1.1

Puppet      : 3.7.5
Facter      : 2.4.3
------------------------------------------------------------

Now, back to the client. I used to have the agent disabled, and checking updates via cron once a day.

6 22 * * * root /usr/bin/puppet agent --test --logdest syslog

Works flawlessly.

2 days ago i commented the cron job and enabled the agent to check for updates every hour.

Then, the logs started showing this line every 2 minutes

<27>1 2015-05-20T08:20:30.651767-03:00 puppet-client-10 puppet-agent 8072 - -  Could not request certificate: getaddrinfo: Name or service not known
<27>1 2015-05-20T08:22:30.668988-03:00 puppet-client-10 puppet-agent 8072 - -  Could not request certificate: getaddrinfo: Name or service not known

Also, is showing that the client is correctly checking the master for updates

<28>1 2015-05-20T08:23:44.927447-03:00 puppet-client-10 puppet-agent 31500 - -  Loading class elasticsearch
<28>1 2015-05-20T08:23:45.406158-03:00 puppet-client-10 puppet-agent 31500 - -  Loading class logstash
<28>1 2015-05-20T08:23:45.776948-03:00 puppet-client-10 puppet-agent 31500 - -  Loading class logrotate
<28>1 2015-05-20T08:23:46.204161-03:00 puppet-client-10 puppet-agent 31500 - -  Loading class puppet

And then, back to the getaddrinfo error every 2 minutes

<27>1 2015-05-20T08:24:30.676307-03:00 puppet-client-10 puppet-agent 8072 - -  Could not request certificate: getaddrinfo: Name or service not known
<27>1 2015-05-20T08:26:30.683570-03:00 puppet-client-10 puppet-agent 8072 - -  Could not request certificate: getaddrinfo: Name or service not known

It keeps alternating between the error (every 2 minutes) and success (every hour) messages.

Executing the command puppet agent --test works, as expected.
The problem seems to be on the agent.

Any hints?

edit retag flag offensive close merge delete

Comments

AFAIK, this site isn't set up for moderator approval of questions, at least no one else that I've worked with here has mentioned it. I did see your question yesterday, but I didn't have an answer to it. It can take a little while to get an answer, esp. if it's an uncommon problem. Best of luck!

GregLarkin gravatar imageGregLarkin ( 2015-05-21 13:22:33 -0500 )edit