Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1975941

Summary: qemu-img convert: unshare write permission for source
Product: Red Hat Enterprise Linux 9 Reporter: Xueqiang Wei <xuwei>
Component: qemu-kvmAssignee: Kevin Wolf <kwolf>
qemu-kvm sub component: Storage QA Contact: Tingting Mao <timao>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: medium    
Priority: medium CC: chayang, coli, jinzhao, juzhang, kkiwi, kwolf, qzhang, virt-maint, xuwei
Version: 9.0Keywords: Triaged
Target Milestone: betaFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1975940 Environment:
Last Closed: 2021-09-17 07:57:20 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:
Bug Depends On: 1975940, 1997408    
Bug Blocks:    

Comment 1 Xueqiang Wei 2021-06-24 19:19:19 UTC
Versions:
kernel-5.13.0-0.rc3.25.el9.x86_64
qemu-kvm-6.0.0-3.el9

Comment 2 Klaus Heinrich Kiwi 2021-06-28 19:41:27 UTC
Similar questions to https://bugzilla.redhat.com/show_bug.cgi?id=1975940#c1

Comment 4 John Ferlan 2021-09-09 11:56:05 UTC
Update w/ qemu-6.1 rebase information.

Comment 5 Tingting Mao 2021-09-10 06:00:44 UTC
Verified this bug as below.


Tested env:
qemu-kvm-6.1.0-1.el9
kernel-modules-5.14.0-0.rc7.54.el9.x86_64


Steps:
# qemu-img create -f raw test.img 2G

# qemu-img convert -p -f raw -O raw -S 0 test.img test.img
qemu-img: test.img: error while converting raw: Failed to get "write" lock
Is another process using the image [test.img]?


Results:
As above, the image is locked.