Comment 9 for bug 1940812

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/nova/+/828839
Committed: https://opendev.org/openstack/nova/commit/fc20dc2ea23d511a0f741901d7f03135bb269165
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit fc20dc2ea23d511a0f741901d7f03135bb269165
Author: Balazs Gibizer <email address hidden>
Date: Mon Aug 23 10:56:58 2021 +0200

    Avoid unbound instance_uuid var during delete

    The patch I03cf285ad83e09d88cdb702a88dfed53c01610f8 fixed most of the
    possible cases for this to happen but missed one. An early enough
    exception during _delete() can cause that the instance_uuid never gets
    defined but then we try to use it during the finally block. This patch
    moves the saving of the instance_uuid to the top of the try block to
    avoid the issue.

    Change-Id: Ib3073d7f595c8927532b7c49fc7e5ffe80d508b9
    Closes-Bug: #1940812
    Related-Bug: #1914777
    (cherry picked from commit 14e43f385e6d243b6efd11a777d082e63b66367c)
    (cherry picked from commit 00cba396134846dbbcf68cc9cf08e80618322bbe)