Open sbrinkerhoff opened 7 years ago
@sbrinkerhoff What do you mean by the following?
first one is invalid for no domain
Just that it doesn't include the partition on it?
In terms of idempotency, I have a PR on the upstream library to address this, https://github.com/scottdware/go-bigip/pull/31. I'll get the required changes in here once it's accepted there.
@jakauppila do you have a binary available of the bigip provider with this idempotency fix? I've been struggling to build the solution.
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.