Browse Source

Merge "[k8s] Fix PreDeletionFailed if Heat stack is missing" into stable/ussuri

changes/62/744062/1
Zuul 4 days ago
committed by Gerrit Code Review
parent
commit
ee6b621ca4
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      magnum/common/octavia.py

+ 5
- 0
magnum/common/octavia.py View File

@@ -99,6 +99,11 @@ def delete_loadbalancers(context, cluster):
octavia_client_adm, remove_fip=True)
candidates.update(deleted)

# NOTE (brtknr): If stack has been deleted, cluster fails to delete
# because stack_id resolves to None. Return if that is the case.
if not cluster.stack_id:
return

# Get load balancers created for Kubernetes api/etcd
lbs = []
lb_resources = heat_client.resources.list(


Loading…
Cancel
Save