brent-c-mills / kitchen-xenserver

Other
2 stars 0 forks source link

affinity is required for this operation #9

Open nickkeyzer opened 7 years ago

nickkeyzer commented 7 years ago

Chef Development Kit Version: 0.18.30 chef-client version: 12.14.89 berks version: 5.1.0 kitchen version: 1.13.2

Running kitchen create with the xenserver driver results in ActionFailed.

$ kitchen create
-----> Starting Kitchen (v1.13.2)
-----> Creating <default-centos-72>...
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>>     Failed to complete #create action: [affinity is required for this operation] on default-centos-72
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

It seems that this may have something to do with the fog version. Here is what I'm using currently:

fog (1.38.0) fog-core (1.42.0) fog-xenserver (0.2.3)

What's strange is that I'm seeing this error while attempting to provision VMs on Xenserver 6.2. My understanding was that 'affinity' was only made a requirement in Xenserver 6.5. I've also tried pointing this at my Xenserver 6.5 and receive the same thing. I wish I could help more but my Ruby knowledge is a bit limited since I come from an Ops background.

It looks like this has been mentioned in the 'chef-provisioning-fog' project as well: https://github.com/chef/chef-provisioning-fog/issues/123

zz9pzza commented 7 years ago

👍 Same here.