Comment 10 for bug 1719915

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

Reviewed: https://review.openstack.org/508872
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=aabf0b0bf60c513accc32a5084bb42093b65eb31
Submitter: Zuul
Branch: stable/pike

commit aabf0b0bf60c513accc32a5084bb42093b65eb31
Author: Balazs Gibizer <email address hidden>
Date: Wed Sep 27 17:56:17 2017 +0200

    Fix race in delete allocation in ServerMovingTests

    When an instance is deleted the allocation of that instance is freed
    after the instance is destroyed in the db. The functional tests that
    asserting resource allocation after instance delete are waiting for
    the instance to disappear from the REST API. This made such tests
    racy.

    Fortunately the instance.delete.end notification is emitted after
    the instance allocation is freed. This patch fixes the race in the
    test by waiting for the instance.delete.end notification before
    asserting that the allocation is freed properly.

    Change-Id: I4ffd8eae73600eb2d4f6929ee6a7768adb80081d
    Closes-Bug: #1719915
    (cherry picked from commit 8a435c081df1653620cff5918ea66643d3487fd7)