消息:无法完成聚合操作

时间:2016-04-26 18:07:13

标签: amazon-ec2 test-kitchen windows2012

PS C:\App\cookbooks\windows_settings> kitchen verify
---> Starting Kitchen (v1.4.2)
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/httpclient-2.6.0.1/lib/httpclient/webagent-cookie.rb:458: warning: a
lready initialized constant HTTPClient::CookieManager
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/httpclient-2.6.0.1/lib/httpclient/cookie.rb:8: warning: previous def
inition of CookieManager was here
---> Converging <default-windows-2012r2>...
      Preparing files for transfer
      Preparing dna.json
      Resolving cookbook dependencies with Berkshelf 4.0.1...
      Removing non-cookbook files before transfer
      Preparing validation.pem
      Preparing client.rb
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: Failed to complete #converge action: [A connection attempt failed because the connected party did not pr
operly respond after a period of time, or established connection failed because connected host has failed to respond. -
connect(2) for "ec2-54-213-41-35.us-west-2.compute.amazonaws.com" port 5985 (http://ec2-54-213-41-35.us-west-2.compute.a
mazonaws.com:5985)]
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

嗨,我无法做厨房聚合动作,每次我都面临上述指定的问题。请帮我解决这个问题

1 个答案:

答案 0 :(得分:0)

看起来,测试服务器上没有打开端口5985。如果规则&#39; WinRM-HTTP&#39;是否可以检查服务器的安全组?连接5985在入站规则中打开。 如果端口打开,您可以告诉测试厨房等待WinRM准备好,使用kitchen.yml中的以下参数:

max_wait_until_ready:true connection_timeout:900

https://docs.chef.io/config_yml_kitchen.html#transport-settings