-
Notifications
You must be signed in to change notification settings - Fork 166
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
Correctly find the resource pool even if it is a cluster. #45
Conversation
…efore, if the resource pool was a cluster it would not be found by name
Thanks. Your patch worked for me on vCenter/vSphere 5.5. It would be great if this could be merged into the official plugin. |
This doesn't work under our original conditions. (Merged, or unmerged) Here's the not-particularly-useful error output.
Any more information I can provide? Matt |
There's a branch of my merge if you wanted to look at it. |
Interesting. Are you saying that you get the same error before and after my patch? |
Also, It seems like your error is occurring in connect_vsphere. It is possible that it is just failing to connect. There is something wrong with the error messaging because it seems like we always just get "No error message" Can you verify with a super simple Vagrantfile that you can at least connect to your vsphere endpoint? |
Ryan, I was saying I only get the error after your patch. I have no problems connecting with the previous software/gem. Matt |
Can you see if the latest version fixes your problems? |
Would something similar to this also be required for |
Hey, sorry I dropped off the map on this one. I got pulled in to some other stuff. We have upgraded to vSphere 5.5, I will test the latest version against our environment and let you know. |
Sorry it took so long, I had no time to check this out. The latest version using the root resource pool works great and I don't have a problem hitting our vSphere 5.5 deployment and spinning up VM's. |
Nice, thanks. On Fri, Sep 12, 2014 at 1:18 PM, rylarson notifications@github.com wrote:
|
I was sad to see this work discarded, as unfortunately the root resource pool doesn't work in configurations where a named resource pool must be selected.
The workaround identified here is to navigate the folders and look for the ClusterComputeResource using childEntity.find. I guess I'll raise a pull request when I get it working. |
This is a more robust way to search for the resource pool. We interrogate the type and search a little but differently depending on what type of resource we are.
This is very similar to how knife-vsphere searches for resource pools. This was tested on a vmware infrastructure deployment using vCenter/vSphere 4.1