【发布时间】:2015-08-07 04:10:58
【问题描述】:
我正在尝试编写一个将在启动过程中运行并安装 Chef 客户端的脚本。 validation.pem和client.rb文件放在/etc/chef文件夹下,这里的validation.pem取自chef服务器,是organization-validation.pem文件。我已经创建了此 VM 的映像并用于创建另一个 VM。这个脚本运行 chef-client 并且出于某种原因我得到了这个:
Creating a new client identity for node1 using the validator key.
[2015-08-06T19:52:16+00:00] ERROR: SSL Validation failure connecting to host: xxx.xxx.xxx.xxx - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
Running handlers:
[2015-08-06T19:52:16+00:00] ERROR: Running exception handlers
Running handlers complete
[2015-08-06T19:52:16+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 2.966424961 seconds
[2015-08-06T19:52:16+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-
stacktrace.out
[2015-08-06T19:52:16+00:00] ERROR: SSL_connect returned=1 errno=0 state=SSLv3
read server certificate B: certificate verify failed
[2015-08-06T19:52:16+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
另外,我不能真正使用刀,因为它没有配置为厨师客户端没有安装开始。我使用了错误的证书吗?我做错了什么?
【问题讨论】:
-
我正在尝试做同样的事情并遇到同样的问题。
标签: chef-infra