Terraform provider version
Terraform v1.11.0
Affected Resource(s)
- opentelekomcloud_vpc_route_table_v1
- opentelekomcloud_enterprise_vpn_connection_v5
Terraform Configuration Files
Debug Output/Panic Output
No panic or crash. The issue is with automatic route creation.
Steps to Reproduce
- Create an Enterprise VPN connection.
Expected Behavior
When a VPN connection is created, a route to the VPN gateway (e.g., 0.0.0.0/0) should be automatically added to the custom route table associated with the subnet.
Actual Behavior
The route to the VPN gateway is created only in the default route table, which is not associated to any subnet.
As a result, the custom route table associated with the subnet does not have the necessary route, and traffic does not go through the VPN as expected.
Important Factoids
- All subnets are associated with custom route tables.
- The default route table is not associated with any subnet, so the automatically created route is not used.
- Manual addition of the route to the custom route table is required for correct VPN traffic routing.
References