summaryrefslogtreecommitdiff
path: root/heat/db
diff options
context:
space:
mode:
authorZane Bitter <zbitter@redhat.com>2018-06-29 16:06:21 -0400
committerZane Bitter <zbitter@redhat.com>2018-06-29 16:06:21 -0400
commitd12512ab17b35ca8adaba9eea407dda6c62c8137 (patch)
treed4536887f705ab7ed7715828a748891c79ec47e3 /heat/db
parent8d787642a54049e32353b20e7837c61adaadba27 (diff)
downloadheat-d12512ab17b35ca8adaba9eea407dda6c62c8137.tar.gz
Fix purging events from stacks converted to convergence
Stacks with convergence enabled are guaranteed not to have a backup stack, but they may have previously had backup stacks (prior to being converted to convergence) that remain only soft-deleted. In this case they may still fail the foreign key constraints in the database when purging events, so don't bail out of the workaround path when we encounter this situation. This will allow events to be purged from these stacks without having to wait for purge_deleted to purge the backup stacks first. Change-Id: If541d421a0a2af17ab937ec0a27bee6e4e9c1f6b Story: #2002643 Task: 22648
Diffstat (limited to 'heat/db')
-rw-r--r--heat/db/sqlalchemy/api.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/heat/db/sqlalchemy/api.py b/heat/db/sqlalchemy/api.py
index c633b311b..02ce9fd7b 100644
--- a/heat/db/sqlalchemy/api.py
+++ b/heat/db/sqlalchemy/api.py
@@ -1045,9 +1045,6 @@ def _all_backup_stack_ids(context, stack_id):
if stack is None:
LOG.error('Stack %s not found', stack_id)
return
- if stack.convergence:
- LOG.debug('Not searching for backup of convergence-enabled stack')
- return
is_backup = stack.name.endswith('*')
if is_backup: