You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to add nodes to a bigip_ltm_pool there appears to be limited validation and error checking which results in incorrect output, and subsequent runs attempt to correct and silently fail.
This code will suggest that it added two nodes..
Invalid Names
No errors are thrown for either node below, the first one is invalid for no domain, neither are real nodes. Additionally they are missing service nodes which makes them ineligible to be added.
Nodes can be defined without a service port, and the bigip_ltm_pool provider does not return a failure in adding them, similar to the error above.
Idempotency
Even when valid node names are used, the ID seems to change each run and causes Terraform to state that the nodes were updated (and likely were disruptively added/removed from the pool.
Note the F5 seemingly is returning node names without the domain below, which Terraform seemingly removes and replaces with the names containing a domain prefix.
In terms of idempotency, I have a PR on the upstream library to address this, scottdware/go-bigip#31. I'll get the required changes in here once it's accepted there.
When attempting to add nodes to a
bigip_ltm_pool
there appears to be limited validation and error checking which results in incorrect output, and subsequent runs attempt to correct and silently fail.This code will suggest that it added two nodes..
Invalid Names
No errors are thrown for either node below, the first one is invalid for no domain, neither are real nodes. Additionally they are missing service nodes which makes them ineligible to be added.
Service Port Missing
Nodes can be defined without a service port, and the
bigip_ltm_pool
provider does not return a failure in adding them, similar to the error above.Idempotency
Even when valid node names are used, the ID seems to change each run and causes Terraform to state that the nodes were updated (and likely were disruptively added/removed from the pool.
Note the F5 seemingly is returning node names without the domain below, which Terraform seemingly removes and replaces with the names containing a domain prefix.
The text was updated successfully, but these errors were encountered: