-
Notifications
You must be signed in to change notification settings - Fork 452
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
NoPermission - vsphere_folder.folder: cannot find datacenter from path #803
Comments
It would appear the the above may be due to insufficient permissions to query the Datacenter Info. The output on a smaller cluster with a single DC: govc datacenter.info v.s govc datacenter.info Now to find what permission is needed to correct this. |
VM Administrators have added my account with Full permissions. Issue resolved. |
I have the same issue:
While I can access the datacenter and create subfolders via vCenter without any problems. |
terraform from what I understand makes use of the govmomi api's, and needs to be able at a minimum run the "govc datacenter.info" If you are not able to get a response, then the above error occurs. Your access in vSphere needs to be from / (or the highest level of the vCenter Cluster) |
Occurs when the root folder has multiple datacenters and vsphere credential can read and see all datacenters
Terraform Version
Terraform v0.11.13
Affected Resource(s)
terraform-provider-vsphere
Terraform Configuration Files
Debug Output
https://gist.github.com/tonywadeza/a31136090ed0c8a97fa3ddc4dd3423f0
Expected Behavior
The vsphere_folder resource should be created successfully.
Actual Behavior
The vsphere_folder resource was created. And "NoPermission" reported on the console. Further to this, the removal of the folder using destroy does not work as the terraform state does not have the folder as a valid resource.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
The text was updated successfully, but these errors were encountered: