[chef] Re: RE: knife ssh not working


Chronological Thread 
  • From: "kritivagop01 ." < >
  • To:
  • Subject: [chef] Re: RE: knife ssh not working
  • Date: Tue, 2 Dec 2014 11:43:08 +0530

hi,

i am able to search  using :

chef-repo]# knife search 'name:newclient'   
1 items found

Node Name:   newclient
Environment: _default
FQDN:        newclient.domain.com
IP:          192.168.142.152
Run List:    recipe[push-jobs], recipe[snmp]
Roles:       
Recipes:     push-jobs, snmp, push-jobs::default, push-jobs::linux, push-jobs::config, push-jobs::service, runit::default, build-essential::default, build-essential::_rhel, snmp::default
Platform:    centos 6.6
Tags:        

chef-repo]# knife ssh "platform:centos 6.6" -a 192.168.142.152  "ls /tmp"
FATAL: 2 nodes found, but does not have the required attribute to establish the connection. Try setting another attribute to open the connection using --attribute.

dns setting is done and able to ping with that.

chef-repo]# ping newclient
PING newclient.domain.com (192.168.142.152) 56(84) bytes of data.
64 bytes from newclient.domain.com (192.168.142.152): icmp_seq=1 ttl=64 time=1.14 ms
64 bytes from newclient.domain.com (192.168.142.152): icmp_seq=2 ttl=64 time=0.339 ms
64 bytes from newclient.domain.com (192.168.142.152): icmp_seq=3 ttl=64 time=0.448 ms
64 bytes from newclient.domain.com (192.168.142.152): icmp_seq=4 ttl=64 time=0.396 ms


On Tue, Dec 2, 2014 at 3:34 AM, Nico Kadel-Garcia < " target="_blank"> > wrote:

If your DNS is not fully configured  for the node in question, you may need to use “-a ipaddress” in order to connect on that basis. I’ve run into that.

 

Nico Kadel-Garcia

Lead DevOps Engineer

" target="_blank">

 

 

From: kritivagop01 . [mailto: " target="_blank"> ]
Sent: Monday, December 01, 2014 12:57 PM
To: " target="_blank">
Subject: [chef] knife ssh not working

 

hi,

 

i am getting error for knife ssh command.

 

 

FATAL: 1 node found, but does not have the required attribute to establish the connection. Try setting another attribute to open the connection using --attribute.

 

 

please share the details for knife.rb

 

 

thanks,

K.Gopalakrishnan





Archive powered by MHonArc 2.6.16.

§