Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-12784

Cold migration fails with Nova NFS when the flavor has swap configured

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhos-18.0.5
    • rhos-18.0.0
    • openstack-nova
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • ?
    • ?
    • None
    • Hide
      .Cold migration fails for server with `swap` in flavor for shared storage like NFS.

      When the Compute service (nova) is enabled with shared storage, for example, NFS, cold migration fails if the instance uses the `FLAVOR_SWAP` flavor.
      Show
      .Cold migration fails for server with `swap` in flavor for shared storage like NFS. When the Compute service (nova) is enabled with shared storage, for example, NFS, cold migration fails if the instance uses the `FLAVOR_SWAP` flavor.
    • 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 

              Unassigned Unassigned
              ashigupt@redhat.com Ashish Gupta
              rhos-dfg-compute
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: