【问题标题】:bootstrapping a node using chef使用 Chef 引导节点
【发布时间】:2016-02-03 14:40:18
【问题描述】:

请帮我解决以下问题。我正在尝试引导一个 docker 容器。目标是 Ubuntu 14.04

172.17.0.1 [2016-02-03T04:31:57+00:00] ERROR: Error connecting to https:// chef.shrikant.com/organizations/project/clients, retry 1/5
172.17.0.1 
172.17.0.1 ========================================================================
172.17.0.1 Chef encountered an error attempting to create the client "nodename2"
172.17.0.1 ========================================================================
172.17.0.1
172.17.0.1 Network Error:
172.17.0.1 There was a network error connecting to the Chef Server:
172.17.0.1 Error connecting to https://chef.shrikant.com/organizations/project/clients - getaddrinfo: Name or service not known
172.17.0.1 
172.17.0.1 Relevant Config Settings:
172.17.0.1 -------------------------
172.17.0.1 chef_server_url  "https:// chef.shrikant.com/organizations/project"
172.17.0.1 
172.17.0.1 If your chef_server_url is correct, your network could be down.
172.17.0.1 
172.17.0.1 
172.17.0.1 Running handlers:
172.17.0.1 [2016-02-03T04:33:07+00:00] ERROR: Running exception handlers
172.17.0.1 Running handlers complete
172.17.0.1 [2016-02-03T04:33:07+00:00] ERROR: Exception handlers complete
172.17.0.1 Chef Client failed. 0 resources updated in 01 minutes 18 seconds
172.17.0.1 [2016-02-03T04:33:07+00:00] FATAL: Stacktrace dumped to 
/var/chef/cache/chef-stacktrace.out
172.17.0.1 [2016-02-03T04:33:07+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
172.17.0.1 [2016-02-03T04:33:07+00:00] ERROR: Error connecting to https://chef.shrikant.com/organizations/project/clients - getaddrinfo: Name or service not known
172.17.0.1 [2016-02-03T04:33:07+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

【问题讨论】:

  • 您的具体问题是什么?到目前为止您尝试了什么,请编辑您的问题。
  • 你能从工作站访问你的 Chef 服务器吗,在浏览器 chef.shrikant.com 中?
  • 是的,我可以从我的工作站访问 Chef 服务器。每当我尝试引导节点时,都会发生上述错误。

标签: docker chef-infra


【解决方案1】:

看起来它们是 URL 中不应该存在的空格。检查工作站上的knife.rb

【讨论】:

  • 我检查了knife.rb,url中没有空格。作为一个新用户,stackovrflow 不允许帖子中的链接超过 2 个,所以我自己添加了空格。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-06-20
  • 1970-01-01
相关资源
最近更新 更多