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

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

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-9.6
    • rhel-9.5
    • qemu-kvm / Storage
    • None
    • rhel-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
              pkrempa@redhat.com Peter Krempa
              Kevin Wolf Kevin Wolf
              Cong Li Cong Li
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: