Lingxian Kong 33cc92efe2 [K8S] Delete all related load balancers before deleting cluster
When deleting cluster, Magnum only deletes the load balancers for
Kubernetes services/ingresses before deleting Heat stack. The process of
stack deletion is to delete resources in dependencies, which means, for
Octavia resources, member is deleted first, then pool, listener, and
finally load balancer. The whole process is error-prone, especially
Octavia controller needs to talk to amphora for each API call before
deleting load balancer, if any step fails, the deletion operation will
fail.

Octavia provides cascade deletion API[1] for the load balancer, which
could delete all the related resources in one API call and doesn't
involve communication between Octavia controller and amphora instance.

This patch deletes the api/etcd load balancers (if applicable) before
deleting Heat stack, making the cluster deletion process more robust.

[1]: https://docs.openstack.org/api-ref/load-balancer/v2/index.html?expanded=remove-a-load-balancer-detail#remove-a-load-balancer

story: 2007657
task: 39743
Change-Id: Ibe8f788559d0977475d0991fc99ad91ccfd7dca7
2020-05-12 09:48:11 +00:00
2018-02-13 13:40:34 +00:00
2018-12-18 19:47:56 -05:00
2016-08-28 21:11:07 +01:00
2018-07-13 13:05:52 +07:00
2019-04-19 19:44:16 +00:00
2014-11-18 09:23:37 -05:00
2018-07-13 13:05:52 +07:00
2016-03-04 07:41:12 -05:00
2020-04-30 08:04:30 +00:00
2018-04-20 14:40:19 -04:00
2014-11-18 09:23:37 -05:00
2020-04-05 09:45:17 +02:00
2020-04-05 09:45:17 +02:00
2020-05-02 07:48:13 -05:00
2020-04-05 09:45:17 +02:00

Team and repository tags

image

Magnum

Magnum is an OpenStack project which offers container orchestration engines for deploying and managing containers as first class resources in OpenStack.

For more information, please refer to the following resources:

Description
Container Infrastructure Management Service for OpenStack
Readme 94 MiB
Languages
Python 73%
Shell 26.7%
Dockerfile 0.3%