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

Provide QMP command for block device reactivation after migration [rhel-10.0]

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • qemu-kvm / Storage
    • None
    • sst_virtualization_storage
    • ssg_virtualization
    • 5
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      Attempting to migrate a VM which was kept paused after migration will crash qemu:

      (qemu) qemu-kvm: ../block.c:6979: int bdrv_inactivate_recurse(BlockDriverState *): 
      Assertion `!(bs->open_flags & BDRV_O_INACTIVE)' failed.
      Aborted (core dumped) /usr/libexec/qemu-kvm -name 'avocado-vt-vm1' -sandbox on -blockdev '{"node-name": "file_ovmf_code", "driver": "file", "filename": "/usr/share/OVMF/OVMF_CODE.secboot.fd", "auto-read-only": true, "discard": "unmap"}' ...
      

      as the block devices were not re-activated after migration.

      See https://issues.redhat.com/browse/RHEL-48801 for more details

      Per discussion with Kevin, apart from avoiding the crash, libvirt will need a new command to reactivate the block devices in order to properly use the VM afterwards, which is tracked by the aforementioned bug.

      Please provide the package NVR for which bug is seen:

      qemu-kvm-9.0.0-6.el9.x86_64

            kwolf@redhat.com Kevin Wolf
            coli@redhat.com Cong Li
            Kevin Wolf Kevin Wolf
            Cong Li Cong Li
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: