Container Infrastructure Management Service for OpenStack
Go to file
Lingxian Kong bcffb630d3 [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
(cherry picked from commit 33cc92efe2)
2020-06-26 11:11:01 +00:00
api-ref/source update api-ref for clustertemplate 2019-10-16 07:58:40 +00:00
contrib Pass ssh public key as string 2019-10-08 07:56:52 +00:00
devstack Remove --os-url usage 2019-09-20 11:15:03 +10:00
doc Merge "[hca] Use ussuri-stable-1 as default for stable/ussuri" into stable/ussuri 2020-06-20 05:16:46 +00:00
dockerfiles Build new autoscaler containers 2020-04-14 09:05:00 +00:00
etc/magnum [fedora-atomic][k8s] Support default Keystone auth policy file 2019-06-11 11:57:15 +12:00
magnum [K8S] Delete all related load balancers before deleting cluster 2020-06-26 11:11:01 +00:00
playbooks Use ensure-* roles 2020-05-01 09:15:52 +00:00
releasenotes [K8S] Delete all related load balancers before deleting cluster 2020-06-26 11:11:01 +00:00
specs Document use of kube_tag label 2018-02-13 13:40:34 +00:00
tools containers: clean-up build code 2018-12-18 19:47:56 -05:00
.coveragerc Cleanup coverage configuration 2016-08-28 21:11:07 +01:00
.gitignore Switch to stestr 2018-07-13 13:05:52 +07:00
.gitreview Update .gitreview for stable/ussuri 2020-04-30 08:02:41 +00:00
.mailmap Initial commit from github (squashed) 2014-11-18 09:23:37 -05:00
.stestr.conf Switch to stestr 2018-07-13 13:05:52 +07:00
.testr.conf Remove minion dependency on master 2016-03-04 07:41:12 -05:00
.zuul.yaml Remove buildimage jobs 2020-02-26 08:46:50 +01:00
CONTRIBUTING.rst Update for Storyboard 2019-08-02 10:53:32 +02:00
HACKING.rst Add a hacking rule for string interpolation at logging 2017-07-15 14:49:45 +08:00
LICENSE Initial commit from github (squashed) 2014-11-18 09:23:37 -05:00
README.rst Add wiki Admin guide and Contributing notes link to README 2019-10-04 17:28:36 +08:00
babel.cfg Initial commit from github (squashed) 2014-11-18 09:23:37 -05:00
bindep.txt Add bindep.txt file 2018-04-20 14:40:19 -04:00
functional_creds.conf.sample Use keystone v3 for functional tests 2016-12-05 15:21:09 +01:00
lower-constraints.txt Cleanup py27 support 2020-04-05 09:45:17 +02:00
requirements.txt Cleanup py27 support 2020-04-05 09:45:17 +02:00
setup.cfg Cleanup py27 support 2020-04-05 09:45:17 +02:00
setup.py Cleanup py27 support 2020-04-05 09:45:17 +02:00
test-requirements.txt Cleanup py27 support 2020-04-05 09:45:17 +02:00
tox.ini Update TOX_CONSTRAINTS_FILE for stable/ussuri 2020-04-30 08:03:10 +00:00

README.rst

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: