commit caf167862dd82e98f0189c9598856de57dfa7d35
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.
Reviewed: https:/ /review. openstack. org/543971 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=caf167862dd 82e98f0189c9598 856de57dfa7d35
Committed: https:/
Submitter: Zuul
Branch: master
commit caf167862dd82e9 8f0189c9598856d e57dfa7d35
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 ComputeAPI' s resize_instance method, which will then do an
rpcapi.
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: I2d9ab06b485f76 550dbbff46f79f4 0ff4c97d12f
Closes-Bug: #1749215