Container Infrastructure Management Service for OpenStack
Go to file
Mark Goddard 8018bf9124 Fix cluster deletion when load balancers don't exist
During cluster deletion, magnum tries to delete the cluster's load
balancers in advance of deleting the heat stack. If these load balancers
do not exist for some reason, the cluster deletion will fail with an
error such as the following:

    Failed to pre-delete resources for cluster
    748b628a-2cd8-456f-8aee-c93804b2099b, error: list indices must be
    integers or slices, not str.

This happens because the heat stack has the physical_resource_id set to
None for the load balancer, which causes the load_balancer_show method
of octavia client to GET all load balancers, rather than just one. The
returned data is a list, rather than a dict, leading to the error above.

This change fixes the issue by checking if physical_resource_id is set
to None, and skipping the load balancer deletion if so.

Change-Id: I8f4ca497a01ad04db6cb6c4bc81caed0d714b5a6
Story: 2008548
Task: 41669
2021-01-22 15:22:45 +00:00
api-ref/source [k8s] Support CA certs rotate 2020-08-24 16:31:58 +12:00
contrib Add master_lb_enabled to cluster 2020-07-21 11:07:33 +12:00
devstack CI: Install debianutils and vim 2020-11-27 12:45:59 +00:00
doc Fix syntax error in default rolesync configmap 2020-08-31 21:58:30 +12:00
dockerfiles [hca] Use fedora:rawhide now that greenlet 0.4.16 is released 2020-06-05 08:40:23 +00:00
etc/magnum [fedora-atomic][k8s] Support default Keystone auth policy file 2019-06-11 11:57:15 +12:00
magnum Fix cluster deletion when load balancers don't exist 2021-01-22 15:22:45 +00:00
playbooks ci: Log in to DockerHub using docker_login 2020-08-26 17:05:30 +02:00
releasenotes Fix cluster deletion when load balancers don't exist 2021-01-22 15:22:45 +00:00
specs Document use of kube_tag label 2018-02-13 13:40:34 +00:00
tools [ci] Use stestr for coverage and fail if below 90% 2020-07-31 14:56:40 +00:00
.coveragerc Cleanup coverage configuration 2016-08-28 21:11:07 +01:00
.gitignore Add fedora coreos cluster template to contributor docs 2020-07-30 12:20:39 +12:00
.gitreview OpenDev Migration Patch 2019-04-19 19:44:16 +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
.zuul.yaml ci: Update dockerhub password 2020-11-05 10:44:51 +00:00
CONTRIBUTING.rst Ussuri contributor docs community goal 2020-04-21 00:42:46 +00: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 CI: Install debianutils and vim 2020-11-27 12:45:59 +00:00
functional_creds.conf.sample Use keystone v3 for functional tests 2016-12-05 15:21:09 +01:00
lower-constraints.txt Fix gate - update lower-constraints 2021-01-04 09:31:37 +00:00
requirements.txt Fix gate - update lower-constraints 2021-01-04 09:31:37 +00:00
setup.cfg Fix gate - update lower-constraints 2021-01-04 09:31:37 +00:00
setup.py Cleanup py27 support 2020-04-05 09:45:17 +02:00
test-requirements.txt Fix gate - update lower-constraints 2021-01-04 09:31:37 +00:00
tox.ini Fix gate - update lower-constraints 2021-01-04 09:31:37 +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: