Bug 2336437

Summary: qemu-img fails to create LUKS volume: Unable to get accurate CPU usage
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: qemuAssignee: Fedora Virtualization Maintainers <virt-maint>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: berrange, cfergeau, crobinso, mcascell, pbonzini, philmd, rjones, suraj.ghimire7, thuth, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-01-09 12:31:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2025-01-08 17:54:21 UTC
$ qemu-img create -f luks --object secret,data=123456,id=sec0 -o key-secret=sec0 luks-info.img 1M
Formatting 'luks-info.img', fmt=luks size=1048576 key-secret=sec0
qemu-img: luks-info.img: Unable to get accurate CPU usage

This was previously reported by Debian:
https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg2003148.html
and by upstream qemu:
https://lore.kernel.org/qemu-devel/ffe542bb-310c-4616-b0ca-13182f849fd1@redhat.com/
but I don't believe there was any resolution yet.

Reproducible: Always

Comment 1 Richard W.M. Jones 2025-01-08 17:58:15 UTC
Dan spotted that the Debian bug is x86_64, so this is not s390x specific.

Comment 2 Richard W.M. Jones 2025-01-08 18:59:32 UTC
Proposed patch:
https://lists.gnu.org/archive/html/qemu-devel/2025-01/msg01071.html

Comment 3 Daniel Berrangé 2025-01-09 12:31:41 UTC
Built in qemu-9.2.0-3.fc42