Fix revert resize failure with disk.local not found
If we resize an instance from a flavor without ephemeral disk to a flavor
with it, it resizes OK, but if we revert this resize, the instance fail to
spawn with error disk.local not found.
The reason is that the libvirt driver get the wrong resized flavor from
instance, so the flavor info of instance should be updated before instance
spawns.
Reviewed: https:/ /review. openstack. org/17588 github. com/openstack/ nova/commit/ 9eadd4fdf4a76a9 ea92790a6c4aa20 d0aa32ef86
Committed: http://
Submitter: Jenkins
Branch: master
commit 9eadd4fdf4a76a9 ea92790a6c4aa20 d0aa32ef86
Author: Wangpan <email address hidden>
Date: Thu Dec 6 15:13:54 2012 +0800
Fix revert resize failure with disk.local not found
If we resize an instance from a flavor without ephemeral disk to a flavor
with it, it resizes OK, but if we revert this resize, the instance fail to
spawn with error disk.local not found.
The reason is that the libvirt driver get the wrong resized flavor from
instance, so the flavor info of instance should be updated before instance
spawns.
Fixes: bug #1086688
Change-Id: I2c54586803c60b aab7f20297b309a 8e6c4134d13