我使用廚師刀創建ec2實例。該過程一直很好,直到它向廚師服務器註冊新創建的實例。刀ec2 bootstrap失敗
我正在使用我自己的廚師服務器。
當我做了EC2的引導,我得到以下幾點:
my-ec2-instance-public-name ########################################## (97%)
my-ec2-instance-public-name ########################################### [100%]
my-ec2-instance-public-name Thank you for installing Chef!
my-ec2-instance-public-name Starting Chef Client, version 11.4.4
my-ec2-instance-public-name Creating a new client identity for i-fc1919ab using the validator key.
my-ec2-instance-public-name
my-ec2-instance-public-name ================================================================================
my-ec2-instance-public-name Chef encountered an error attempting to create the client "i-fc1919ab"
my-ec2-instance-public-name ================================================================================
my-ec2-instance-public-name
my-ec2-instance-public-name
my-ec2-instance-public-name Network Error:
my-ec2-instance-public-name --------------
my-ec2-instance-public-name There was a network error connecting to the Chef Server:
my-ec2-instance-public-name Error connecting to https://my-local-chef-server-name/clients - getaddrinfo: Name or service not known
my-ec2-instance-public-name
my-ec2-instance-public-name
my-ec2-instance-public-name
my-ec2-instance-public-name Relevant Config Settings:
my-ec2-instance-public-name -------------------------
my-ec2-instance-public-name chef_server_url "https://my-local-chef-server-name"
my-ec2-instance-public-name
my-ec2-instance-public-name If your chef_server_url is correct, your network could be down.
my-ec2-instance-public-name
my-ec2-instance-public-name
my-ec2-instance-public-name
my-ec2-instance-public-name [2013-07-22T05:45:55-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
my-ec2-instance-public-name [2013-07-22T05:45:55-04:00] FATAL: SocketError: Error connecting to https://my-local-chef-server-name/clients - getaddrinfo: Name or service not known
我已經取代上述輸出一些信息,以便將其粘貼到計算器。
上述錯誤getaddrinfo: Name or service not known
不能成立,因爲DNS解析工作正常。另外,我看着/var/chef/cache/chef-stacktrace.out
我的EC2實例和它說,getaddrinfo: Name or service not known
現在,
如果我引導我的實驗室,大廚服務器坐在內的本地VM同樣的事情,它工作得很好。
下面是從本地VM引導輸出:
my-local-vm-name ########################################## (97%)
my-local-vm-name ########################################### [100%]
my-local-vm-name Thank you for installing Chef!
my-local-vm-name Starting Chef Client, version 11.4.4
my-local-vm-name Creating a new client identity for my-local-vm-name using the validator key.
my-local-vm-name resolving cookbooks for run list: []
my-local-vm-name Synchronizing Cookbooks:
my-local-vm-name Compiling Cookbooks...
my-local-vm-name [2013-07-22T14:56:14+05:30] WARN: Node my-local-vm-name has an empty run list.
my-local-vm-name Converging 0 resources
my-local-vm-name Chef Client finished, 0 resources updated
問題:
我無法弄清楚,爲什麼我的EC2實例引導失敗getaddrinfo: Name or service not known
而本地VM引導工作正常。有沒有顯而易見的東西我忽略了? 任何幫助/建議對我都有很大的幫助。
謝謝。