terraform-provider-bigip icon indicating copy to clipboard operation
terraform-provider-bigip copied to clipboard

Allow definiting Status, enabled or disabled, in pool attachment

Open DavidGamba opened this issue 6 years ago • 3 comments

Currently, there is no way to manage pool member status through Terraform.

I set the status to disabled when I am migrating nodes and want the connections to gracefully drain before removing them from the pool.

I am assuming the place to do this would be the pool attachment resource.

DavidGamba avatar Jun 06 '19 21:06 DavidGamba

I tried setting state = "user-down" on the bigip_ltm_node to see if it would affect things.

If I only create the node without attaching it to a pool, the node is properly set to disabled.

However, if I specify the node and attach it to a pool, the node ignores the state parameter and is up (even though Terraform state shows state as user-down.)

earchibald-lv avatar Dec 16 '19 22:12 earchibald-lv

@earchibald-lv we tried same scenario manually and observed below things.

when attaching any ltm node to a ltm pool, bigip will not consider current state of node.

we have to explicitly set node state as shown below snapshot.

image

image

we can add node_status attribute in "pool attachment resource" which user can add explicitly based on the node status.

RavinderReddyF5 avatar Dec 17 '19 11:12 RavinderReddyF5

Is this being looked into at all? This type of lacking support makes it impossible to manage the F5 with a tool like Terraform beyond initial configuration. When I choose 'user-up' or 'user-down' for the node, it either sets the node state to forced offline or disabled. Neither of them show the node as enabled.

Even if that worked, you can't only rely on this for gracefully draining connections since sometimes a node is part of multiple pools and disabling an entire node is not an option. Why is there no way to configure state through the pool membership?

rleonetti avatar Sep 23 '20 17:09 rleonetti

Hi, closing this request now. Please re-open if required or send an email to [email protected]. Thanks!

KrithikaChidambaram avatar Feb 21 '23 12:02 KrithikaChidambaram