I encountered the same exactly problem.
The reason for my case is that the error was caused by the /etc/hosts.
The agent node's /etc/hosts didn't contain the master node's host name,
although I added its IP named puppet in /etc/hosts before.
On Tuesday, August 21, 2012 7:46:52 PM UTC-4, James Trier wrote:
>
> I'm getting these errors when running 'puppet agent --test' after doing a
> new installation of an agent:
>
> err:
> /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/security/sshkey.rb]/content:
>
> change from {md5}512f42272699eaa085c83d2cc67c27ea to
> {md5}8fa3e9125fd917948445e3d2621d40e5 failed: Could not back up
> /opt/puppet/libexec/mcollective/mcollective/security/sshkey.rb:
> getaddrinfo: Name or service not known
>
> err:
> /Stage[main]/Pe_mcollective::Posix/File[/etc/puppetlabs/mcollective/server.cfg]/content:
>
> change from {md5}a9c7335a83c5ac9f6a19bb195ea0c63e to
> {md5}db6aa935c128b6d7bd12b41dfbe33b91 failed: Could not back up
> /etc/puppetlabs/mcollective/server.cfg: getaddrinfo: Name or service not
> known
>
> I know the above error is commonly related to DNS but I'm not sure where
> the disconnect it. These are brand new agent installations. server field in
> the agent puppet.conf is the server hostname which is also the listed
> certname shown when 'puppet master --configprint certname,certdnsnames' is
> typed from the server (certdnsname is blank).
>
> Any help or direction?
>
> Thanks -- James
>
>
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.