-
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
Unable to use data.vcd_nsxt_app_port_profile #1058
Comments
Hello @lpiob , It should be possible to narrow the query down, but I'd like to see these 3 responses you get. Edit: Logging can be enabled -> https://registry.terraform.io/providers/vmware/vcd/latest/docs#logging |
@Didainius please see https://gist.github.com/lpiob/26b31115a87bcb89a4a6aeebc35dbf58 When I try to use any of the returned ids:
by manually specifying them in the
|
That is so odd as I don't see how to distinguish between them. Do you also 3 items in the UI? Do you know anything about your infrastructure setup? Does it have 3 NSX-T Managers configured? |
Hello @lpiob, Thanks for reporting this, we forgot to consider and document an important point regarding this datasource. You can get a 'SYSTEM' app port profile without any context only if you have 1 NSX-T Manager in your infrastructure, as VCD fetches the profiles from all of them. What you can do is provide a
That way it should fetch the correct port profile. EDIT: I got confused while working with this, it will work as described only after a bugfix PR has been merged. |
@Didainius I see only 1 item in the UI. I don't have any information of amount of NSX-T at this provider. I'm just a user. @adezxc thanks for the quick patch. I'll try it out as soon as new provider is released, unless it's important then I can try to compile it by myself. |
Hi @lpiob, provider version 3.10.0 was released with the fix applied, it should work now |
@adezxc I can confirm that the data.vcd_nsxt_app_port_profile works correctly after upgrading to 3.10.0. Thanks for the quick fix! |
The data
data.vcd_nsxt_app_port_profile
is unusable for fetching system port profiles.It returns an error every time.
Quick debug confirms that in fact the API Request returned 3 responses. There is no way to filter them.
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Whole code below:
VCD_USER and VCD_PASSWORD are defined within environment variables. Other resources work correctly.
Actual Behavior
Expected Behavior
One port profile should be returned OR I should be able to filter which one I'll get.
Debug Output
I'm uncomfortable with sharing the debug output, as it may contain sensitive information.
I'll do so if requested.
The TF_LOG_TRACE shows that the API call returns 3 different
urn:vcloud:applicationPortProfile:uuid
values. When copied manually, only one of them is correct, the rest return the following error:The web interface shows only one.
Steps to Reproduce
terraform apply
User Access rights
Not sure, these are my first steps with VCD envuronment. I manage an organization in a commercial cluster.
Important Factoids
None.
References
None.
The text was updated successfully, but these errors were encountered: