无与伦比的'。厨师在引导节点时

时间:2016-04-28 05:23:05

标签: chef

D:\Chef\chef-repo>knife bootstrap HOSTNAME -x user -P pwd -N NodeClient1
Creating new client for NodeClient1
Creating new node for NodeClient1
Connecting to HOSTNAME
HOSTNAME Unmatched '.
HOSTNAME TMPDIR: Undefined variable.
HOSTNAME tmp=/tmp: Command not found.
HOSTNAME else: endif not found.

我调查了一些建议,但没有解决这个问题。这是什么主要原因。基本上我在Windows中设置工作站,我引导到厨师服务器的节点是redhat。有什么我想念的吗?

下面是详细输出:

    DEBUG: Looking for bootstrap template in /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.9.41/lib/chef/knife/bootstrap/templates
DEBUG: Found bootstrap template in /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.9.41/lib/chef/knife/bootstrap/templates
DEBUG: Adding NODE_HOSTNAME
DEBUG: establishing connection to NODE_HOSTNAME:22
DEBUG: connection established
INFO: negotiating protocol version
DEBUG: local is `SSH-2.0-Ruby/Net::SSH_3.1.1 x86_64-linux'
DEBUG: remote is `SSH-2.0-OpenSSH_5.3'
DEBUG: read 840 bytes
DEBUG: received packet nr 0 type 20 len 836
INFO: got KEXINIT from server
INFO: sending KEXINIT
DEBUG: queueing packet nr 0 type 20 len 1684
DEBUG: sent 1688 bytes
INFO: negotiating algorithms
DEBUG: negotiated:
* kex: diffie-hellman-group-exchange-sha1
* host_key: ssh-rsa
* encryption_server: aes128-cbc
* encryption_client: aes128-cbc
* hmac_client: hmac-sha1
* hmac_server: hmac-sha1
* compression_client: none
* compression_server: none
* language_client:
* language_server:
DEBUG: exchanging keys
DEBUG: queueing packet nr 1 type 34 len 20
DEBUG: sent 24 bytes
DEBUG: read 152 bytes
DEBUG: received packet nr 1 type 31 len 148
DEBUG: queueing packet nr 2 type 32 len 140
DEBUG: sent 144 bytes
DEBUG: read 720 bytes
DEBUG: received packet nr 2 type 33 len 700
DEBUG: queueing packet nr 3 type 21 len 20
DEBUG: sent 24 bytes
DEBUG: received packet nr 3 type 21 len 12
DEBUG: beginning authentication of `user'
DEBUG: queueing packet nr 4 type 5 len 28
DEBUG: sent 52 bytes
DEBUG: read 52 bytes
DEBUG: received packet nr 4 type 6 len 28
DEBUG: trying none
DEBUG: queueing packet nr 5 type 50 len 44
DEBUG: sent 68 bytes
DEBUG: read 68 bytes
DEBUG: received packet nr 5 type 51 len 44
DEBUG: allowed methods: publickey,password
DEBUG: none failed
DEBUG: trying publickey
DEBUG: connecting to ssh-agent
ERROR: could not connect to ssh-agent
DEBUG: trying publickey (0f:51:e1:1c:40:b2:34:4b:4c:78:89:58:9b:2d:60:fb)
DEBUG: queueing packet nr 6 type 50 len 348
DEBUG: sent 372 bytes
DEBUG: read 68 bytes
DEBUG: received packet nr 6 type 51 len 44
DEBUG: allowed methods: publickey,password
DEBUG: trying password
DEBUG: queueing packet nr 7 type 50 len 76
DEBUG: sent 100 bytes
DEBUG: read 68 bytes
DEBUG: received packet nr 7 type 51 len 44
DEBUG: allowed methods: publickey,password
DEBUG: password failed
user@NODE_HOSTNAME's password:
DEBUG: queueing packet nr 8 type 50 len 76
DEBUG: sent 100 bytes
DEBUG: read 36 bytes
DEBUG: received packet nr 8 type 52 len 12
DEBUG: password succeeded
DEBUG: queueing packet nr 9 type 90 len 44
DEBUG: sent 68 bytes
DEBUG: read 52 bytes
DEBUG: received packet nr 9 type 91 len 28
INFO: channel_open_confirmation: 0 0 0 32768
INFO: sending channel request "pty-req"
DEBUG: queueing packet nr 10 type 98 len 60
INFO: sending channel request "exec"
DEBUG: queueing packet nr 11 type 98 len 7420
DEBUG: sent 7528 bytes
DEBUG: read 88 bytes
DEBUG: received packet nr 10 type 93 len 28
INFO: channel_window_adjust: 0 +2097152
DEBUG: received packet nr 11 type 99 len 12
INFO: channel_success: 0
DEBUG: read 104 bytes
DEBUG: received packet nr 12 type 94 len 28
INFO: channel_data: 0 8b
DEBUG: received packet nr 13 type 94 len 28
INFO: channel_data: 0 10b

enter image description here

1 个答案:

答案 0 :(得分:0)

无与伦比的'。这个问题是由于csh在我改为bash工作时造成的,而且ssh-agent还有另一个问题需要在节点中启动ssh进程来克服这个问题。