Hi,
I’m trying to use knife ssh to run chef-client on demand on some servers, but it’s failing with this message:
WARNING: Failed to connect to – SocketError: getaddrinfo: nodename nor servname provided, or not known
The servers are on an AWS VPN to which I connect via VPN. Is this something that’s missing on my part, maybe knife configuration?
Cheers,
Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal
This often means that the node name isn't resolvable by DNS.
You can specify an alternate attribute to use as the connection hostname
with 'knife ssh -a'
On Monday, July 22, 2013, Cassiano Leal wrote:
Hi,
I’m trying to use knife ssh to run chef-client on demand on some servers,
but it’s failing with this message:
WARNING: Failed to connect to -- SocketError: getaddrinfo: nodename nor
servname provided, or not known
The servers are on an AWS VPN to which I connect via VPN. Is this
something that’s missing on my part, maybe knife configuration?
Cheers,
Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal
--
-Mat
It really is not resolvable, as it’s an internal AWS name.
Using -a solved it, thanks a lot!
Is there a way to set this (and probably -x along with it) as a default, say in knife.rb?
Thanks!
Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal
On July 22, 2013 at 11:23:20, Mat Schaffer (mat@schaffer.me) wrote:
This often means that the node name isn't resolvable by DNS.
You can specify an alternate attribute to use as the connection hostname with 'knife ssh -a'
On Monday, July 22, 2013, Cassiano Leal wrote:
Hi,
I’m trying to use knife ssh to run chef-client on demand on some servers, but it’s failing with this message:
WARNING: Failed to connect to -- SocketError: getaddrinfo: nodename nor servname provided, or not known
The servers are on an AWS VPN to which I connect via VPN. Is this something that’s missing on my part, maybe knife configuration?
Cheers,
Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal
--
-Mat
Mike
4
Cassiano,
You can set these values in knife.rb:
knife[:ssh_attribute] = 'ec2.local_ipv4' # or such
knife[:ssh_user] = 'ubuntu'
There's more configs, you might want to try knife-config to see them
all. http://jtimberman.housepub.org/blog/2012/03/25/knife-config-plugin/
-M
On Mon, Jul 22, 2013 at 12:53 PM, Cassiano Leal cassianoleal@gmail.com wrote:
It really is not resolvable, as it’s an internal AWS name.
Using -a solved it, thanks a lot!
Is there a way to set this (and probably -x along with it) as a default, say
in knife.rb?
Thanks!
--
Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal
On July 22, 2013 at 11:23:20, Mat Schaffer (mat@schaffer.me) wrote:
This often means that the node name isn't resolvable by DNS.
You can specify an alternate attribute to use as the connection hostname
with 'knife ssh -a'
On Monday, July 22, 2013, Cassiano Leal wrote:
Hi,
I’m trying to use knife ssh to run chef-client on demand on some servers,
but it’s failing with this message:
WARNING: Failed to connect to -- SocketError: getaddrinfo: nodename nor
servname provided, or not known
The servers are on an AWS VPN to which I connect via VPN. Is this
something that’s missing on my part, maybe knife configuration?
Cheers,
--
Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal
--
-Mat
Mat Schaffer - Gifu Japan | about.me
Fantastic!
Thanks for the help guys!
Cheers,
Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal
On July 22, 2013 at 14:25:27, Mike (miketheman@gmail.com) wrote:
Cassiano,
You can set these values in knife.rb:
knife[:ssh_attribute] = 'ec2.local_ipv4' # or such
knife[:ssh_user] = 'ubuntu'
There's more configs, you might want to try knife-config to see them
all. http://jtimberman.housepub.org/blog/2012/03/25/knife-config-plugin/
-M
On Mon, Jul 22, 2013 at 12:53 PM, Cassiano Leal cassianoleal@gmail.com wrote:
It really is not resolvable, as it’s an internal AWS name.
Using -a solved it, thanks a lot!
Is there a way to set this (and probably -x along with it) as a default, say
in knife.rb?
Thanks!
--
Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal
On July 22, 2013 at 11:23:20, Mat Schaffer (mat@schaffer.me) wrote:
This often means that the node name isn't resolvable by DNS.
You can specify an alternate attribute to use as the connection hostname
with 'knife ssh -a'
On Monday, July 22, 2013, Cassiano Leal wrote:
Hi,
I’m trying to use knife ssh to run chef-client on demand on some servers,
but it’s failing with this message:
WARNING: Failed to connect to -- SocketError: getaddrinfo: nodename nor
servname provided, or not known
The servers are on an AWS VPN to which I connect via VPN. Is this
something that’s missing on my part, maybe knife configuration?
Cheers,
--
Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal
--
-Mat
Mat Schaffer - Gifu Japan | about.me