Skip to content
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

update networkLoadBalancer errors with "400-InvalidParameter, Invalid backend OCID" #2267

Open
dhoogfr opened this issue Jan 15, 2025 · 2 comments
Labels
bug In-Progress Terraform Team is working on the reproduce & fix

Comments

@dhoogfr
Copy link

dhoogfr commented Jan 15, 2025

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version and Provider Version

Terraform v1.10.3
on linux_amd64
+ provider registry.terraform.io/hashicorp/tfe v0.55.0
+ provider registry.terraform.io/oracle/oci v6.21.0

Affected Resource(s)

oci_network_load_balancer_backend_set

Terraform Configuration Files

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. 
# Please remove any sensitive information from configuration files before sharing them. 

Debug Output

https://gist.github.com/dhoogfr/ea310c2243cc85ee2cca9a2a0739cc31

Panic Output

Expected Behavior

Network load balancer backendset health check is updated

Actual Behavior

TF complains that the id of the backendset is invalid.
However, the ID in the debug log matches the ID in the state file and seems to match actual the ID
networkLoadBalancers/ocid1.networkloadbalancer.oc1.eu-frankfurt-1.amaaaaaatqcdh6qamvwdcz5hu4paanyta6i2dygth5fsfltenn4j5hsklsca/backendSets/bs-hub-dns-psa

(I say seems, as there is no direct way to view the ID on the OCI web console or via the OCI CLI, but it does match the format described in the TF resource and the LB OCID and backendset name matches)

Steps to Reproduce

  1. Create a network load balancer
  2. Update the health check config of the LB
  3. terraform apply

Important Factoids

References

@dhoogfr dhoogfr added the bug label Jan 15, 2025
@tf-oci-pub tf-oci-pub added the In-Progress Terraform Team is working on the reproduce & fix label Jan 15, 2025
@tf-oci-pub
Copy link
Member

Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you.

@antonyselvajohnson-thyineshma

This error indicates that the provided backend target OCID is invalid. Could you please check the target_id parameter in the backends and ensure it is either null or not being used if it is not required?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug In-Progress Terraform Team is working on the reproduce & fix
Projects
None yet
Development

No branches or pull requests

3 participants