IBM-Cloud / terraform-provider-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
339 stars 663 forks source link

vpc security group load balancer interaction #3204

Closed powellquiring closed 2 years ago

powellquiring commented 2 years ago

@ujjwal-ibm

Terraform v1.0.9
on darwin_amd64
+ provider registry.terraform.io/ibm-cloud/ibm v1.34.0

See full configuration: https://github.com/powellquiring/tfbugs/tree/master/bug-lb-order

Notice:

resource ibm_is_security_group_target load_balancer_targets_front {
  security_group = ibm_is_security_group.load_balancer_targets.id
  target = ibm_is_lb.front.id
}

resource ibm_is_security_group_target load_balancer_targets_back {
  security_group = ibm_is_security_group.load_balancer_targets.id
  target = ibm_is_lb.back.id
}

Since there is a target = dependency this should mean that the ibm_is_security_group_target gets created after the load balancers and deleted before the load balancers.

But the problem is: The load balancer with ID 'r006-99b40e58-dd89-4695-a93a-258fdc3b2957' cannot be updated because its status is 'UPDATE_PENDING'.

And update pending is do to the deletion of these, right? : ibm_is_lb_pool, ibm_is_lb_listener, ibm_is_lb_pool_member

Fuller output:

local_file.ssh-key: Destroying... [id=bacb4c36b1f6c801f10c15d50e1bd97818cce73c]
local_file.postgresql: Destroying... [id=d91ab8a415ac60e3c8a8966f067389163df32361]
local_file.postgresql: Destruction complete after 0s
local_file.ssh-key: Destruction complete after 0s
ibm_is_security_group_target.load_balancer_targets_front: Destroying... [id=r006-9705dab6-f050-4636-8357-a24a62e1205e/r006-99b40e58-dd89-4695-a93a-258fdc3b2957]
ibm_is_lb_pool_member.front["1"]: Destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957/r006-056dbce8-fefb-4227-9d29-053c1a389103/r006-ae00779c-2b66-4d32-9f33-929704fb9290]
ibm_is_security_group_rule.load_balancer_targets_inbound: Destroying... [id=r006-9705dab6-f050-4636-8357-a24a62e1205e.r006-87754b02-a7c1-4a2d-94f1-62dcbad7fff1]
ibm_is_security_group_target.load_balancer_targets_instances_front["0"]: Destroying... [id=r006-9705dab6-f050-4636-8357-a24a62e1205e/0717-225ab884-c40f-4de4-9516-13898b40709b]
ibm_is_security_group_target.load_balancer_targets_back: Destroying... [id=r006-9705dab6-f050-4636-8357-a24a62e1205e/r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c9d]
ibm_is_floating_ip.front["0"]: Destroying... [id=r006-377e7526-44eb-479e-a45a-dd4d52b3ba8c]
ibm_is_security_group_rule.inbound_myip: Destroying... [id=r006-384580f5-e2fb-46ba-9726-a886143bda5d.r006-473403fb-85e0-4596-8f16-890322677e53]
ibm_is_lb_pool_member.back["0"]: Destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c9d/r006-efa23d3a-538d-4f1b-9ba2-5c50a64c2c51/r006-ddb44e60-b116-42c9-85ba-e8db52830e0b]
ibm_is_security_group_rule.load_balancer_targets_outbound: Destroying... [id=r006-9705dab6-f050-4636-8357-a24a62e1205e.r006-d947bc1a-016a-488d-a501-b5cd4cbdf6ba]
ibm_is_floating_ip.back["0"]: Destroying... [id=r006-fe71a261-09de-480e-89b5-15d550f70610]
ibm_is_security_group_rule.inbound_myip: Destruction complete after 1s
ibm_is_security_group_target.load_balancer_targets_instances_back["0"]: Destroying... [id=r006-9705dab6-f050-4636-8357-a24a62e1205e/0717-cd720323-69d3-459c-896e-8d582ac8c8e5]
ibm_is_security_group_rule.load_balancer_targets_inbound: Destruction complete after 1s
ibm_is_security_group_target.load_balancer_targets_instances_front["0"]: Destruction complete after 1s
ibm_is_lb_pool_member.back["1"]: Destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c9d/r006-efa23d3a-538d-4f1b-9ba2-5c50a64c2c51/r006-8dad6408-7961-48a2-be18-5fb3217cddd0]
ibm_is_security_group_target.load_balancer_targets_instances_back["1"]: Destroying... [id=r006-9705dab6-f050-4636-8357-a24a62e1205e/0727-5fe36d4f-27a5-4a1c-8ca3-cd49a51b5e52]
ibm_is_security_group_target.load_balancer_targets_instances_back["0"]: Destruction complete after 0s
ibm_is_security_group_rule.inbound_8000: Destroying... [id=r006-384580f5-e2fb-46ba-9726-a886143bda5d.r006-81b5a155-e3e7-481f-a6d0-6d4e767a6cae]
ibm_is_security_group_rule.load_balancer_targets_outbound: Destruction complete after 1s
ibm_is_lb_listener.front: Destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957/r006-bc419a10-b7ed-4a76-8647-bf6f98b59855]
ibm_is_security_group_rule.inbound_8000: Destruction complete after 1s
ibm_is_lb_listener.back: Destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c9d/r006-a6e61c87-55bc-445f-a21c-98da53af8f13]
ibm_is_security_group_target.load_balancer_targets_instances_back["1"]: Destruction complete after 1s
ibm_is_floating_ip.front["1"]: Destroying... [id=r006-d3f0532c-2982-4b57-8e2c-c6637ff2fa80]
ibm_is_security_group_target.load_balancer_targets_back: Destruction complete after 2s
ibm_is_security_group_target.load_balancer_targets_front: Destruction complete after 2s
ibm_is_security_group_target.load_balancer_targets_instances_front["1"]: Destroying... [id=r006-9705dab6-f050-4636-8357-a24a62e1205e/0727-f03bf862-5557-4407-a91e-4102d474f68b]
ibm_is_lb_pool_member.front["0"]: Destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957/r006-056dbce8-fefb-4227-9d29-053c1a389103/r006-9966390d-09d0-479a-a24a-7acb19ece3ea]
ibm_is_security_group_target.load_balancer_targets_instances_front["1"]: Destruction complete after 1s
ibm_is_floating_ip.back["1"]: Destroying... [id=r006-f50aff2c-a427-4000-a4a9-c6b573068220]
ibm_is_floating_ip.front["0"]: Still destroying... [id=r006-377e7526-44eb-479e-a45a-dd4d52b3ba8c, 10s elapsed]
ibm_is_lb_pool_member.front["1"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-ae00779c-2b66-4d32-9f33-929704fb9290, 10s elapsed]
ibm_is_floating_ip.back["0"]: Still destroying... [id=r006-fe71a261-09de-480e-89b5-15d550f70610, 10s elapsed]
ibm_is_lb_pool_member.back["0"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-ddb44e60-b116-42c9-85ba-e8db52830e0b, 10s elapsed]
ibm_is_lb_pool_member.back["1"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-8dad6408-7961-48a2-be18-5fb3217cddd0, 10s elapsed]
ibm_is_floating_ip.back["0"]: Destruction complete after 11s
ibm_is_floating_ip.front["0"]: Destruction complete after 11s
ibm_is_security_group.load_balancer_targets: Destroying... [id=r006-9705dab6-f050-4636-8357-a24a62e1205e]
ibm_is_lb_listener.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-bc419a10-b7ed-4a76-8647-bf6f98b59855, 10s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 10s elapsed]
ibm_is_floating_ip.front["1"]: Still destroying... [id=r006-d3f0532c-2982-4b57-8e2c-c6637ff2fa80, 10s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 10s elapsed]
ibm_is_floating_ip.back["1"]: Still destroying... [id=r006-f50aff2c-a427-4000-a4a9-c6b573068220, 10s elapsed]
ibm_is_floating_ip.front["1"]: Destruction complete after 11s
ibm_is_floating_ip.back["1"]: Destruction complete after 10s
ibm_is_lb_pool_member.back["0"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-ddb44e60-b116-42c9-85ba-e8db52830e0b, 20s elapsed]
ibm_is_lb_pool_member.front["1"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-ae00779c-2b66-4d32-9f33-929704fb9290, 20s elapsed]
ibm_is_lb_pool_member.back["1"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-8dad6408-7961-48a2-be18-5fb3217cddd0, 20s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-bc419a10-b7ed-4a76-8647-bf6f98b59855, 20s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 20s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 20s elapsed]
ibm_is_lb_pool_member.back["0"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-ddb44e60-b116-42c9-85ba-e8db52830e0b, 30s elapsed]
ibm_is_lb_pool_member.front["1"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-ae00779c-2b66-4d32-9f33-929704fb9290, 30s elapsed]
ibm_is_lb_pool_member.back["1"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-8dad6408-7961-48a2-be18-5fb3217cddd0, 30s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-bc419a10-b7ed-4a76-8647-bf6f98b59855, 30s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 30s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 30s elapsed]
ibm_is_lb_pool_member.front["1"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-ae00779c-2b66-4d32-9f33-929704fb9290, 40s elapsed]
ibm_is_lb_pool_member.back["0"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-ddb44e60-b116-42c9-85ba-e8db52830e0b, 40s elapsed]
ibm_is_lb_pool_member.back["1"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-8dad6408-7961-48a2-be18-5fb3217cddd0, 40s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-bc419a10-b7ed-4a76-8647-bf6f98b59855, 40s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 40s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 40s elapsed]
ibm_is_lb_pool_member.front["1"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-ae00779c-2b66-4d32-9f33-929704fb9290, 50s elapsed]
ibm_is_lb_pool_member.back["0"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-ddb44e60-b116-42c9-85ba-e8db52830e0b, 50s elapsed]
ibm_is_lb_pool_member.back["1"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-8dad6408-7961-48a2-be18-5fb3217cddd0, 50s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-bc419a10-b7ed-4a76-8647-bf6f98b59855, 50s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 50s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 50s elapsed]
ibm_is_lb_pool_member.front["1"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-ae00779c-2b66-4d32-9f33-929704fb9290, 1m0s elapsed]
ibm_is_lb_pool_member.back["0"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-ddb44e60-b116-42c9-85ba-e8db52830e0b, 1m0s elapsed]
ibm_is_lb_pool_member.back["1"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-8dad6408-7961-48a2-be18-5fb3217cddd0, 1m0s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-bc419a10-b7ed-4a76-8647-bf6f98b59855, 1m0s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 1m0s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 1m0s elapsed]
ibm_is_lb_pool_member.front["1"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-ae00779c-2b66-4d32-9f33-929704fb9290, 1m10s elapsed]
ibm_is_lb_pool_member.back["0"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-ddb44e60-b116-42c9-85ba-e8db52830e0b, 1m10s elapsed]
ibm_is_lb_pool_member.back["1"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-8dad6408-7961-48a2-be18-5fb3217cddd0, 1m10s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-bc419a10-b7ed-4a76-8647-bf6f98b59855, 1m10s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 1m10s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 1m10s elapsed]
ibm_is_lb_pool_member.back["0"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-ddb44e60-b116-42c9-85ba-e8db52830e0b, 1m20s elapsed]
ibm_is_lb_pool_member.front["1"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-ae00779c-2b66-4d32-9f33-929704fb9290, 1m20s elapsed]
ibm_is_lb_pool_member.back["1"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-8dad6408-7961-48a2-be18-5fb3217cddd0, 1m20s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-bc419a10-b7ed-4a76-8647-bf6f98b59855, 1m20s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 1m20s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 1m20s elapsed]
ibm_is_lb_pool_member.front["1"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-ae00779c-2b66-4d32-9f33-929704fb9290, 1m30s elapsed]
ibm_is_lb_pool_member.back["0"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-ddb44e60-b116-42c9-85ba-e8db52830e0b, 1m30s elapsed]
ibm_is_lb_pool_member.back["1"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-8dad6408-7961-48a2-be18-5fb3217cddd0, 1m30s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-bc419a10-b7ed-4a76-8647-bf6f98b59855, 1m30s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 1m30s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 1m30s elapsed]
ibm_is_lb_pool_member.back["0"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-ddb44e60-b116-42c9-85ba-e8db52830e0b, 1m40s elapsed]
ibm_is_lb_pool_member.front["1"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-ae00779c-2b66-4d32-9f33-929704fb9290, 1m40s elapsed]
ibm_is_lb_pool_member.back["1"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-8dad6408-7961-48a2-be18-5fb3217cddd0, 1m40s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-bc419a10-b7ed-4a76-8647-bf6f98b59855, 1m40s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 1m40s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 1m40s elapsed]
ibm_is_lb_pool_member.front["1"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-ae00779c-2b66-4d32-9f33-929704fb9290, 1m50s elapsed]
ibm_is_lb_pool_member.back["0"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-ddb44e60-b116-42c9-85ba-e8db52830e0b, 1m50s elapsed]
ibm_is_lb_pool_member.back["1"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-8dad6408-7961-48a2-be18-5fb3217cddd0, 1m50s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-bc419a10-b7ed-4a76-8647-bf6f98b59855, 1m50s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 1m50s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 1m50s elapsed]
ibm_is_lb_pool_member.back["0"]: Destruction complete after 1m52s
ibm_is_lb_pool_member.front["1"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-ae00779c-2b66-4d32-9f33-929704fb9290, 2m0s elapsed]
ibm_is_lb_pool_member.back["1"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-8dad6408-7961-48a2-be18-5fb3217cddd0, 2m0s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-bc419a10-b7ed-4a76-8647-bf6f98b59855, 2m0s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 2m0s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 2m0s elapsed]
ibm_is_lb_pool_member.front["1"]: Destruction complete after 2m3s
ibm_is_lb_pool_member.back["1"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-8dad6408-7961-48a2-be18-5fb3217cddd0, 2m10s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-bc419a10-b7ed-4a76-8647-bf6f98b59855, 2m10s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 2m10s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 2m10s elapsed]
ibm_is_lb_pool_member.back["1"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-8dad6408-7961-48a2-be18-5fb3217cddd0, 2m20s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-bc419a10-b7ed-4a76-8647-bf6f98b59855, 2m20s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 2m20s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 2m20s elapsed]
ibm_is_lb_pool_member.back["1"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-8dad6408-7961-48a2-be18-5fb3217cddd0, 2m30s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-bc419a10-b7ed-4a76-8647-bf6f98b59855, 2m30s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 2m30s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 2m30s elapsed]
ibm_is_lb_pool_member.back["1"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-8dad6408-7961-48a2-be18-5fb3217cddd0, 2m40s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-bc419a10-b7ed-4a76-8647-bf6f98b59855, 2m40s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 2m40s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 2m40s elapsed]
ibm_is_lb_pool_member.back["1"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-8dad6408-7961-48a2-be18-5fb3217cddd0, 2m50s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-bc419a10-b7ed-4a76-8647-bf6f98b59855, 2m50s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 2m50s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 2m50s elapsed]
ibm_is_lb_listener.front: Destruction complete after 2m58s
ibm_is_lb_pool_member.back["1"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-8dad6408-7961-48a2-be18-5fb3217cddd0, 3m0s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 3m0s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 3m0s elapsed]
ibm_is_lb_pool_member.back["1"]: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-8dad6408-7961-48a2-be18-5fb3217cddd0, 3m10s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 3m10s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 3m10s elapsed]
ibm_is_lb_pool_member.back["1"]: Destruction complete after 3m20s
ibm_is_instance.back["0"]: Destroying... [id=0717_ff22d223-e5a9-4d1b-9a16-c9cd2aa8f391]
ibm_is_instance.back["1"]: Destroying... [id=0727_3faab299-5056-43d5-9456-3430e98b0238]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 3m20s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 3m20s elapsed]
ibm_is_instance.back["1"]: Still destroying... [id=0727_3faab299-5056-43d5-9456-3430e98b0238, 10s elapsed]
ibm_is_instance.back["0"]: Still destroying... [id=0717_ff22d223-e5a9-4d1b-9a16-c9cd2aa8f391, 10s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 3m30s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 3m30s elapsed]
ibm_is_instance.back["1"]: Still destroying... [id=0727_3faab299-5056-43d5-9456-3430e98b0238, 20s elapsed]
ibm_is_instance.back["0"]: Still destroying... [id=0717_ff22d223-e5a9-4d1b-9a16-c9cd2aa8f391, 20s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 3m40s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 3m40s elapsed]
ibm_is_instance.back["1"]: Still destroying... [id=0727_3faab299-5056-43d5-9456-3430e98b0238, 30s elapsed]
ibm_is_instance.back["0"]: Still destroying... [id=0717_ff22d223-e5a9-4d1b-9a16-c9cd2aa8f391, 30s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 3m50s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 3m50s elapsed]
ibm_is_instance.back["0"]: Still destroying... [id=0717_ff22d223-e5a9-4d1b-9a16-c9cd2aa8f391, 40s elapsed]
ibm_is_instance.back["1"]: Still destroying... [id=0727_3faab299-5056-43d5-9456-3430e98b0238, 40s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 4m0s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 4m0s elapsed]
ibm_is_instance.back["1"]: Still destroying... [id=0727_3faab299-5056-43d5-9456-3430e98b0238, 50s elapsed]
ibm_is_instance.back["0"]: Still destroying... [id=0717_ff22d223-e5a9-4d1b-9a16-c9cd2aa8f391, 50s elapsed]
ibm_is_lb_listener.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-a6e61c87-55bc-445f-a21c-98da53af8f13, 4m10s elapsed]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 4m10s elapsed]
ibm_is_instance.back["0"]: Destruction complete after 54s
ibm_is_instance.back["1"]: Destruction complete after 56s
ibm_resource_key.postgresql: Destroying... [id=crn:v1:bluemix:public:databases-for-postgresql:us-south:a/713c783d9a507a53135fe6793c37cc74:30d7e3be-5937-473f-9316-fa5e96464f41:resource-key:7b71983f-b0dd-4f3c-a7c9-7c64b8f72090]
ibm_is_lb_listener.back: Destruction complete after 4m15s
ibm_is_lb_pool.back: Destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c9d/r006-efa23d3a-538d-4f1b-9ba2-5c50a64c2c51]
ibm_resource_key.postgresql: Destruction complete after 1s
ibm_database.postgresql: Destroying... [id=crn:v1:bluemix:public:databases-for-postgresql:us-south:a/713c783d9a507a53135fe6793c37cc74:30d7e3be-5937-473f-9316-fa5e96464f41::]
ibm_is_lb_pool_member.front["0"]: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-9966390d-09d0-479a-a24a-7acb19ece3ea, 4m20s elapsed]
ibm_is_lb_pool_member.front["0"]: Destruction complete after 4m25s
ibm_is_lb_pool.front: Destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957/r006-056dbce8-fefb-4227-9d29-053c1a389103]
ibm_is_instance.front["0"]: Destroying... [id=0717_adbf2acd-a8de-4e1f-bc9f-7a1a511f06ea]
ibm_is_instance.front["1"]: Destroying... [id=0727_d576ce02-e032-4b07-8ec0-b518cbf7101a]
ibm_is_lb_pool.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-efa23d3a-538d-4f1b-9ba2-5c50a64c2c51, 10s elapsed]
ibm_database.postgresql: Still destroying... [id=crn:v1:bluemix:public:databases-for-pos...30d7e3be-5937-473f-9316-fa5e96464f41::, 10s elapsed]
ibm_database.postgresql: Destruction complete after 11s
ibm_is_lb_pool.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-056dbce8-fefb-4227-9d29-053c1a389103, 10s elapsed]
ibm_is_instance.front["0"]: Still destroying... [id=0717_adbf2acd-a8de-4e1f-bc9f-7a1a511f06ea, 10s elapsed]
ibm_is_instance.front["1"]: Still destroying... [id=0727_d576ce02-e032-4b07-8ec0-b518cbf7101a, 10s elapsed]
ibm_is_lb_pool.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-efa23d3a-538d-4f1b-9ba2-5c50a64c2c51, 20s elapsed]
ibm_is_instance.front["1"]: Still destroying... [id=0727_d576ce02-e032-4b07-8ec0-b518cbf7101a, 20s elapsed]
ibm_is_instance.front["0"]: Still destroying... [id=0717_adbf2acd-a8de-4e1f-bc9f-7a1a511f06ea, 20s elapsed]
ibm_is_lb_pool.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-056dbce8-fefb-4227-9d29-053c1a389103, 20s elapsed]
ibm_is_lb_pool.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-efa23d3a-538d-4f1b-9ba2-5c50a64c2c51, 30s elapsed]
ibm_is_instance.front["0"]: Still destroying... [id=0717_adbf2acd-a8de-4e1f-bc9f-7a1a511f06ea, 30s elapsed]
ibm_is_instance.front["1"]: Still destroying... [id=0727_d576ce02-e032-4b07-8ec0-b518cbf7101a, 30s elapsed]
ibm_is_lb_pool.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-056dbce8-fefb-4227-9d29-053c1a389103, 30s elapsed]
ibm_is_lb_pool.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c...6-efa23d3a-538d-4f1b-9ba2-5c50a64c2c51, 40s elapsed]
ibm_is_lb_pool.back: Destruction complete after 45s
ibm_is_instance.front["0"]: Still destroying... [id=0717_adbf2acd-a8de-4e1f-bc9f-7a1a511f06ea, 40s elapsed]
ibm_is_instance.front["1"]: Still destroying... [id=0727_d576ce02-e032-4b07-8ec0-b518cbf7101a, 40s elapsed]
ibm_is_lb_pool.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b29...6-056dbce8-fefb-4227-9d29-053c1a389103, 40s elapsed]
ibm_is_lb_pool.front: Destruction complete after 45s
ibm_is_lb.front: Destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957]
ibm_is_instance.front["0"]: Still destroying... [id=0717_adbf2acd-a8de-4e1f-bc9f-7a1a511f06ea, 50s elapsed]
ibm_is_instance.front["1"]: Still destroying... [id=0727_d576ce02-e032-4b07-8ec0-b518cbf7101a, 50s elapsed]
ibm_is_instance.front["1"]: Destruction complete after 50s
ibm_is_instance.front["0"]: Destruction complete after 51s
ibm_is_ssh_key.generated_key: Destroying... [id=r006-2490bd9f-9c6b-4e4a-b764-e417900f716c]
ibm_is_lb.back: Destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c9d]
ibm_is_ssh_key.generated_key: Destruction complete after 1s
tls_private_key.ssh: Destroying... [id=8939792e0aebc1f92f49d6918b078ac814f0444a]
tls_private_key.ssh: Destruction complete after 0s
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 10s elapsed]
ibm_is_lb.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c9d, 10s elapsed]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 20s elapsed]
ibm_is_lb.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c9d, 20s elapsed]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 30s elapsed]
ibm_is_lb.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c9d, 30s elapsed]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 40s elapsed]
ibm_is_lb.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c9d, 40s elapsed]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 50s elapsed]
ibm_is_lb.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c9d, 50s elapsed]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 1m0s elapsed]
ibm_is_lb.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c9d, 1m0s elapsed]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 1m10s elapsed]
ibm_is_lb.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c9d, 1m10s elapsed]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 1m20s elapsed]
ibm_is_lb.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c9d, 1m20s elapsed]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 1m30s elapsed]
ibm_is_lb.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c9d, 1m30s elapsed]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 1m40s elapsed]
ibm_is_lb.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c9d, 1m40s elapsed]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 1m50s elapsed]
ibm_is_lb.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c9d, 1m50s elapsed]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 2m0s elapsed]
ibm_is_lb.back: Still destroying... [id=r006-41eed645-4f49-4a4f-9a1a-f1616f1f7c9d, 2m0s elapsed]
ibm_is_lb.back: Destruction complete after 2m1s
ibm_is_subnet.back["1"]: Destroying... [id=0727-9d878a9c-238c-47c7-b34f-16a484e97964]
ibm_is_subnet.back["0"]: Destroying... [id=0717-b3a40b8e-caf4-4786-a207-725fd9236e7f]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 2m10s elapsed]
ibm_is_subnet.back["0"]: Still destroying... [id=0717-b3a40b8e-caf4-4786-a207-725fd9236e7f, 10s elapsed]
ibm_is_subnet.back["1"]: Still destroying... [id=0727-9d878a9c-238c-47c7-b34f-16a484e97964, 10s elapsed]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 2m20s elapsed]
ibm_is_subnet.back["1"]: Still destroying... [id=0727-9d878a9c-238c-47c7-b34f-16a484e97964, 20s elapsed]
ibm_is_subnet.back["0"]: Still destroying... [id=0717-b3a40b8e-caf4-4786-a207-725fd9236e7f, 20s elapsed]
ibm_is_subnet.back["0"]: Destruction complete after 20s
ibm_is_subnet.back["1"]: Destruction complete after 21s
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 2m30s elapsed]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 2m40s elapsed]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 2m50s elapsed]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 3m0s elapsed]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 3m10s elapsed]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 3m20s elapsed]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 3m30s elapsed]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 3m40s elapsed]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 3m50s elapsed]
ibm_is_lb.front: Still destroying... [id=r006-99b40e58-dd89-4695-a93a-258fdc3b2957, 4m0s elapsed]
ibm_is_lb.front: Destruction complete after 4m2s
ibm_is_subnet.front["0"]: Destroying... [id=0717-9e5464ee-e996-404a-bef6-b280be69e87b]
ibm_is_subnet.front["1"]: Destroying... [id=0727-29c9f4d6-ade4-4188-b461-0eb2629352ac]
ibm_is_subnet.front["0"]: Still destroying... [id=0717-9e5464ee-e996-404a-bef6-b280be69e87b, 10s elapsed]
ibm_is_subnet.front["1"]: Still destroying... [id=0727-29c9f4d6-ade4-4188-b461-0eb2629352ac, 10s elapsed]
ibm_is_subnet.front["0"]: Still destroying... [id=0717-9e5464ee-e996-404a-bef6-b280be69e87b, 20s elapsed]
ibm_is_subnet.front["1"]: Still destroying... [id=0727-29c9f4d6-ade4-4188-b461-0eb2629352ac, 20s elapsed]
ibm_is_subnet.front["1"]: Destruction complete after 20s
ibm_is_subnet.front["0"]: Destruction complete after 25s
ibm_is_vpc_address_prefix.locations["1"]: Destroying... [id=r006-2376cfb4-4375-4e66-910e-1f240edb5bf8/r006-6261f7bc-66b0-4142-9e35-657870d97821]
ibm_is_vpc_address_prefix.locations["2"]: Destroying... [id=r006-2376cfb4-4375-4e66-910e-1f240edb5bf8/r006-ba5a610e-5382-47d8-bc34-eafd2331d3a5]
ibm_is_vpc_address_prefix.locations["0"]: Destroying... [id=r006-2376cfb4-4375-4e66-910e-1f240edb5bf8/r006-5ef40897-c6c4-4e0c-a453-efb59951ca02]
ibm_is_vpc_address_prefix.locations["2"]: Destruction complete after 1s
ibm_is_vpc_address_prefix.locations["1"]: Destruction complete after 1s
ibm_is_vpc_address_prefix.locations["0"]: Destruction complete after 2s
╷
│ Error: Error Deleting Security Group Targets : error communicating with LBaaS: The load balancer with ID 'r006-99b40e58-dd89-4695-a93a-258fdc3b2957' cannot be updated because its status is 'UPDATE_PENDING'.
│ {
│     "StatusCode": 409,
│     "Headers": {
│         "Cache-Control": [
│             "max-age=0, no-cache, no-store, must-revalidate"
│         ],
│         "Cf-Cache-Status": [
│             "DYNAMIC"
│         ],
│         "Cf-Ray": [
│             "69d913874e0cfdc1-PDX"
│         ],
│         "Content-Length": [
│             "470"
│         ],
│         "Content-Type": [
│             "application/json"
│         ],
│         "Date": [
│             "Wed, 13 Oct 2021 13:57:19 GMT"
│         ],
│         "Expect-Ct": [
│             "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""
│         ],
│         "Expires": [
│             "-1"
│         ],
│         "Pragma": [
│             "no-cache"
│         ],
│         "Server": [
│             "cloudflare"
│         ],
│         "Strict-Transport-Security": [
│             "max-age=31536000; includeSubDomains"
│         ],
│         "Vary": [
│             "Accept-Encoding"
│         ],
│         "X-Content-Type-Options": [
│             "nosniff"
│         ],
│         "X-Request-Id": [
│             "32b20d4d-23cb-4f94-85d6-10f6cd80b959"
│         ],
│         "X-Xss-Protection": [
│             "1; mode=block"
│         ]
│     },
│     "Result": {
│         "errors": [
│             {
│                 "code": "load_balancer_update_conflict",
│                 "message": "error communicating with LBaaS: The load balancer with ID 'r006-99b40e58-dd89-4695-a93a-258fdc3b2957' cannot be updated because its status is 'UPDATE_PENDING'.",
│                 "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-rias-error-messagesload_balancer_update_conflict",
│                 "target": {
│                     "name": "id",
│                     "type": "parameter",
│                     "value": "r006-99b40e58-dd89-4695-a93a-258fdc3b2957"
│                 }
│             }
│         ],
│         "trace": "32b20d4d-23cb-4f94-85d6-10f6cd80b959"
│     },
│     "RawResult": null
│ }
│

Tried again a few minutes later, all is good:

(test) ➜  vpc_tf git:(master) ✗ tfd
ibm_is_vpc.location: Refreshing state... [id=r006-2376cfb4-4375-4e66-910e-1f240edb5bf8]
ibm_is_security_group.load_balancer_targets: Refreshing state... [id=r006-9705dab6-f050-4636-8357-a24a62e1205e]

Note: Objects have changed outside of Terraform

Terraform detected the following changes made outside of Terraform since the last "terraform apply":

  # ibm_is_security_group.load_balancer_targets has been changed
  ~ resource "ibm_is_security_group" "load_balancer_targets" {
        id                      = "r006-9705dab6-f050-4636-8357-a24a62e1205e"
        name                    = "vpc3tier-load-balancer-targets"
      ~ rules                   = [
          - {
              - code       = 0
              - direction  = "outbound"
              - ip_version = "ipv4"
              - port_max   = 8000
              - port_min   = 8000
              - protocol   = "tcp"
              - remote     = "r006-9705dab6-f050-4636-8357-a24a62e1205e"
              - type       = 0
            },
          - {
              - code       = 0
              - direction  = "inbound"
              - ip_version = "ipv4"
              - port_max   = 8000
              - port_min   = 8000
              - protocol   = "tcp"
              - remote     = "r006-9705dab6-f050-4636-8357-a24a62e1205e"
              - type       = 0
            },
        ]
        tags                    = []
        # (7 unchanged attributes hidden)
    }
  # ibm_is_vpc.location has been changed
  ~ resource "ibm_is_vpc" "location" {
        id                          = "r006-2376cfb4-4375-4e66-910e-1f240edb5bf8"
        name                        = "vpc3tier"
      ~ security_group              = [
          ~ {
              ~ rules      = [
                    # (1 unchanged element hidden)
                    {
                        code       = 0
                        direction  = "inbound"
                        ip_version = "ipv4"
                        port_max   = 0
                        port_min   = 0
                        protocol   = "all"
                        remote     = "r006-384580f5-e2fb-46ba-9726-a886143bda5d"
                        rule_id    = "r006-fd3abcf3-ecac-4ad3-b36f-7e87900bc118"
                        type       = 0
                    },
                  - {
                      - code       = 0
                      - direction  = "inbound"
                      - ip_version = "ipv4"
                      - port_max   = 22
                      - port_min   = 22
                      - protocol   = "tcp"
                      - remote     = "0.0.0.0/0"
                      - rule_id    = "r006-473403fb-85e0-4596-8f16-890322677e53"
                      - type       = 0
                    },
                  - {
                      - code       = 0
                      - direction  = "inbound"
                      - ip_version = "ipv4"
                      - port_max   = 8000
                      - port_min   = 8000
                      - protocol   = "tcp"
                      - remote     = "0.0.0.0/0"
                      - rule_id    = "r006-81b5a155-e3e7-481f-a6d0-6d4e767a6cae"
                      - type       = 0
                    },
                ]
                # (2 unchanged elements hidden)
            },
          ~ {
              ~ rules      = [
                  - {
                      - code       = 0
                      - direction  = "outbound"
                      - ip_version = "ipv4"
                      - port_max   = 8000
                      - port_min   = 8000
                      - protocol   = "tcp"
                      - remote     = "r006-9705dab6-f050-4636-8357-a24a62e1205e"
                      - rule_id    = "r006-d947bc1a-016a-488d-a501-b5cd4cbdf6ba"
                      - type       = 0
                    },
                  - {
                      - code       = 0
                      - direction  = "inbound"
                      - ip_version = "ipv4"
                      - port_max   = 8000
                      - port_min   = 8000
                      - protocol   = "tcp"
                      - remote     = "r006-9705dab6-f050-4636-8357-a24a62e1205e"
                      - rule_id    = "r006-87754b02-a7c1-4a2d-94f1-62dcbad7fff1"
                      - type       = 0
                    },
                ]
                # (2 unchanged elements hidden)
            },
        ]
      ~ subnets                     = [
          - {
              - available_ipv4_address_count = 249
              - id                           = "0717-9e5464ee-e996-404a-bef6-b280be69e87b"
              - name                         = "vpc3tier-front-0"
              - status                       = "available"
              - total_ipv4_address_count     = 256
              - zone                         = "us-south-1"
            },
          - {
              - available_ipv4_address_count = 249
              - id                           = "0717-b3a40b8e-caf4-4786-a207-725fd9236e7f"
              - name                         = "vpc3tier-back-0"
              - status                       = "available"
              - total_ipv4_address_count     = 256
              - zone                         = "us-south-1"
            },
          - {
              - available_ipv4_address_count = 249
              - id                           = "0727-29c9f4d6-ade4-4188-b461-0eb2629352ac"
              - name                         = "vpc3tier-front-1"
              - status                       = "available"
              - total_ipv4_address_count     = 256
              - zone                         = "us-south-2"
            },
          - {
              - available_ipv4_address_count = 249
              - id                           = "0727-9d878a9c-238c-47c7-b34f-16a484e97964"
              - name                         = "vpc3tier-back-1"
              - status                       = "available"
              - total_ipv4_address_count     = 256
              - zone                         = "us-south-2"
            },
        ]
        tags                        = [
            "basename:vpc3tier",
            "dir:_users_pquiring_github.ibm.com_portfolio-solutions_scenario-3tier_vpc_tf",
        ]
        # (19 unchanged attributes hidden)
    }

Unless you have made equivalent changes to your configuration, or ignored the relevant attributes using ignore_changes, the following plan may include actions to undo or respond to these changes.

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  - destroy

Terraform will perform the following actions:

  # ibm_is_security_group.load_balancer_targets will be destroyed
  - resource "ibm_is_security_group" "load_balancer_targets" {
      - crn                     = "crn:v1:bluemix:public:is:us-south:a/713c783d9a507a53135fe6793c37cc74::security-group:r006-9705dab6-f050-4636-8357-a24a62e1205e" -> null
      - id                      = "r006-9705dab6-f050-4636-8357-a24a62e1205e" -> null
      - name                    = "vpc3tier-load-balancer-targets" -> null
      - resource_controller_url = "https://cloud.ibm.com/vpc-ext/network/securityGroups" -> null
      - resource_crn            = "crn:v1:bluemix:public:is:us-south:a/713c783d9a507a53135fe6793c37cc74::security-group:r006-9705dab6-f050-4636-8357-a24a62e1205e" -> null
      - resource_group          = "169229dc55634d9e90876d5a25a1d918" -> null
      - resource_group_name     = "3tier" -> null
      - resource_name           = "vpc3tier-load-balancer-targets" -> null
      - rules                   = [] -> null
      - tags                    = [] -> null
      - vpc                     = "r006-2376cfb4-4375-4e66-910e-1f240edb5bf8" -> null
    }

  # ibm_is_vpc.location will be destroyed
  - resource "ibm_is_vpc" "location" {
      - address_prefix_management   = "manual" -> null
      - classic_access              = false -> null
      - crn                         = "crn:v1:bluemix:public:is:us-south:a/713c783d9a507a53135fe6793c37cc74::vpc:r006-2376cfb4-4375-4e66-910e-1f240edb5bf8" -> null
      - cse_source_addresses        = [
          - {
              - address   = "10.16.232.149"
              - zone_name = "us-south-1"
            },
          - {
              - address   = "10.16.246.48"
              - zone_name = "us-south-2"
            },
          - {
              - address   = "10.249.215.2"
              - zone_name = "us-south-3"
            },
        ] -> null
      - default_network_acl         = "r006-b3d1d3f3-0440-46b2-9b04-e82f1f3ee3d3" -> null
      - default_network_acl_crn     = "crn:v1:bluemix:public:is:us-south:a/713c783d9a507a53135fe6793c37cc74::network-acl:r006-b3d1d3f3-0440-46b2-9b04-e82f1f3ee3d3" -> null
      - default_network_acl_name    = "reaffirm-boxlike-rinsing-facing" -> null
      - default_routing_table       = "r006-fe39114b-1d1e-4e0d-9db4-a4936250393a" -> null
      - default_routing_table_name  = "liquefy-turf-kinship-daunting" -> null
      - default_security_group      = "r006-384580f5-e2fb-46ba-9726-a886143bda5d" -> null
      - default_security_group_crn  = "crn:v1:bluemix:public:is:us-south:a/713c783d9a507a53135fe6793c37cc74::security-group:r006-384580f5-e2fb-46ba-9726-a886143bda5d" -> null
      - default_security_group_name = "unblended-gorged-chemicals-semisweet" -> null
      - id                          = "r006-2376cfb4-4375-4e66-910e-1f240edb5bf8" -> null
      - name                        = "vpc3tier" -> null
      - resource_controller_url     = "https://cloud.ibm.com/vpc-ext/network/vpcs" -> null
      - resource_crn                = "crn:v1:bluemix:public:is:us-south:a/713c783d9a507a53135fe6793c37cc74::vpc:r006-2376cfb4-4375-4e66-910e-1f240edb5bf8" -> null
      - resource_group              = "169229dc55634d9e90876d5a25a1d918" -> null
      - resource_group_name         = "3tier" -> null
      - resource_name               = "vpc3tier" -> null
      - resource_status             = "available" -> null
      - security_group              = [
          - {
              - group_id   = "r006-384580f5-e2fb-46ba-9726-a886143bda5d"
              - group_name = "unblended-gorged-chemicals-semisweet"
              - rules      = [
                  - {
                      - code       = 0
                      - direction  = "outbound"
                      - ip_version = "ipv4"
                      - port_max   = 0
                      - port_min   = 0
                      - protocol   = "all"
                      - remote     = "0.0.0.0/0"
                      - rule_id    = "r006-83cb6cea-1795-4a3c-9439-4a8bd3a0f0b8"
                      - type       = 0
                    },
                  - {
                      - code       = 0
                      - direction  = "inbound"
                      - ip_version = "ipv4"
                      - port_max   = 0
                      - port_min   = 0
                      - protocol   = "all"
                      - remote     = "r006-384580f5-e2fb-46ba-9726-a886143bda5d"
                      - rule_id    = "r006-fd3abcf3-ecac-4ad3-b36f-7e87900bc118"
                      - type       = 0
                    },
                ]
            },
          - {
              - group_id   = "r006-9705dab6-f050-4636-8357-a24a62e1205e"
              - group_name = "vpc3tier-load-balancer-targets"
              - rules      = []
            },
        ] -> null
      - status                      = "available" -> null
      - subnets                     = [] -> null
      - tags                        = [
          - "basename:vpc3tier",
          - "dir:_users_pquiring_github.ibm.com_portfolio-solutions_scenario-3tier_vpc_tf",
        ] -> null
    }

Plan: 0 to add, 0 to change, 2 to destroy.

Changes to Outputs:
ibm_is_security_group.load_balancer_targets: Destroying... [id=r006-9705dab6-f050-4636-8357-a24a62e1205e]
ibm_is_security_group.load_balancer_targets: Destruction complete after 3s
ibm_is_vpc.location: Destroying... [id=r006-2376cfb4-4375-4e66-910e-1f240edb5bf8]
ibm_is_vpc.location: Still destroying... [id=r006-2376cfb4-4375-4e66-910e-1f240edb5bf8, 10s elapsed]
ibm_is_vpc.location: Destruction complete after 11s

Destroy complete! Resources: 2 destroyed.
astha-jain commented 2 years ago

@powellquiring @ujjwal-ibm There is a PR #3180 in the affected area. Please see if this helps.

powellquiring commented 2 years ago

Maybe that fix is dealing with the load balancer modification while the load balancer is UPDATE_PENDING Another fix is likely needed to deal with the security group target failing because the load balancer is UPDATE_PENDING

powellquiring commented 2 years ago

Created a simpler cut down test: https://github.com/powellquiring/tfbugs/tree/master/bug-lb-order Consider adding it to the regression suite.

powellquiring commented 2 years ago

Added version information:

Terraform v1.0.9
on darwin_amd64
+ provider registry.terraform.io/ibm-cloud/ibm v1.34.0

Tried again, here is the end of the log:

Plan: 0 to add, 0 to change, 16 to destroy.
ibm_is_security_group_target.load_balancer_targets_front: Destroying... [id=r014-a97833fd-45a7-41f5-b27b-126afc8f2e3d/r014-b0dffedf-675d-4c33-abea-9b177e94e354]
ibm_is_security_group_rule.inbound_8000: Destroying... [id=r014-e30bb03e-b505-46d0-a545-ea3639ff7462.r014-757894db-e407-4c42-9881-4b9898beec56]
ibm_is_subnet.back["1"]: Destroying... [id=0767-9ecc53fb-0981-4f23-8c3d-b2cc15cb0345]
ibm_is_subnet.back["0"]: Destroying... [id=0757-5ee3f0be-799f-432f-b055-2ea67877d350]
ibm_is_security_group_rule.inbound_8000: Destruction complete after 1s
ibm_is_subnet.back["1"]: Still destroying... [id=0767-9ecc53fb-0981-4f23-8c3d-b2cc15cb0345, 10s elapsed]
ibm_is_subnet.back["0"]: Still destroying... [id=0757-5ee3f0be-799f-432f-b055-2ea67877d350, 10s elapsed]
ibm_is_subnet.back["1"]: Destruction complete after 15s
ibm_is_subnet.back["0"]: Destruction complete after 16s
╷
│ Error: error Deleting Security Group Targets : error communicating with LBaaS: The load balancer with ID 'r014-b0dffedf-675d-4c33-abea-9b177e94e354' cannot be updated because its status is 'UPDATE_PENDING'.
│ {
│     "StatusCode": 409,
│     "Headers": {
powellquiring commented 2 years ago

Tried in eu-de:

Plan: 0 to add, 0 to change, 16 to destroy.
ibm_is_security_group_target.load_balancer_targets_front: Destroying... [id=r010-2732e991-1a99-4d06-81b3-2025b0579438/r010-544d8790-b059-4cf2-852b-844bd79ee9cb]
ibm_is_security_group_rule.inbound_8000: Destroying... [id=r010-835be93f-4ede-4c43-8f83-f81c6edc7527.r010-9505916b-dd2d-4ca4-995c-a6de497affdf]
ibm_is_subnet.back["1"]: Destroying... [id=02c7-2d3e1f8c-44fd-420b-a7c4-58909df8ea62]
ibm_is_subnet.back["0"]: Destroying... [id=02b7-ece51b67-04de-48ea-ba71-97b50415ce41]
ibm_is_security_group_rule.inbound_8000: Destruction complete after 1s
ibm_is_security_group_target.load_balancer_targets_front: Destruction complete after 3s
ibm_is_lb_listener.front: Destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9cb/r010-00c6257c-542c-4357-8165-106155a99afe]
ibm_is_security_group_rule.load_balancer_targets_inbound: Destroying... [id=r010-2732e991-1a99-4d06-81b3-2025b0579438.r010-cb1e5f83-ead5-4c58-8da5-545854492683]
ibm_is_security_group_rule.load_balancer_targets_outbound: Destroying... [id=r010-2732e991-1a99-4d06-81b3-2025b0579438.r010-d526ab3c-bb7d-406d-ac28-258a495dac62]
ibm_is_security_group_rule.load_balancer_targets_inbound: Destruction complete after 2s
ibm_is_security_group_rule.load_balancer_targets_outbound: Destruction complete after 2s
ibm_is_security_group.load_balancer_targets: Destroying... [id=r010-2732e991-1a99-4d06-81b3-2025b0579438]
ibm_is_subnet.back["0"]: Still destroying... [id=02b7-ece51b67-04de-48ea-ba71-97b50415ce41, 10s elapsed]
ibm_is_subnet.back["1"]: Still destroying... [id=02c7-2d3e1f8c-44fd-420b-a7c4-58909df8ea62, 10s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9...0-00c6257c-542c-4357-8165-106155a99afe, 10s elapsed]
ibm_is_subnet.back["1"]: Destruction complete after 17s
ibm_is_subnet.back["0"]: Destruction complete after 17s
ibm_is_lb_listener.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9...0-00c6257c-542c-4357-8165-106155a99afe, 20s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9...0-00c6257c-542c-4357-8165-106155a99afe, 30s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9...0-00c6257c-542c-4357-8165-106155a99afe, 40s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9...0-00c6257c-542c-4357-8165-106155a99afe, 50s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9...0-00c6257c-542c-4357-8165-106155a99afe, 1m0s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9...0-00c6257c-542c-4357-8165-106155a99afe, 1m10s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9...0-00c6257c-542c-4357-8165-106155a99afe, 1m20s elapsed]
ibm_is_lb_listener.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9...0-00c6257c-542c-4357-8165-106155a99afe, 1m30s elapsed]
ibm_is_lb_listener.front: Destruction complete after 1m36s
ibm_is_lb_pool.front: Destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9cb/r010-1d7648e9-7208-45d5-ba62-730a03177eaf]
ibm_is_lb_pool.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9...0-1d7648e9-7208-45d5-ba62-730a03177eaf, 10s elapsed]
ibm_is_lb_pool.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9...0-1d7648e9-7208-45d5-ba62-730a03177eaf, 20s elapsed]
ibm_is_lb_pool.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9...0-1d7648e9-7208-45d5-ba62-730a03177eaf, 30s elapsed]
ibm_is_lb_pool.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9...0-1d7648e9-7208-45d5-ba62-730a03177eaf, 40s elapsed]
ibm_is_lb_pool.front: Destruction complete after 45s
ibm_is_lb.front: Destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9cb]
ibm_is_lb.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9cb, 10s elapsed]
ibm_is_lb.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9cb, 20s elapsed]
ibm_is_lb.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9cb, 30s elapsed]
ibm_is_lb.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9cb, 40s elapsed]
ibm_is_lb.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9cb, 50s elapsed]
ibm_is_lb.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9cb, 1m0s elapsed]
ibm_is_lb.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9cb, 1m10s elapsed]
ibm_is_lb.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9cb, 1m20s elapsed]
ibm_is_lb.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9cb, 1m30s elapsed]
ibm_is_lb.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9cb, 1m40s elapsed]
ibm_is_lb.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9cb, 1m50s elapsed]
ibm_is_lb.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9cb, 2m0s elapsed]
ibm_is_lb.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9cb, 2m10s elapsed]
ibm_is_lb.front: Still destroying... [id=r010-544d8790-b059-4cf2-852b-844bd79ee9cb, 2m20s elapsed]
ibm_is_lb.front: Destruction complete after 2m30s
ibm_is_subnet.front["0"]: Destroying... [id=02b7-3a6193a6-b1e0-4e26-a6df-a8e1461f8c2e]
ibm_is_subnet.front["1"]: Destroying... [id=02c7-f4f4f169-4741-4949-b857-01f25eef429e]
ibm_is_subnet.front["0"]: Still destroying... [id=02b7-3a6193a6-b1e0-4e26-a6df-a8e1461f8c2e, 10s elapsed]
ibm_is_subnet.front["1"]: Still destroying... [id=02c7-f4f4f169-4741-4949-b857-01f25eef429e, 10s elapsed]
ibm_is_subnet.front["1"]: Destruction complete after 16s
ibm_is_subnet.front["0"]: Destruction complete after 16s
ibm_is_vpc_address_prefix.locations["2"]: Destroying... [id=r010-3f401f41-c498-40ce-8fc4-a2b5872b46a6/r010-0c19e11b-e27e-4d93-a60d-9b2bfec26633]
ibm_is_vpc_address_prefix.locations["0"]: Destroying... [id=r010-3f401f41-c498-40ce-8fc4-a2b5872b46a6/r010-f7b63fe2-a174-49e1-95a7-80af4d00deaf]
ibm_is_vpc_address_prefix.locations["1"]: Destroying... [id=r010-3f401f41-c498-40ce-8fc4-a2b5872b46a6/r010-3bcdd30a-85c0-47e4-99b2-c00f4efb9b14]
ibm_is_vpc_address_prefix.locations["0"]: Destruction complete after 2s
ibm_is_vpc_address_prefix.locations["2"]: Destruction complete after 2s
ibm_is_vpc_address_prefix.locations["1"]: Destruction complete after 3s
╷
│ Error: Error Deleting Security Group Targets : error communicating with LBaaS: The load balancer with ID 'r010-544d8790-b059-4cf2-852b-844bd79ee9cb' cannot be updated because its status is 'UPDATE_PENDING'.
│ {
│     "StatusCode": 409,
│     "Headers": {
│         "Cache-Control": [
│             "max-age=0, no-cache, no-store, must-revalidate"
│         ],
│         "Cf-Cache-Status": [
│             "DYNAMIC"
│         ],
│         "Cf-Ray": [
│             "6a025a4b282afd99-PDX"
│         ],
│         "Content-Length": [
│             "470"
│         ],
│         "Content-Type": [
│             "application/json"
│         ],
│         "Date": [
│             "Mon, 18 Oct 2021 14:10:54 GMT"
│         ],
│         "Expect-Ct": [
│             "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""
│         ],
│         "Expires": [
│             "-1"
│         ],
│         "Pragma": [
│             "no-cache"
│         ],
│         "Server": [
│             "cloudflare"
│         ],
│         "Strict-Transport-Security": [
│             "max-age=31536000; includeSubDomains"
│         ],
│         "Vary": [
│             "Accept-Encoding"
│         ],
│         "X-Content-Type-Options": [
│             "nosniff"
│         ],
│         "X-Request-Id": [
│             "256eaef2-60cf-4c62-a04b-111c80092d21"
│         ],
│         "X-Xss-Protection": [
│             "1; mode=block"
│         ]
│     },
│     "Result": {
│         "errors": [
│             {
│                 "code": "load_balancer_update_conflict",
│                 "message": "error communicating with LBaaS: The load balancer with ID 'r010-544d8790-b059-4cf2-852b-844bd79ee9cb' cannot be updated because its status is 'UPDATE_PENDING'.",
│                 "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-rias-error-messagesload_balancer_update_conflict",
│                 "target": {
│                     "name": "id",
│                     "type": "parameter",
│                     "value": "r010-544d8790-b059-4cf2-852b-844bd79ee9cb"
│                 }
│             }
│         ],
│         "trace": "256eaef2-60cf-4c62-a04b-111c80092d21"
│     },
│     "RawResult": null
│ }
│
│
powellquiring commented 2 years ago

Right after the terraform apply is completed I noticed that the load balancer is in the update_pending state.

Apply complete! Resources: 16 added, 0 changed, 0 destroyed.
+ ibmcloud is load-balancers
+ grep update_pending
r010-cac1227a-722c-4cc6-b4b6-d57ba3806435   bug00-front   Application   bug00-front-0, bug00-front-1   true        update_pending     online             default
+ ibmcloud is load-balancers
Listing load balancers for generation 2 compute in resource group default and region eu-de under account Powell Quiring's Account as user pquiring@us.ibm.com...
ID                                          Name          Family        Subnets                        Is public   Provision status   Operating status   Resource group
r010-cac1227a-722c-4cc6-b4b6-d57ba3806435   bug00-front   Application   bug00-front-0, bug00-front-1   true        update_pending     online             default

I think this is causing the previous error message.

But the previous error message is confusing. What does this mean?

│ Error: Error Deleting Security Group Targets : error communicating with LBaaS: The load balancer with ID 'r010-544d8790-b059-4cf2-852b-844bd79ee9cb' cannot be updated because its status is 'UPDATE_PENDING'.

│                 "message": "error communicating with LBaaS: The load balancer with ID 'r010-544d8790-b059-4cf2-852b-844bd79ee9cb' cannot be updated because its status is 'UPDATE_PENDING'.",

What resource action is returning this message? It mentions Error Deleting Security Group Targets. Is that this?

ibm_is_security_group_target.load_balancer_targets_front: Destroying... [id=r010-2732e991-1a99-4d06-81b3-2025b0579438/r010-544d8790-b059-4cf2-852b-844bd79ee9cb]
...
ibm_is_security_group_target.load_balancer_targets_front: Destruction complete after 3s

Why is the Destruction complete and not an error?

powellquiring commented 2 years ago

This issue can no longer be reproduced.