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)
Reviewed: https:/ /review. openstack. org/548300 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=5039511840b d64151f3111d9c8 d7d8a01344193b
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 5039511840bd641 51f3111d9c8d7d8 a01344193b
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 8f0189c9598856d e57dfa7d35)
Closes-Bug: #1749215
(cherry picked from commit caf167862dd82e9