When a resource failed, the stack state was set to FAILED and current
traversal was set to emoty string. The actual traversal was lost and
there was no way to delete the sync points belonging to the actual
traversal.
This change keeps the current traversal when you do a state set, so that
later you can delete the sync points belonging to it. Also, the current
traversal is set to empty when the stack has failed and there is no need
to rollback.
Closes-Bug: #1618155
Change-Id: Iec3922af92b70b0628fb94b7b2d597247e6d42c4
(cherry picked from commit 2e281df4280de5fdf5a56827d38845090e720392)
Reviewed: https:/ /review. openstack. org/372729 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=c7fe0ba5ee4 6dd97c5d07f8c45 df6c382f24306c
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit c7fe0ba5ee46dd9 7c5d07f8c45df6c 382f24306c
Author: Anant Patil <email address hidden>
Date: Wed Sep 14 16:59:55 2016 +0530
Fix sync point delete
When a resource failed, the stack state was set to FAILED and current
traversal was set to emoty string. The actual traversal was lost and
there was no way to delete the sync points belonging to the actual
traversal.
This change keeps the current traversal when you do a state set, so that
later you can delete the sync points belonging to it. Also, the current
traversal is set to empty when the stack has failed and there is no need
to rollback.
Closes-Bug: #1618155
Change-Id: Iec3922af92b70b 0628fb94b7b2d59 7247e6d42c4 df5a56827d38845 090e720392)
(cherry picked from commit 2e281df4280de5f