nova/nova/virt
jichenjc f1280ab849 libvirt: Do not reraise DiskNotFound exceptions during resize
When an instance has VERIFY_RESIZE status, the instance disk on the
source compute host has moved to <instance_path>/<instance_uuid>_resize
folder, which leads to disk not found errors if the update available
resource periodic task on the source compute runs before resize is
actually confirmed.

Icec2769bf42455853cbe686fb30fda73df791b25 almost fixed this issue but it
will only set reraise to False when task_state is not None, that isn't
the case when an instance is resized but resize is not yet confirmed.
This patch adds a condition based on vm_state to ensure we don't
reraise DiskNotFound exceptions while resize is not confirmed.

Closes-Bug: 1774249
Co-Authored-By: Vladyslav Drok <vdrok@mirantis.com>
Change-Id: Id687e11e235fd6c2f99bb647184310dfdce9a08d
(cherry picked from commit 966192704c)
2019-05-21 13:07:26 +01:00
..
disk Remove utils.execute() from virt.disk.api. 2018-12-12 09:38:20 +11:00
hyperv Merge "Share snapshot image membership with instance owner" 2019-03-12 18:43:12 +00:00
image libvirt: virtuozzo instance resize support 2016-06-28 22:13:49 +03:00
ironic Merge "Do not perform port update in case of baremetal instance." into stable/stein 2019-04-30 21:18:50 +00:00
libvirt libvirt: Do not reraise DiskNotFound exceptions during resize 2019-05-21 13:07:26 +01:00
powervm Merge "Share snapshot image membership with instance owner" 2019-03-12 18:43:12 +00:00
vmwareapi Merge "Share snapshot image membership with instance owner" 2019-03-12 18:43:12 +00:00
xenapi Merge "ironic: check fresh data when sync_power_state doesn't line up" 2019-03-02 02:36:41 +00:00
zvm Merge "Share snapshot image membership with instance owner" 2019-03-12 18:43:12 +00:00
__init__.py Declare nova.virt namespace 2016-04-28 15:01:44 +00:00
arch.py Added ability to configure default architecture for ImagePropertiesFilter 2018-05-14 16:55:13 -04:00
block_device.py Override the 'get' method in DriverBlockDevice class 2019-03-26 11:20:24 +09:00
configdrive.py Convert configdrive to use processutils. 2018-05-02 21:42:05 +10:00
driver.py Do not perform port update in case of baremetal instance. 2019-04-28 15:47:22 +00:00
event.py Port binding based on events during live migration 2018-07-19 09:09:55 -04:00
fake.py Do not persist RequestSpec.ignore_hosts 2019-04-02 09:13:29 -04:00
firewall.py Merge "Remove translation of log messages" 2017-06-20 21:16:49 +00:00
hardware.py Merge "Improve existing flavor and image metadata validation" 2019-03-05 08:57:41 +00:00
imagecache.py Rename ImageCacheManager._list_base_images to _scan_base_images 2016-05-26 14:45:42 +01:00
images.py Improve libvirt image and snapshot handling 2019-03-05 12:18:34 -06:00
interfaces.template
netutils.py libvirt: add vf_trusted field for network metadata 2018-05-30 15:11:59 -04:00
osinfo.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
storage_users.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
virtapi.py Remove unused provider firewall rules functionality in nova 2016-02-01 15:50:04 +01:00