Comment 10 for bug 1820337

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

Reviewed: https://review.openstack.org/647911
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=c8cb120964cb33950a80c9775ffbfe4eb5818153
Submitter: Zuul
Branch: stable/rocky

commit c8cb120964cb33950a80c9775ffbfe4eb5818153
Author: Matthew Booth <email address hidden>
Date: Fri Mar 22 11:47:32 2019 +0000

    Fix incomplete instance data returned after build failure

    This change fixes a race in _cleanup_build_artifacts. We were updating
    the instance mapping to point at the cell in which the instance was
    created before the instance record was complete, i.e. before the related
    BDMs and tags were created in the cell DB. Updating the instance mapping
    exposes the cell's version of the instance to the API. If the API happened
    to fetch it before it was finished being created it would return
    incomplete data.

    Co-Authored-By: Matt Riedemann <email address hidden>

    Conflicts:
          nova/tests/unit/conductor/test_conductor.py

    NOTE(mriedem): The conflict is due to not having change
    I0c764e441993e32aafef0b18049a425c3c832a50 in Rocky.

    Closes-Bug: #1820337
    Change-Id: If966eb1161c842ff49aa530e4482dbca87b61a3e
    (cherry picked from commit 64f6cbc9120e3c288f312eddc59452dee4998f93)
    (cherry picked from commit eec39762cf5343b354e2ac06a6682a7c3b4230c2)