Hi, I run puppetmaster on a machine accessible by both ipv4 and ipv6. bindaddress in puppet.conf is "::" Puppet version: Client (debian squeeze): 2.6.2-5 Server (ubuntu 10.10): 2.6.1 When I try to run puppetd --test from my IPv4 only client, I get the following error message: Could not retrieve hostname: getaddrinfo: Name or service not known Could not retrieve hostname: getaddrinfo: Name or service not known dnsdomainname: Name or service not known /usr/lib/ruby/1.8/puppet/defaults.rb:190: undefined method `downcase'' for nil:NilClass (NoMethodError) from /usr/lib/ruby/1.8/puppet.rb:100:in `require'' from /usr/lib/ruby/1.8/puppet.rb:100 from /usr/lib/ruby/1.8/puppet/application.rb:278:in `require'' from /usr/lib/ruby/1.8/puppet/application.rb:278:in `initialize'' from /usr/lib/ruby/1.8/puppet/application.rb:222:in `new'' from /usr/lib/ruby/1.8/puppet/application.rb:222:in `[]'' from /usr/sbin/puppetd:4 puppet.mydomain.com resolves to both an IPv4 and IPv6 address. I have tried everything I can think about, but it seems like I cannot get the client host to connect through IPv4 when the dns name resolves to both a IPv4 and IPv6 address. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Thu, Jul 21, 2011 at 8:59 PM, Bob <voje2000@gmail.com> wrote:> Hi, I run puppetmaster on a machine accessible by both ipv4 and ipv6. > bindaddress in puppet.conf is "::"> Could not retrieve hostname: getaddrinfo: Name or service not known > dnsdomainname: Name or service not knownYou have something wrongly set but it ain''t your IPv4/IPv6. Had a production on dual stack for years with clients connecting over v4 only and it has never been a problem. Steph -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Jul 21, 2:59 pm, Bob <voje2...@gmail.com> wrote:> Hi, I run puppetmaster on a machine accessible by both ipv4 and ipv6. > bindaddress in puppet.conf is "::" > > Puppet version: > Client (debian squeeze): 2.6.2-5 > Server (ubuntu 10.10): 2.6.1 > > When I try to run puppetd --test from my IPv4 only client, I get the > following error message: > > Could not retrieve hostname: getaddrinfo: Name or service not known > Could not retrieve hostname: getaddrinfo: Name or service not known > dnsdomainname: Name or service not known > /usr/lib/ruby/1.8/puppet/defaults.rb:190: undefined method `downcase'' > for nil:NilClass (NoMethodError) > from /usr/lib/ruby/1.8/puppet.rb:100:in `require'' > from /usr/lib/ruby/1.8/puppet.rb:100 > from /usr/lib/ruby/1.8/puppet/application.rb:278:in `require'' > from /usr/lib/ruby/1.8/puppet/application.rb:278:in `initialize'' > from /usr/lib/ruby/1.8/puppet/application.rb:222:in `new'' > from /usr/lib/ruby/1.8/puppet/application.rb:222:in `[]'' > from /usr/sbin/puppetd:4 > > puppet.mydomain.com resolves to both an IPv4 and IPv6 address. > > I have tried everything I can think about, but it seems like I cannot > get the client host to connect through IPv4 when the dns name resolves > to both a IPv4 and IPv6 address.It looks to me like the client cannot resolve its own name, or perhaps can''t reverse-resolve its own IP(v4) address. Try running ''hostname -- fqdn'' from the command line: if I''m right, it will fail. If indeed the client cannot resolve its own name, then the solution depends on your resolver configuration. Adding the approrpiate entry to /etc/hosts will often do the trick, but the resolver can be configured to ignore that file. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.