commit f3763778dd59c78f68bedd124c653b6744acbc9c
Author: Matt Riedemann <email address hidden>
Date: Tue Oct 29 12:10:08 2019 -0400
Reset instance to current vm_state if rolling back in resize_instance
You can resize a stopped instance and if the compute driver raises
InstanceFaultRollback from migrate_disk_and_power_off, the
_error_out_instance_on_exception decorator, used in the _resize_instance
method, will by default reset the instance vm_state to ACTIVE even though
the guest is stopped. The driver could raise InstanceFaultRollback if you
try resizing the root disk down on a non-volume-backed instance.
This builds on [1] and does the same thing as prep_resize [2] for
making sure the original vm_state is reset on InstanceFaultRollback.
Reviewed: https:/ /review. opendev. org/696085 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=f3763778dd5 9c78f68bedd124c 653b6744acbc9c
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit f3763778dd59c78 f68bedd124c653b 6744acbc9c
Author: Matt Riedemann <email address hidden>
Date: Tue Oct 29 12:10:08 2019 -0400
Reset instance to current vm_state if rolling back in resize_instance
You can resize a stopped instance and if the compute driver raises ltRollback from migrate_ disk_and_ power_off, the out_instance_ on_exception decorator, used in the _resize_instance llback if you
InstanceFau
_error_
method, will by default reset the instance vm_state to ACTIVE even though
the guest is stopped. The driver could raise InstanceFaultRo
try resizing the root disk down on a non-volume-backed instance.
This builds on [1] and does the same thing as prep_resize [2] for llback.
making sure the original vm_state is reset on InstanceFaultRo
[1] Ie4f9177f4d54cb c7dbcf58bd107fd 5f24c60d8bb ecc7d0bbc7a4ad2 f537fa499bc
[2] I17543ecb572934
Change-Id: Iff1f9f28a1e4ec f00368cbcac27b7 687a5eb0dcf 855a2457283bbbe 7d78140a9c)
Closes-Bug: #1551703
(cherry picked from commit 5a20996405c5788