Comment 2 for bug 1508390

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/238106
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=68bf3fcaad0fbaa932c719ce587266276a9cdd55
Submitter: Jenkins
Branch: master

commit 68bf3fcaad0fbaa932c719ce587266276a9cdd55
Author: Thomas Herve <email address hidden>
Date: Wed Oct 21 16:00:08 2015 +0200

    Fix race condition in stack listing

    When listing stacks, we first load them from the database, and then we
    load their template in a different transaction. If a stack is deleted in
    the mean time, loading the template will raise a NotFound exception, and
    will make the listing returns NotFound, instead of ignoring that stack.
    This patch handles the exception and continue to try to load stacks.

    Change-Id: Iba6db81e3c10310955928fe723b84b5f62fc3fc1
    Closes-Bug: #1508390