]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/suites/rbd: install qemu-utils in addition to qemu-block-extra on Ubuntu 51059/head
authorIlya Dryomov <idryomov@gmail.com>
Tue, 11 Apr 2023 20:43:58 +0000 (22:43 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 13 Apr 2023 10:08:20 +0000 (12:08 +0200)
commit075b7912bf1d48c881aa06bcde51e6f81d7f79b1
tree1f59c421bf02d96e113331181bff834f0396948c
parentf7f8fd32c12832067b8b1c2a2b3d09bed1ff5011
qa/suites/rbd: install qemu-utils in addition to qemu-block-extra on Ubuntu

qemu-utils is usually pre-installed but, due to what appears to be
a Ubuntu packaging bug, it's not upgraded when qemu-block-extra is
installed:

  The following NEW packages will be installed:
    qemu-block-extra
  The following packages will be upgraded:
    qemu-system-common qemu-system-data qemu-system-gui qemu-system-x86

However, the version of the block driver must match exactly the version
of the qemu-img tool, so the above leads to:

  $ qemu-img convert -f qcow2 -O raw /home/ubuntu/cephtest/qemu/base.client.0.0.qcow2 rbd:rbd/client.0.0
  Failed to initialize module: /usr/lib/x86_64-linux-gnu/qemu/block-rbd.so
  Note: only modules from the same build can be loaded.
  qemu: module block-block-rbd not found, do you want to install qemu-block-extra package?
  qemu-img: Unknown protocol 'rbd'

Fixes: https://tracker.ceph.com/issues/59431
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit c529fdd63a5aae2c598078df05fe9bbef40042dc)
qa/suites/rbd/singleton/all/qemu-iotests-no-cache.yaml
qa/suites/rbd/singleton/all/qemu-iotests-writearound.yaml
qa/suites/rbd/singleton/all/qemu-iotests-writeback.yaml
qa/suites/rbd/singleton/all/qemu-iotests-writethrough.yaml
qa/tasks/qemu.py