Closed MrLuje closed 1 year ago
@MrLuje the issue seems to be caused by the API side, suggest to open a service ticket to fix it. also, I'll try to upgrade the API version.
you can create pool, monitor and menber with the resource flexibleengine_lb_pool_v3, flexibleengine_lb_monitor_v3 and flexibleengine_lb_member_v3, and don't set the param subnet_id when you create the resource of flexibleengine_lb_member_v3.
Hi there,
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Terraform Version
1.1.9
Affected Resource(s)
Please list the resources as a list, for example:
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
I have 2 projects :
I want the LoadBalancer to forward traffic to VMs' from the other project. If I create everything manually, it works fine (Cross-VPC backend, dedicated loadbalaner, listener, member pool and the IP of a VM as member) When I try to reproduce this in terraform, it fails because it doesn't find the subnet of the flexibleengine_lb_member_v2 because, I guess, it tries to find it in the loadbalancer's project whereas I'd like it to search in the VMs' project
Terraform Configuration Files
Expected Behavior
What should have happened?
Actual Behavior
flexibleengine_lb_member_v2.nodes: Creating... │ Error: Error creating member: Resource not found: [POST https://elb.eu-west-0.prod-cloud-ocb.orange-business.com/v2.0/lbaas/pools/65f596e5-4078-45a1-8c5d-534efe77debc/members], error message: {"NeutronError": {"detail": "", "message": "Subnet e7cd9b07-7650-4a21-9ed3-a5cac536b70a could not be found.", "type": "NotFound"}} │ │ with flexibleengine_lb_member_v2.nodes, │ on elb.tf line 107, in resource "flexibleengine_lb_member_v2" "k8s_nodes": │ 107: resource "flexibleengine_lb_member_v2" "k8s_nodes" { │
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
I wondered if the
tenant_id
property (https://registry.terraform.io/providers/FlexibleEngineCloud/flexibleengine/latest/docs/resources/lb_member_v2#tenant_id) should be used for this case.but when trying it, I have the following message (but I'm already admin of my tenant):