-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kitchen fails with error 'vAPI: vapi.data.invalid: value does not have expected type' #22
Comments
Output from kitchen diagnose --all:
|
I've had the same issue for some time as well. So if you remove driver_config from driver section of .kitchem.yml file and move it to platform section, the error will disappear. |
@nimDevOps really?! I'll verify this thanks for the find! |
@nimDevOps was right! Updated PR here, can i get a plus 1? #23 |
I think it's global/local variable initialization issue. Usually datacenter config is global for all platforms, that's why it's configuration placed on very top. This may mean that datacanter configuration under platform is not initialized in this case and validation failed to accept empty string. |
error comes from ~/AppData/Local/chefdk/gem/ruby/2.4.0/gems/vsphere-automation-sdk-6.6.1/client/sdk/runtime/lib/vapi/data/value.rb |
@seven10builder did this fix your issue? If so please close this, otherwise lets continue debugging. |
After moving datacenter to platform original issue is not happening anymore (for me) but there is a new issue which I cannot solve: [Unable to find template: <template_name>].
|
are your templates in folders? |
yes, I have Work1/Cloud folder and template WS2016_svn65.18 is there, inside Cloud folder. |
@jjasghar , just found this issue: vmware-archive/rbvmomi#117 of rbvmomi API. I have version 1.11.6 and it looks like finding VMs in folders is broken in this version. After I moved my template out of any folders, cloning started to work. |
Awesome! I'm going ahead to close this, I'm glad this got resolved. |
Versions:
Platform Details
Scenario:
I am trying to start a test-kitchen instance on our local vcenter. I have previously tested this cookbook using ec2, but now want to run it locally.
Steps to Reproduce:
I followed the steps listed in the current MASTER branch README.md. My .kitchen.yml file looks like the following
Expected Result:
An instance is created and the various kitchen tasks are executed.
Actual Result:
executed according to this:
The text was updated successfully, but these errors were encountered: