Comment 3 for bug 1715462

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

Reviewed: https://review.openstack.org/501408
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=bf0f5d475458a67a12000ff49a8c5285c3ac9e45
Submitter: Jenkins
Branch: master

commit bf0f5d475458a67a12000ff49a8c5285c3ac9e45
Author: Mohammed Naser <email address hidden>
Date: Wed Sep 6 15:19:01 2017 -0400

    Ensure instance mapping is updated in case of quota recheck fails

    If an instance fails to successfully pass the quota recheck, it will
    raise a TooManyInstances exception, however, it will not hit the
    code which saves the instance mapping, leaving an instance with no
    assigned cell in the mapping table and no BuildRequest as it is
    removed by _cleanup_build_artifacts.

    This patch adds a test to make sure that an instance has the correct
    cell mapping if it fails in the quota recheck phase. In addition, it
    uses the cell_mapping_cache dictionary to set the correct cell
    mapping before marking the instance as ERROR.

    Co-Authored-By: Dan Smith <email address hidden>
    Co-Authored-By: Matt Riedemann <email address hidden>
    Co-Authored-By: melanie witt <email address hidden>
    Closes-Bug: #1715462

    Change-Id: I7ecb5feb47a5f358cd51bde87b75a3a6141b5b12