Chef 未能成功引导

Chef 未能成功引导

我正在尝试创建我的第一个 Chef 节点。我的笔记本电脑分别用作管理员计算机和虚拟机alaska以及kentuckyChef 服务器和节点。这很奇怪,因为它返回“没有这样的文件或目录”,但它似乎正在尝试进行 RPC 调用。

laptop :: ~/chef/test ‹master› » knife bootstrap kentucky --sudo -x parallels -N "target1"
Bootstrapping Chef on kentucky
kentucky knife sudo password:
Enter your password:
kentucky
kentucky Starting Chef Client, version 11.8.2
kentucky Creating a new client identity for target1 using the validator key.
kentucky
kentucky ================================================================================
kentucky Chef encountered an error attempting to create the client "target1"
kentucky ================================================================================
kentucky
kentucky
kentucky [2014-01-30T16:17:04-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
kentucky Chef Client failed. 0 resources updated
kentucky [2014-01-30T16:17:04-05:00] ERROR: No such file or directory - getaddrinfo
kentucky [2014-01-30T16:17:04-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

引用堆栈跟踪的开始:

Generated at 2014-01-30 16:17:04 -0500
Errno::ENOENT: No such file or directory - getaddrinfo
/opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:763:in `initialize'
/opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:763:in `open'
/opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:763:in `block in connect'
/opt/chef/embedded/lib/ruby/1.9.1/timeout.rb:55:in `timeout'
<snip>

有谁知道这个问题可能是什么吗?

答案1

“没有这样的文件或目录”这个描述听起来确实很奇怪。但我建议仔细检查chef_server_url(in .chef/knife.rb) 的配置。我认为这指向了错误的 chef 服务器。

您可以从工作站与 Chef 服务器通信吗?(例如尝试knife user list

相关内容