test-kitchen / winrm-transport

WinRM transport logic for re-using remote shells and uploading files
Other
8 stars 9 forks source link

WinRM command doesn't terminate #3

Closed ghost closed 9 years ago

ghost commented 9 years ago

I've observed this behavior when trying to install VirtualBox on a Windows Server 2012 R2 VM. Using: test-kitchen 1.4.0.rc.1, kitchen-vagrant 1.7.0.rc.1, winrm-transport 1.0.0

The WinRM session seems to be stuck in "running" mode even though the installation had successfully completed. It calls WinRMWebService::send_message() and never gets a response. Feels like the guest end of the connection had disconnected without informing the host.

Ultimately the session times out, and calling "kitchen converge" right afterwards succeeds.

This is my recipe:

include_recipe 'chocolatey'
chocolatey 'virtualbox' do
  version '4.3.26'
end

(Note that the same thing happened when using the VirtualBox cookbook so it's not related to chocolatey)

Thanks, -Omer

tyler-ball commented 9 years ago

Hey @ozenhaman - can you try this again with the latest ChefDK? It includes some updated versions of the dependencies you are using.

If you can reproduce this could you try running test kitchen with -l debug to set the logging to debug level? Then paste the contents of your .kitchen/logs/* files into a gist so we can see what is happening.

tyler-ball commented 9 years ago

I'm going to go ahead and close this since there hasn't been a response - re-open this if you're still having issues in the latest ChefDK!