[chef] Re: getaddrinfo: Name or service not known


Chronological Thread 
  • From: Jeppe Nejsum Madsen < >
  • To:
  • Subject: [chef] Re: getaddrinfo: Name or service not known
  • Date: Fri, 3 May 2013 15:19:57 +0200


On Thu, May 2, 2013 at 12:25 AM, < " target="_blank"> > wrote:
When using knife to look at chef configuration, it works fine:

$ knife recipe list
chef_handler
chef_handler::json_file
powershell
windows
windows::reboot_handler

When trying to bootstrap using knife it looks like IP address is not satisfied
only after connection to remote node:

knife bootstrap windows winrm 10.0.1.30 -r 'role[License]'
Bootstrapping Chef on windows
ERROR: Network Error: getaddrinfo: Name or service not known
Check your knife configuration and network settings

knife.rb looks right to me.  Network settings should not matter since IP is
being used.

What am I missing?

Tried to search for getaddrinfo on opscode and got no hits.

Just had the same issue. Make sure you have the knife-windows gem installed, otherwise knife tries to resolve windows as a host name :-)

Might make sense to put in some warning in this case, quite confusing....

/Jeppe
 



Archive powered by MHonArc 2.6.16.

§