2016-04-26 70 views
1
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 

嗨,我无法做厨房收敛操作,每次我都面临指定的上述问题。请帮我解决这个问题消息:未能完成收敛操作

回答

0

看起来,端口5985未在测试服务器上打开。如果在入站规则中打开了连接5985的规则'WinRM-HTTP',您能检查服务器的安全组吗? 如果端口被打开,您可以告诉测试厨房等到WinRM的准备,在kitchen.yml使用下面的参数:

max_wait_until_ready:真 connection_timeout:900

看到这里https://docs.chef.io/config_yml_kitchen.html#transport-settings