Instance resize fails due to missing disk on destination compute.

Solution Unverified - Updated -

Issue

  • Instance resize fails due to missing disk on destination compute. But resizing the instance on same node works using allow_resize_to_same_host=true parameter from nova.conf.

  • compute logs from Destination node:

[...]
81823: DEBUG nova.openstack.common.lockutils [req-a538a459-6ac2-4d30-8b02-734ce362d3ec 5bc15739d13343719261fca7c34307a2] Releasing semaphore "refresh_cache-a35c068d-b4d6-4bc2-bd3b-f535ae711b43" lock /usr/lib/pyt
hon2.7/site-packages/nova/openstack/common/lockutils.py:238
81823: DEBUG nova.virt.libvirt.driver [req-a538a459-6ac2-4d30-8b02-734ce362d3ec 5bc15739d13343719261fca7c34307a2] [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43] Starting finish_migration finish_migration /usr/
lib/python2.7/site-packages/nova/virt/libvirt/driver.py:6127
81823: DEBUG nova.virt.disk.api [req-a538a459-6ac2-4d30-8b02-734ce362d3ec 5bc15739d13343719261fca7c34307a2] Checking if we can resize image /var/lib/nova/instances/a35c068d-b4d6-4bc2-bd3b-f535ae711b43/disk. size
=85899345920 can_resize_image /usr/lib/python2.7/site-packages/nova/virt/disk/api.py:192
81823: ERROR nova.compute.manager [req-a538a459-6ac2-4d30-8b02-734ce362d3ec 5bc15739d13343719261fca7c34307a2] [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43] Setting instance vm_state to ERROR
81823: TRACE nova.compute.manager [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43] Traceback (most recent call last):
81823: TRACE nova.compute.manager [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3903, in finish_resize
81823: TRACE nova.compute.manager [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43]     disk_info, image)
81823: TRACE nova.compute.manager [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3871, in _finish_resize
81823: TRACE nova.compute.manager [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43]     old_instance_type, sys_meta)
81823: TRACE nova.compute.manager [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43]   File "/usr/lib/python2.7/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__
81823: TRACE nova.compute.manager [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43]     six.reraise(self.type_, self.value, self.tb)
81823: TRACE nova.compute.manager [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3866, in _finish_resize
81823: TRACE nova.compute.manager [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43]     block_device_info, power_on)
81823: TRACE nova.compute.manager [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 6134, in finish_migration
81823: TRACE nova.compute.manager [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43]     self._disk_resize(info, size)
81823: TRACE nova.compute.manager [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 6110, in _disk_resize
81823: TRACE nova.compute.manager [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43]     disk.can_resize_image(pth, size) and
81823: TRACE nova.compute.manager [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43]   File "/usr/lib/python2.7/site-packages/nova/virt/disk/api.py", line 195, in can_resize_image
81823: TRACE nova.compute.manager [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43]     virt_size = get_disk_size(image)
81823: TRACE nova.compute.manager [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43]   File "/usr/lib/python2.7/site-packages/nova/virt/disk/api.py", line 151, in get_disk_size
81823: TRACE nova.compute.manager [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43]     return images.qemu_img_info(path).virtual_size
81823: TRACE nova.compute.manager [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43]   File "/usr/lib/python2.7/site-packages/nova/virt/images.py", line 53, in qemu_img_info
81823: TRACE nova.compute.manager [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43]     raise exception.InvalidDiskInfo(reason=msg)
81823: TRACE nova.compute.manager [instance: a35c068d-b4d6-4bc2-bd3b-f535ae711b43] InvalidDiskInfo: Disk info file is invalid: Path does not exist /var/lib/nova/instances/a35c068d-b4d6-4bc2-bd3b-f535ae711b43/disk
[...]

Environment

  • Red Hat Open Stack

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In