[chef] Re: Re: Error due to run the chef-client in multiple nodes at a single time Using roles


Chronological Thread 
  • From: Jesse Campbell < >
  • To: chef < >
  • Subject: [chef] Re: Re: Error due to run the chef-client in multiple nodes at a single time Using roles
  • Date: Wed, 20 Feb 2013 08:27:38 -0500

when i run knife ssh, i use a couple more options.
here's an example:
knife ssh -a ipaddress -x root -P password "role:sam_app" "uptime && date"

the -a options says to use the node's ip address instead of the node's name or fqdn. -P passes in the root password, so i don't need to maintain ssh keys


On Wed, Feb 20, 2013 at 6:53 AM, Gourav Shah < " target="_blank"> > wrote:
If you look at the logs, you will see the following, 

WARNING: Failed to connect to  -- Net::SSH::AuthenticationFailed:

This is where the problem is. Can you make sure you have the correct key set and provide it with knife ssh. 

Thanks
Gourav

On Wed, Feb 20, 2013 at 5:15 PM, < " target="_blank"> > wrote:

hi,

i tried to run the chef-client in multiple nodes at a single time using roles
from workstation for two nodes like

:~# knife ssh "role:webserver" "sudo chef-client"

but it shows error like on each attempt

WARNING: Failed to connect to  -- SocketError: getaddrinfo: Temporary failure
in name resolution

WARNING: Failed to connect to  -- Net::SSH::AuthenticationFailed:

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.

ERROR: Connection refused connecting to 61.16.162.229:4000 for /search/node,
retry 1/5
ERROR: Connection refused connecting to 61.16.162.229:4000 for /search/node,
retry 2/5
ERROR: Connection refused connecting to 61.16.162.229:4000 for /search/node,
retry 3/5
ERROR: Connection refused connecting to 61.16.162.229:4000 for /search/node,
retry 4/5
ERROR: Connection refused connecting to 61.16.162.229:4000 for /search/node,
retry 5/5
WARNING: Failed to connect to  -- Net::SSH::AuthenticationFailed:


how to rectify this.......the above same error i faced when i am run the
chef-client in single node from workstation like


knife ssh name:XXXXX -x ubuntu -P XXXXXXXX "sudo chef-client"

what i want to do to rectify this..what i want  to check...what i want to
change Please send any solution for this as soon as possible


Thanks and Regards,
Ganesan.A





Archive powered by MHonArc 2.6.16.

§