-
Bug
-
Resolution: Unresolved
-
Undefined
-
rhos-18.0.0
-
None
-
False
-
-
False
-
?
-
?
-
?
-
?
-
None
-
-
Known Issue
-
Done
-
-
-
Compute Next Priorities
-
1
-
Important
After enabling Nova NFS [1] , Cold migration fails when nova is using NFS and the flavor has swap configured . Instance migration fails with error :
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nova/compute/manager.py", line 203, in decorated_function return function(self, context, *args, **kwargs) File "/usr/lib/python3.9/site-packages/nova/compute/manager.py", line 6305, in finish_resize self._delete_allocation_after_move( File "/usr/lib/python3.9/site-packages/oslo_utils/excutils.py", line 227, in __exit__ self.force_reraise() File "/usr/lib/python3.9/site-packages/oslo_utils/excutils.py", line 200, in force_reraise raise self.value File "/usr/lib/python3.9/site-packages/nova/compute/manager.py", line 6287, in finish_resize self._finish_resize_helper(context, disk_info, image, instance, File "/usr/lib/python3.9/site-packages/nova/compute/manager.py", line 6319, in _finish_resize_helper network_info = self._finish_resize(context, instance, migration, File "/usr/lib/python3.9/site-packages/nova/compute/manager.py", line 6258, in _finish_resize self._set_instance_info(instance, old_flavor) File "/usr/lib/python3.9/site-packages/oslo_utils/excutils.py", line 227, in __exit__ self.force_reraise() File "/usr/lib/python3.9/site-packages/oslo_utils/excutils.py", line 200, in force_reraise raise self.value File "/usr/lib/python3.9/site-packages/nova/compute/manager.py", line 6241, in _finish_resize self.driver.finish_migration(context, migration, instance, File "/usr/lib/python3.9/site-packages/nova/virt/libvirt/driver.py", line 11780, in finish_migration guest = self._create_guest_with_network( File "/usr/lib/python3.9/site-packages/nova/virt/libvirt/driver.py", line 7773, in _create_guest_with_network self._cleanup( File "/usr/lib/python3.9/site-packages/oslo_utils/excutils.py", line 227, in __exit__ self.force_reraise() File "/usr/lib/python3.9/site-packages/oslo_utils/excutils.py", line 200, in force_reraise raise self.value File "/usr/lib/python3.9/site-packages/nova/virt/libvirt/driver.py", line 7750, in _create_guest_with_network guest = self._create_guest( File "/usr/lib/python3.9/site-packages/nova/virt/libvirt/driver.py", line 7689, in _create_guest guest.launch(pause=pause) File "/usr/lib/python3.9/site-packages/nova/virt/libvirt/guest.py", line 168, in launch LOG.exception('Error launching a defined domain with XML: %s', File "/usr/lib/python3.9/site-packages/oslo_utils/excutils.py", line 227, in __exit__ self.force_reraise() File "/usr/lib/python3.9/site-packages/oslo_utils/excutils.py", line 200, in force_reraise raise self.value File "/usr/lib/python3.9/site-packages/nova/virt/libvirt/guest.py", line 165, in launch return self._domain.createWithFlags(flags) File "/usr/lib/python3.9/site-packages/eventlet/tpool.py", line 193, in doit result = proxy_call(self._autowrap, f, *args, **kwargs) File "/usr/lib/python3.9/site-packages/eventlet/tpool.py", line 151, in proxy_call rv = execute(f, *args, **kwargs) File "/usr/lib/python3.9/site-packages/eventlet/tpool.py", line 132, in execute six.reraise(c, e, tb) File "/usr/lib/python3.9/site-packages/six.py", line 709, in reraise raise value File "/usr/lib/python3.9/site-packages/eventlet/tpool.py", line 86, in tworker rv = meth(*args, **kwargs) File "/usr/lib64/python3.9/site-packages/libvirt.py", line 1415, in createWithFlags raise libvirtError('virDomainCreateWithFlags() failed') libvirt.libvirtError: Cannot access storage file '/var/lib/nova/instances/4f428161-6244-4de2-821f-019d4c087264/disk.swap' (as uid:107, gid:107): No such file or directory
[1] : https://gitlab.cee.redhat.com/ci-framework/ci-framework-jobs/-/merge_requests/1269
Steps to reproduce :
- Create flavor with swap - FLAVOR_SWAP
- Create instance using the "FLAVOR_SWAP" flavor
- Perform cold migration
- VM will end up in error state