2016-04-26 69 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