You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NoPermission reported if the root folder has multiple datacenters but current vsphere credential can only access the datacenter we want to create folder or virtual machines.
The vsphere_folder resource should be created successfully.
Actual Behavior
The vsphere_folder resource was not created. And "NoPermission" reported on the console.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Fix
I have looked the code, and made following change, then the issue is fixed (test pass).
Because according to company rule, I am not able to create pull request here, so just create an issue here. Hope you guys can fix the issue. And please note other places which using finder.Datacenter will also fail in this vsphere configuration.
Hey @Rocking80 - I unfortunately can't reproduce this. Here are the steps I carried out:
Create new DC
Add a permission for "no access" to the DC for my user
Try to run TF and create a folder in the DC I still have access to
This passes.
If it is not much trouble, would you please try your issue again with a custom built provider binary to see that resolves the issue for you? This can help us confirm that the issue will be fixed in the next release.
NoPermission reported if the root folder has multiple datacenters but current vsphere credential can only access the datacenter we want to create folder or virtual machines.
Terraform Version
Terraform v0.10.1
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/Rocking80/54d427e7ff090c489d96995e5b29afe1#file-nopermission-txt
Expected Behavior
The vsphere_folder resource should be created successfully.
Actual Behavior
The vsphere_folder resource was not created. And "NoPermission" reported on the console.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Fix
I have looked the code, and made following change, then the issue is fixed (test pass).
Because according to company rule, I am not able to create pull request here, so just create an issue here. Hope you guys can fix the issue. And please note other places which using
finder.Datacenter
will also fail in this vsphere configuration.The text was updated successfully, but these errors were encountered: