Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-24843

Improve handling of migration attempt to incompatible host on s390x

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • libvirt
    • rhel-sst-virtualization
    • ssg_virtualization
    • 5
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • s390x
    • None

      Goal

      Migration to a host that can't run a VM configuration should be handled gracefully, like on x86_64.

      Currently, though the error message is useful, on s390x, the monitor closes unepxectedly:

      error: internal error: QEMU unexpectedly closed the monitor (vm='rhel8'): 2024-02-07T10:09:05.877766Z qemu-kvm: Some features requested in the CPU model are not available in the configuration: ctop 

      ,
      whereas on x86_64, libvirt handles this earlier:

      # virsh migrate vm2 qemu+ssh://{target_host}/system --live --p2p --copy-storage-all
      error: operation failed: guest CPU doesn't match specification: missing features: ds,dtes64,avx512ifma,sha-ni,avx512vbmi,avx512vbmi2,gfni,vaes,vpclmulqdq,avx512bitalg,avx512-vpopcntdq,la57,rdpid,fsrm,wbnoinvd,vmx-page-walk-5

      Given that the error message on s390x in itself is useful and the VM keeps running on the source, I open this issue for discussion for improvement of the error handling. Daniel Berrangé reminded me that on s390x CPUs are not handled by libvirt (e.g. no CPU model definitions maintained) though.

      Acceptance Criteria

      • Given a VM on host 1 with CPU features x1,...,xn that are required by the VM but not available on host 2, when I start a migration, it is canceled with an error message (like on x86_64), e.g.
        error: operation failed: guest CPU doesn't match specification: missing features: x1,...,xn

              virt-maint virt-maint
              smitterl@redhat.com Sebastian Mitterle
              CĂ©dric Le Goater, Jiri Denemark, Leo Fu, Thomas Huth, Tim Wiederhake
              virt-maint virt-maint
              Sebastian Mitterle Sebastian Mitterle
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: