Issue #13340 has been updated by Stefan Schulte.

Status changed from Unreviewed to Needs More Information
Assignee set to Banio Carpenter

Your `puppet.conf` on your agent will probably help. The first error I see is
<pre>
Could not request certificate: getaddrinfo: Name or service not known
</pre>
This is most likely because you have not set a server in 
`/etc/puppet/puppet.conf` on your node. By default the agent is trying to 
contact a server `puppet` which might be incorrect in your environment. You can 
check the config by running
<pre>
# puppet agent --configprint server
puppet
</pre>

The second error might be related to #4964. Can you please run
<pre>
# ls -ld /var /var/lib /var/lib/puppet /var/lib/puppet/ssl
# getent passwd root
# getent group 0
</pre>

----------------------------------------
Bug #13340: Puppet agent doesn't properly get certificate ubuntu client  centos 
puppetmaster 
https://projects.puppetlabs.com/issues/13340#change-58309

Author: Banio Carpenter
Status: Needs More Information
Priority: Urgent
Assignee: Banio Carpenter
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


I have a CentOS 5.8 puppetmaster running:
puppet: 2.7.12
ruby: 1.8.5
facter: 1.6.6
kernel: 2.6.18-274.18.1.el5xen

And a Ubuntu 10.04.4 client running:
puppet: 2.7.12
ruby: 1.8.7
facter: 1.6.6
kernel: 2.6.32-343-ec2

When I try to connect for the first time.  (I have this server in autosign and 
sites). This is what I get:

Mar 22 21:14:10 ip-10-140-2-112 puppet-agent[629]: Reopening log files
Mar 22 21:14:10 ip-10-140-2-112 puppet-agent[629]: Could not request 
certificate: getaddrinfo: Name or service not known
Mar 22 21:14:23 ip-10-140-2-112 puppet-agent[710]: Reopening log files
Mar 22 21:14:26 ip-10-140-2-112 puppet-agent[710]: Could not request 
certificate: Could not write /var/lib/puppet/ssl/private_keys/myserver.com.pem 
to privatekeydir: Invalid group: 0

The directory /var/lib/puppet/ssl is owned by puppet, so perms are good.  I 
have tried this with more than one client.  I tried delete everything in 
/var/lib/puppet/ssl and get the same result.

>From a Centos client running 2.7.12 it works fine.

Let me know if you need any more info.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to