Chef encountered an error attempting to create the client

[Size =small] When Using chef Bootstrap’s new client, I encountered the following problems:

# knife bootstrap 192.168.253.129-x root-p 123456 — sudo-vv

-vv prints out the DEBUG LOG

……

DEBUG: read 116 bytes

DEBUG: received packet nr 11 type 94 len 92

INFO: channel_data: 0 72b

192.168.253.129 Creating a new client identity for test02 using the validator key.

DEBUG: read 484 bytes

DEBUG: received packet nr 12 type 94 len 460

INFO: channel_data: 0 443b

192.168.253.129

192.168.253.129 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

[b][color=red][color= red]192.168.253.129 Chef ritten error to create the client “test02”

192.168.253.129 [/ color] [/ color] [/ b] = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

192.168.253.129

192.168.253.129

[color=red][b]192.168.253.129 [2014-05-26T19:56:49-07:00] FATAL: Stacktrace dumped to /var/chef/cache/ chain-stacktrace.out

192.168.253.129 [2014-05-26 t19:56:49-07:00] FATAL: Errno::EHOSTUNREACH: No route to host-connect (2)[/b][/color]

DEBUG: read 140 bytes

DEBUG: received packet nr 13 type 98 len 44

INFO: channel_request: 0 exit-status false

……

sees No route to host-connect (2)

but it is possible to ping chef server from test02

check the network is ok

solution:

# service iptables stop

# service iptables save

clear the firewall Settings and rebootstrap.

[/size]

Read More: