Do not attempt deletion of a DELETE_COMPLETE stack in service api
A stack may be in transient state where it is DELETE_COMPLETE, but has
has not actually been soft-deleted yet. For the purposes of
delete_stack in service.py, consider a DELETE_COMPLETE stack as
equivalent to a soft-deleted one (it soon will be), thereby avoiding a
race where we would have attempted to update the stack, running into a
foreign-key constraint issue for a non-existing user_cred.
Reviewed: https:/ /review. openstack. org/374918 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=fb26ec9da5e e6fd051d3d0b395 88972ecc86f1d9
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit fb26ec9da5ee6fd 051d3d0b3958897 2ecc86f1d9
Author: Crag Wolfe <email address hidden>
Date: Wed Sep 21 19:06:36 2016 -0400
Do not attempt deletion of a DELETE_COMPLETE stack in service api
A stack may be in transient state where it is DELETE_COMPLETE, but has
has not actually been soft-deleted yet. For the purposes of
delete_stack in service.py, consider a DELETE_COMPLETE stack as
equivalent to a soft-deleted one (it soon will be), thereby avoiding a
race where we would have attempted to update the stack, running into a
foreign-key constraint issue for a non-existing user_cred.
Change-Id: Iec021e6a0df262 d447fdf9ee17896 03c7a1c55f8 edb05612aad905e 2e7ae7c674)
Closes-Bug: #1626173
Closes-Bug: #1626107
(cherry picked from commit e1f161a19a9eef3