Reputation: 13872
I keep getting error after running
➜ chef knife ssh 'name:beautifulprayer' -x ubuntu
WARNING: Failed to connect to beautifulprayer -- SocketError: getaddrinfo: nodename nor servname provided, or not known
Not sure why. Here is info about the node:
➜ chef knife node show beautifulprayer
Node Name: beautifulprayer
Environment: _default
FQDN: beautifulprayer
IP: 104.131.0.191
Run List: recipe[sudo]
Roles:
Recipes:
Platform: ubuntu 14.04
Tags:
Upvotes: 1
Views: 3016
Reputation: 1426
beautifulprayer
is probably not a FQDN and not resolvable. While you want to fix this you can try:
knife ssh 'name:beautifulprayer' -a ipaddress -x ubuntu
In this case, knife will use the ipaddress attribute instead of the (broken) FQDN.
Upvotes: 6