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
opentelekomcloud_dc_virtual_interface_v2 fails to create virtual interface #2393
Comments
Hi @brunoagueda check on latest please |
Hi opentelekomcloud_dc_virtual_interface_v2.int_1: Creating... An with this error, I cannot delete or update the resources, I need to remove the interface from the state file to be able to run terraform again |
Hi @brunoagueda aw crap, sorry, problem from my side that i cannot test virtual interface, will try to find where is the issue |
@brunoagueda if you can, please build provider plugin from devel and check on your infrastructure |
Hi @anton-sidelnikov Is this the way to go for testing the updates on the devel branch? |
@brunoagueda in our repo is more simplier https://github.com/opentelekomcloud/terraform-provider-opentelekomcloud?tab=readme-ov-file#building-the-provider, need only go installed in any unix based os. |
I builded from the code and produced a binary, and then I substituted the binary from the .terraform folder with this new one, is this the right approach? |
@brunoagueda,
after all manipulations, to remove override: |
Hi @anton-sidelnikov , thanks for orientation. I was able to test it and it worked, the error message does not appear anymore. The second problem is when I try to update the endpoint group for the virtual gateway. Adding a new CIDR in the endpoint argument forces it to detroy the endpoint group and creates a new one, and update the endpoint group id (local_ep_group_id) . But then I get an error when it tries to destroy the endpoint group: Error: error deleting DC endpoint group: Bad request with: [DELETE https://dcaas.eu-ch2.sc.otc.t-systems.com/v2.0/dcaas/dc-endpoint-groups/0dc3fcf8-02fe-40f6-bc09-044ae2546a59], error message: {"requestId":"da9535b08283b463f98eea3d1153262c","error_msg":"Endpoint group 0dc3fcf8-02fe-40f6-bc09-044ae2546a59 is in use and cannot be deleted","error_code":"DC.1402"} |
Hello @brunoagueda, ehehe. Okay for first issue work in progress i'm waiting for direct connect for testing seems api response not as described in doc. Second again is a very strange api behaviour, still trying to figure out can we make workaround or not, for me is a blocker, because from api side we cannot update this cidrs because ep_group_id is required parameter for gateway, kind of cyclic dependency. |
…tion `opentelekomcloud_dc_endpoint_group_v2` (#2405) [DCAAS] refactoring `opentelekomcloud_dc_virtual_gateway_v2`, deprecation `opentelekomcloud_dc_endpoint_group_v2` Summary of the Pull Request Impossible to properly use endpoint group separately from virtual gateway because of api structure, cyclic dependecies. Make decision to move endpoint group management under virtual gateway resource. Added deprecation message to opentelekomcloud_dc_endpoint_group_v2 PR Checklist Refers to: #2393 Tests added/passed. Documentation updated. Schema updated. Release notes added. Acceptance Steps Performed === RUN TestDirectConnectVirtualGatewayV2Resource_basic --- PASS: TestDirectConnectVirtualGatewayV2Resource_basic (82.87s) PASS Debugger finished with the exit code 0 Reviewed-by: Aloento Reviewed-by: Artem Lifshits
…2` (#2408) [DCAAS] refactoring `resource/opentelekomcloud_dc_virtual_interface_v2` Summary of the Pull Request PR Checklist Refers to: #2393 Tests added/passed. Documentation updated. Schema updated. Release notes added. Acceptance Steps Performed === RUN TestDirectConnectVirtualInterfaceV2Resource_basic --- PASS: TestDirectConnectVirtualInterfaceV2Resource_basic (86.16s) PASS Process finished with the exit code 0 Reviewed-by: Artem Lifshits Reviewed-by: Aloento
Hi @brunoagueda, I finished with this resources. Important thing I deprecated endpoint_group resource (will be deleted soon), because it impossible to manage, so i refactored virtual_gateway and virtual_interface added block inside for creating endpoint_group. Please check |
Hi @anton-sidelnikov I only noticed this with that specific CIDR. Other than this weird behavior, everything is working as expected. |
interesting, seems api returns something different for that cidr, i will ask guys from network to check. Thanks |
Terraform provider version
Terraform v1.6.6
on linux_amd64
Affected Resource(s)
opentelekomcloud_dc_virtual_interface_v2
Terraform Configuration Files
Debug Output/Panic Output
https://gist.github.com/brunoagueda/63a98dad42a3938305055d22f8038397
Steps to Reproduce
terraform apply
Expected Behavior
Virtual interface should be created
Actual Behavior
Error message: "'service_type' is invalid, the valid value is [vpc, public service, vpc and public service]"
The text was updated successfully, but these errors were encountered: