【发布时间】:2015-08-27 11:55:38
【问题描述】:
我已经在 linux 服务器上安装了 chef server 包,并且在 AMAZON EC2 上还有一个 linux 工作站和一个 linux 节点。我正在尝试在工作站上运行以下引导命令:
chef exec knife bootstrap 10.0.xx.xx -x ec2-user --sudo -i keyfile.pem --node-name Chef_Test_Node
但是 chef-client 不在节点上工作。出现以下错误:
----------------------------------------------------------------------
Network Error:
There was a network error connecting to the Chef Server: Error connecting to https://xx.xx.xx.xx/organizations/xxx/clients - getaddrinfo: Name or service not known
Relevant Config Settings:
chef_server_url "https://xx.xx.xx.xx/organizations/xxx"
If your chef_server_url is correct, your network could be down.
-----------------------------------------------------------------------
我能够运行刀客户端列表或节点列表,这证明我的工作站的网络没有问题
请告诉我如何解决这个问题。
谢谢
【问题讨论】:
-
您正在引导的节点无法到达xx.xx.xx.xx
-
非常感谢您的回复.. 但是这个问题的可能原因是什么,因为我已经打开了所有必需的端口,即 http 和 https 都是从服务器、工作站和节点打开的。
-
登录目标节点并尝试
curl https://xx.xx.xx.xx。 -
是否必须通过代理服务器才能连接到远程服务器?许多公司网络都要求这样做,在这种情况下,您可以设置 http_proxy 和 https_proxy 的环境变量,以允许厨师也通过您的代理服务器。
-
非常感谢您的回复...是的,这可能是我使用 NAT 服务器访问互联网时的问题。请告诉我我需要在哪里设置 http_proxy 和 https_proxy 设置以允许厨师? ?
标签: chef-infra