Skip to content
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

vSphere provider fails to find specified resource pool #5913

Closed
trodemaster opened this issue Mar 29, 2016 · 16 comments
Closed

vSphere provider fails to find specified resource pool #5913

trodemaster opened this issue Mar 29, 2016 · 16 comments

Comments

@trodemaster
Copy link

I'm attempting to use the vSphere provider to deploy VMs on a vSphere 6.0 cluster. However the VSPHERE_VIRTUAL_MACHINE argument resource_pool is not working as expected. Whenever I specify a resource pool the result is this error.

Error applying plan:

1 error(s) occurred:

  • vsphere_virtual_machine.centos6-vmware: resource pool 'Image_Lab' not found

Log file
https://gist.github.com/trodemaster/843ce9b16c6790e54ec9eee6e86b965a

.tf config file specifying resource pool
https://gist.github.com/trodemaster/4664509aed64919cba7f0009cf7853f0

Not sure what other details are going to be helpful in debugging this. Please advise...

@trodemaster
Copy link
Author

Terraform version..
Terraform v0.6.15-dev (d1ac7d3)

@xantheran
Copy link

The vSphere edition would be helpful as well
Is there more than one datacenter in your vCenter server? Also does is the account you login with have at least read access all the way down to the root? I have seen similar problems when the vCenter server is shared and different groups have been assigned to sub folders under the datacenter

@trodemaster
Copy link
Author

This environment is 6.0u2. I have one datacenter and have named that in the config as well. The permissions config is very simple as this is a test lab. The user account is "administrator" from the root propagated down to all objects. Without specifying the resource pool name terraform is able to deploy to the cluster which is the parent object to the resource pool.

@chrislovecnm
Copy link
Contributor

Is this related?? #4100

@trodemaster
Copy link
Author

Yes does seem related to #4100 ! From my quick read seems like resource_pool does not currently work with clusters. If that's the case clearly a big omission. Outside of a lab I would say 99% of vSphere environments are a cluster.

@tommymalmqvist
Copy link
Contributor

tommymalmqvist commented Apr 15, 2016

cluster_name/Resources/resource_pool_name

In your case it would be:
resource_pool = "MacPro/Resources/Image_Lab"

@chrislovecnm
Copy link
Contributor

@tommymalmqvist thanks!! I assume that we should add that to the docs?

@tommymalmqvist
Copy link
Contributor

tommymalmqvist commented Apr 15, 2016

Good idea, I'll add it as an example.

@chrislovecnm
Copy link
Contributor

@tommymalmqvist cookie for u!! One thing I was thinking about is mentioning the command line VMware tool that the API provides. You want me to file an issue for doc improvements?

@tommymalmqvist
Copy link
Contributor

Sure, assign it to me.

tommymalmqvist added a commit to tommymalmqvist/terraform that referenced this issue Apr 15, 2016
…e-pool-docs: example extended with more arguments.
@tommymalmqvist
Copy link
Contributor

Sorry, moved PR to #6198 this issue instead, fyi.

@chrislovecnm
Copy link
Contributor

@trodemaster can we close this?? We will hold it open a couple more days!

@trodemaster
Copy link
Author

Yes we can close this one. I agree that some additional doc examples would be very helpful. Do have to say that specifying the cluster and the constant value of "resources" seems redundant. My config already specified the cluster. Might be more elegant to require the cluster value and just create the full path from that.

@chrislovecnm
Copy link
Contributor

@trodemaster I would like to follow the standard that govc / govmomi uses. We have multiple points, for instance network names that are not standardized.

That is only a thought, but keeping it the same syntax as what govc / govmomi uses just make sense.

Can I recruit you for some documentation awesomeness??

@jen20 @phinze can we close this issue??

@chrislovecnm
Copy link
Contributor

@catsby please close pretty please, sugar on top ;)

@phinze phinze closed this as completed Apr 18, 2016
@ghost
Copy link

ghost commented Apr 26, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants