Verified the RBD guest-freeze fix on Ubuntu 24.04 LTS (Noble), amd64,
with qemu-system-x86 and qemu-block-extra both at version
1:8.2.2+ds-0ubuntu1.20 from noble-proposed.

Environment:
OpenStack 2024.2 (Kolla), with QEMU and libvirt running in the nova_libvirt 
container. The guest had a 100 GiB Cinder RBD test volume attached as 
virtio-blk (/dev/vdb).

apt-cache policy (inside the nova_libvirt container):
qemu-system-x86:
  Installed: 1:8.2.2+ds-0ubuntu1.20
  Candidate: 1:8.2.2+ds-0ubuntu1.20
  Version table:
     1:8.2.2+ds-0ubuntu1.20 100
        100 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 Packages
qemu-block-extra:
  Installed: 1:8.2.2+ds-0ubuntu1.20
  Candidate: 1:8.2.2+ds-0ubuntu1.20
  Version table:
    1:8.2.2+ds-0ubuntu1.20 100
        100 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 Packages
librbd1 19.2.3-0ubuntu0.24.04.3, libvirt 10.0.0-2ubuntu8.20


After starting the guest, I confirmed using "info version" in the QEMU
monitor that the running QEMU process was version
1:8.2.2+ds-0ubuntu1.20.

Before the fix (1:8.2.2+ds-0ubuntu1.16):
With the test volume throttled to 8 MiB/s, I ran "mkfs.xfs -f /dev/vdb" and 
queried block statistics from the compute host.

The guest heartbeat showed a 184-second gap (15:46:30 to 15:49:34), and
the SSH session subsequently dropped.

This is consistent with the reported bug: the block query issued a
synchronous RBD read while holding the Big QEMU Lock (BQL). A delay in
that read could therefore stall the guest for the duration of the wait.

After the fix (1:8.2.2+ds-0ubuntu1.20, tested 2026-11-22):
The test volume was throttled to 4 MiB/s, with direct-read throughput measured 
inside the guest at 4.6 MB/s.

While "mkfs.xfs" displayed "Discarding blocks...", I ran "virsh domstats
--block" three times from the compute host.

Observed elapsed times (including docker exec overhead):
  - Query 1: 0.185 s
  - Query 2: 0.186 s
  - Query 3: 0.195 s

All three queries completed between 08:34:54 and 08:34:55.

The guest heartbeat printed every second from 08:34:48 through 08:35:06,
with no gap across the queries.

Result:
The reported guest freeze did not reproduce with the proposed QEMU build. All 
three block-statistics queries completed in under 0.2 seconds, and the guest 
remained responsive throughout.

Test setup note:
Installing the proposed packages inside the running Kolla container also 
upgraded libvirt to 10.0.0-2ubuntu8.20.

Before the guest could start, I had to restore access for Kolla's QEMU
user (nova) to /var/lib/libvirt/qemu.

Verification result: PASS.

** Tags removed: verification-needed-noble
** Tags added: verification-done-noble

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2166503

Title:
  rbd: blocking rbd_read() in .bdrv_get_specific_info freezes guests

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/2166503/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to