-
Notifications
You must be signed in to change notification settings - Fork 112
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
"no provider VDC found with name..." error (vCD 10 & NSX-T 2.5.0) #483
Comments
Hi @fgrehl, Thank you for report and analysis. I have prepared PR, could you check that will help you also vmware/go-vcloud-director#293. It can manually tested by leaving Version the same 29.0 and adding |
Thanks for pointing me in the right direction. Unfortunately, just adding filterEncoded=true does not work for me.
Then I replaced the module in terraform-provider-vcd/go.mod and compiled it: Terraform still fails with the same error. I can see that it uses "filterEncoded=true" in go-vcloud-director.log. I then modified the API Version to 31.0 and recompiled it:
With this fix, Terraform creates the oVDC successfully. I also can still reproduce the Issue with direct API Calls:
|
@fgrehl Thank you for testing it. In our environments it was enough. Also could you verify that version=30.0 is enough for your case? |
No, 30.0 does not work either. The pVDC query only works with 31.0/32.0/33.0. I have 2 environments (Running identical versions) to verify at the moment, it's the same with both. |
Thank you for testing in your env. We will search for solutions. |
@fgrehl, resource "vcd_org_vdc" "ovdc-fgr" {
name = "ovdc-fgr"
description = "My Org"
org = data.vcd_org.ddd.name
allocation_model = "AllocationPool"
network_pool_name = "VCD-Overlay-TZ"
provider_vdc_name = "PVDC-NUCluster"
compute_capacity {
cpu {
allocated = 10
}
memory {
allocated = 10
}
}
storage_profile {
name = "*"
enabled = true
limit = 0
default = true
}
enabled = true
enable_thin_provisioning = true
enable_fast_provisioning = false
delete_force = true
delete_recursive = true
} It worked for me. My env details: The query log itself:
Just to make sure we are comparing apples to apples, could you try to pull terraform code from my branch and build it. It pulls in correct SDK andI have tested it from exactly this branch code. (have in mind version will be v2.8.0 if you use https://github.com/Didainius/terraform-provider-vcd/tree/test-pvdc-nsxt-fix |
I tried with your branch, it still produces the same error. So the only difference is another NSX-T version? I don't know if there is any NSX-T/vCD related configuration that might affect this behavior.
Query Log:
|
@fgrehl , Thanks |
@Didainius I pulled the latest version (Didainius@5c5aa1f) and it worked without any further modifications. Here is the log:
|
Versions Used:
I'm trying to create an OrgVDC. Terraform fails to find the Provider VDC.
go-vcloud-director.log:
When running the same API request manually, it does find anything either:
GET https://vcloud.virten.lab/api/query?&type=providerVdc&filter=name==PVDC-NUCluster
Accept: [application/*+xml;version=29.0]
When running the same API request with Accept API Version >=31.0, i get positive results:
GET https://vcloud.virten.lab/api/query?&type=providerVdc&filter=name==PVDC-NUCluster
Accept: [application/*+xml;version=31.0]
The text was updated successfully, but these errors were encountered: