-
Notifications
You must be signed in to change notification settings - Fork 93
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
Issue with region name being the same as externalRegionId
#472
Comments
Newer versions of the vRA API require setting the region This is a limitation we discovered when we upgraded the SDK version (#421 ). At that time we decided that making an extra call inside the Terraform provider to get the real region name was too expensive and that the limitation should be addressed inside vRA and not the terraform provider. Additionally, as this is something internal (we only show the We currently have a story (internal reference #VRAE-12847) to address this limitation in vRA, but unfortunately, I cannot provide you any estimate on when this will be addressed. |
Hello Ferran. When using the old 0.4.1 vra provider (as it was using the old sdk), we were fetching the vra_region not by its id but by its name, which is currently the same as the datacenter we have on vSphere. Since the new sdk, as you mentionned, the vra_region name is also required but set with the same value as the datacenter id, Datacenter:datacenter-3. Even though it does create the region on vRA successfully, this is less friendly-user as it was created before the sdk update. Knowing the dc name is easier than knowing the dc id, when getting the vra_region. Is there another way to get the region_id without using? data "vra_region" "this" {
filter = "name eq '${var.vra_region_name}'"
} Maybe a foreach on vra_region_enumration_vsphere? Glad to hear the issue is tracked by the vRA team :) |
Hello @frodenas. Do you have any update about VRAE-12847? |
@an2ane Unfortunately, I don't have any updates yet. |
As deploying a new production stack, this bug is very confusing. I'd like this to be fixed. |
Hi @frodenas, I understand that vRA limitations have made this difficult. But we now have a situation where deployed configurations are using When the provider is fixed, how will we migrate to actual names without rebuilding our infrastructure? Thanks |
externalRegionId
Marking this issue as stale due to inactivity. This helps us focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. |
Code of Conduct
This project has a Code of Conduct that all participants are expected to understand and follow:
vRA Version
vRA Cloud 8.10.0
Terraform Version
0.12+
vRA Terraform Provider Version
0.6.0
Affected Resource(s)
vra_region
vra_zone
vra_cloud_account_vsphere
When creating a vra_cloud_account_vsphere resource, the related regions name share the same value as externalRegionId.
Terraform Configuration Files
Expected Behavior
The way it was working with the vra provider 0.4.x was great. We had the name and the id from the vCenter, not the id set twice in name and externalRegionId variables
Actual Behavior
Steps to Reproduce
terraform apply
Screenshots
Community Note
The text was updated successfully, but these errors were encountered: