Comment 26 for bug 1781286

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

Reviewed: https://review.opendev.org/685997
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=38fb7f82abd7fffc00ebc050ee5230f1137e76d8
Submitter: Zuul
Branch: master

commit 38fb7f82abd7fffc00ebc050ee5230f1137e76d8
Author: Matt Riedemann <email address hidden>
Date: Tue Oct 1 12:03:17 2019 -0400

    Handle get_host_availability_zone error during reschedule

    If a build fails and reschedules to a cell conductor which does
    not have access to the API DB, the call to get_host_availability_zone
    will fail with a CantStartEngineError because it's trying to do an
    "up-call" to the API DB for host aggregate info. The reschedule
    fails and the instance is stuck in BUILD status without a fault
    injected for determining what went wrong.

    This change simply handles the failure and cleans up so the instance
    is put into a terminal (ERROR) state.

    Change-Id: I6bfa6fa767403fb936a6ae340b8687eb161732fc
    Partial-Bug: #1781286