-
Notifications
You must be signed in to change notification settings - Fork 27
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
VapiStdErrorsUnauthenticated when i try to create a VM #77
Comments
Hi there, apparently versions 0.4.0 - 0.4.2 of the vsphere-automation-sdk gems are bugged (vmware-archive/vsphere-automation-sdk-ruby#57) , they released a 0.4.3 just a few minutes ago. You could try that one or pin your versions to the last known working version 0.3.0. Would appreciate some response, if 0.4.3 indeed fixed your issue so I know if I need to look further. |
I have the same error also with : Successfully installed vsphere-automation-runtime-0.4.3 |
Sorry @tecracer-theinen, but if you are aware of the bugs of vsphere-automation-sdk gems, why you don't fix the version of your dependency to 0.3.0 in .gemspec ?
|
Update with this combination of gems version it works:
|
Sorry, but I have been on vacation. I just tried reproducing the bug, but was not able to do so. Brand new Ubuntu 18 box with ChefDK 4.4 works with:
But Chef Workstation 0.10.6 on the same base works as well:
I am quite confused and will keep looking into this. |
I've got the same issue: CentOS Linux release 7.6.1810 (Core) chefdk-4.4.27-1.el7.x86_64 vcenter 6.7 update 1 the same creds do work with fine with knife D ---Nested Exception--- |
Thanks for this update. I found a customer installation which has the same problems, so I can look into it now. |
Just looped in @jrgarcia to help with the VMware side of things. |
@tecracer-theinen Hey, I just released v0.4.5 of the SDK which should fix this for you. Thanks for reporting! |
Getting reports from customers that 0.4.5 solved their problems. Closing this issue accordingly. Thanks @jrgarcia :) |
This is still a problem for me (in Windows) after installing 0.4.5. With the latest kitchen-vcenter (2.5.2), I'm getting this error: -----> Creating ...
|
Just collected the following info with @tzvifriedman about this:
The Error occurs both on Windows 2016 and OS X as development workstation. Still, pinning the vsphere-automation-sdk to version 0.3.0 is probably a viable workaround until this has been resolved. |
@tecracer-theinen I think I have located the cause of this error as I am facing it now. We are using 0.4.6 of the API and 2.9.0 of kitchen-vcenter. The error is caused by the interfacing between VSphereAutomation and kitchen-vcenter. The error is present in all (recent) versions of kitchen-vcenter. If you look at this line: https://github.com/chef/kitchen-vcenter/blob/master/lib/kitchen/driver/vcenter.rb#L396 You can see that it checks So if the interface for the ClusterApi class is that If ClusterApi should raise an exception on errors (which I think it should), then the bug is within VSphereAutomation, which needs to raise errors rather than returning them. |
Versions:
Platform Details
Steps to Reproduce:
Run kitchen converge with kitchen.yml like this
Actual Result:
It worked with this version of gems:
Successfully installed vsphere-automation-cis-0.1.0
Successfully installed vsphere-automation-appliance-0.1.0
Successfully installed vsphere-automation-content-0.1.0
Successfully installed vsphere-automation-vapi-0.1.0
Successfully installed vsphere-automation-vcenter-0.1.0
Successfully installed vsphere-automation-sdk-0.1.0
Successfully installed kitchen-vcenter-2.4.0
doesn't work now with these:
Successfully installed vsphere-automation-runtime-0.4.2
Successfully installed vsphere-automation-cis-0.4.2
Successfully installed vsphere-automation-appliance-0.4.2
Successfully installed vsphere-automation-content-0.4.2
Successfully installed vsphere-automation-vapi-0.4.2
Successfully installed vsphere-automation-vcenter-0.4.2
Successfully installed vsphere-automation-sdk-0.4.2
Successfully installed kitchen-vcenter-2.5.2
The text was updated successfully, but these errors were encountered: