fog / fog-rackspace

Rackspace provider gem for Fog ecosystem
MIT License
8 stars 36 forks source link

Provisioning fails for Windows images #17

Closed ehashman closed 4 years ago

ehashman commented 8 years ago

Hi there,

I encountered this bug while poking at kitchen-rackspace, which uses fog-rackspace (see here).

When trying to provision a Windows VM, I hit a timeout...

$ kitchen converge
-----> Starting Kitchen (v1.10.2)
-----> Creating <default-windows-2012R2>...
[fog][WARNING] Rackspace[:no_passwd_lock] is deprecated since it is now the default behavior, use Rackspace[:passwd_lock] instead
[fog][WARNING] Rackspace[:no_passwd_lock] is deprecated since it is now the default behavior, use Rackspace[:passwd_lock] instead
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>>     Failed to complete #create action: [Net::SSH::ConnectionTimeout] on default-windows-2012R2
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

I suspect the problem is with this bit of code. Since Windows machines don't support SSH but the SSH setup step is unskippable, Fog will always fail on a timeout.

Is it possible to add some logic to skip the SSH setup on Windows VMs so provisioning will succeed?