Comment 8 for bug 1749215

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

Reviewed: https://review.openstack.org/548300
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=5039511840bd64151f3111d9c8d7d8a01344193b
Submitter: Zuul
Branch: stable/queens

commit 5039511840bd64151f3111d9c8d7d8a01344193b
Author: Claudiu Belu <email address hidden>
Date: Sun Feb 11 10:07:52 2018 -0800

    compute: Cleans up allocations after failed resize

    During cold resize, the ComputeManager's prep_resize calls the
    rpcapi.ComputeAPI's resize_instance method, which will then do an
    RPC cast (async).

    Because the RPC cast is asynchronous, the exception branch in prep_resize
    will not be executed if the cold resize failed, the allocations will not
    be cleaned up, and the instance will not be rescheduled.

    This patch adds allocation cleanup in the resize_instance and finish_resize
    methods.

    Change-Id: I2d9ab06b485f76550dbbff46f79f40ff4c97d12f
    Closes-Bug: #1749215
    (cherry picked from commit caf167862dd82e98f0189c9598856de57dfa7d35)