我正在尝试创build我的第一个主厨节点。 我有我的笔记本电脑作为pipe理员和虚拟机alaska和kentucky厨师服务器和节点,分别。 这很奇怪,因为它回到了“没有这样的文件或目录”,但它看起来像试图进行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>
有没有人有什么问题可能是什么?
描述“没有这样的文件或目录”听起来很奇怪。 但是我build议仔细检查chef_server_url的configuration(在.chef/knife.rb )。 我认为这指向了错误的厨师服务器。
你可以从工作站与厨师服务器通信吗? (例如尝试knife user list )