opscode Chef:引导节点时发出问题

时间:2014-12-19 07:04:13

标签: chef knife

我正在尝试使用knife命令引导节点并得到以下错误。

命令:

knife bootstrap <hostname> --sudo -x <username>  -N <Nodename> -E <env> --bootstrap-proxy <proxy>

Error : Connecting to <hostname>
ERROR: Net::SSH::Disconnect: connection closed by remote host

所以,我直接登录节点并安装了主厨rpm并生成了client.rb并将个人证书validator.pem复制到节点,当我运行chef-client时,我得到以下错误。

[root@test bin]# chef-client
Starting Chef Client, version 11.8.0
[2014-12-19T15:58:03+11:00] ERROR: SSL Validation failure connecting to host: Chef_server - SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A

================================================================================
Chef encountered an error attempting to load the node data for "test_DR"
================================================================================


Unexpected Error:
-----------------
OpenSSL::SSL::SSLError: SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A


[2014-12-19T15:58:03+11:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated
[2014-12-19T15:58:03+11:00] ERROR: SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A
[2014-12-19T15:58:03+11:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
[root@test bin]#

1 个答案:

答案 0 :(得分:1)

第一个错误意味着您的工作站遇到SSH问题。第二个错误表示您的Chef服务器上有一个无效的TLS证书。有关解决第二个问题的说明,请参阅https://www.chef.io/blog/2014/12/12/chef-12-fix-untrusted-self-signed-certificates/。要解决第一个问题,您必须检查防火墙规则和其他可能的连接问题。您似乎正在使用代理,因此请确保其正常运行。