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 1598025 - qemu-img commit 'Aborted (core dumped)' for the 'First cluster in emptied image is in use' if glusterfs is used as storage backend
Summary: qemu-img commit 'Aborted (core dumped)' for the 'First cluster in emptied ima...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: glusterfs
Version: 7.6
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Prasanna Kumar Kalever
QA Contact: Sweta Anandpara
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-04 07:45 UTC by Gu Nini
Modified: 2021-11-10 13:02 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-15 07:40:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
gdb_debug_info-07042018 (4.47 KB, text/plain)
2018-07-04 07:45 UTC, Gu Nini
no flags Details
gdb_debug_info_all_threads-07052018 (5.49 KB, text/plain)
2018-07-05 01:24 UTC, Gu Nini
no flags Details

Description Gu Nini 2018-07-04 07:45:50 UTC
Created attachment 1456396 [details]
gdb_debug_info-07042018

Description of problem:
If use glusterfs as the storage backend, 'qemu-img commit' would 'Aborted (core dumped)'

# qemu-img commit -f qcow2 sn2
qemu-img: First cluster in emptied image is in use
Aborted (core dumped)


Version-Release number of selected component (if applicable):
Host kernel: 3.10.0-915.el7.x86_64
Qemu-kvm-rhev: qemu-kvm-rhev-2.12.0-6.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Mount gluestfs storage:
# mount -t glusterfs xx.xx.xx.xx:/gv1 /home

2. Create src image and its external snapshot on the glusterfs storage:
# cd /home
# qemu-img create -f qcow2 test 1G
# qemu-img create -f qcow2 test-sn -b test -F qcow2

3. Commit the snapshot to its base:
# qemu-img commit -f qcow2 test-sn
qemu-img: First cluster in emptied image is in use
Aborted (core dumped)


Actual results:
Aborted (core dumped) as above.

Expected results:
The snapshot could be committed to its base successfully.


Additional info:

Comment 2 Gu Nini 2018-07-05 01:24:15 UTC
Created attachment 1456629 [details]
gdb_debug_info_all_threads-07052018

Comment 5 Jeff Cody 2018-07-10 16:46:47 UTC
This is with a Gluster FUSE mount, interesting.

I can reproduce this with glusterfs 3.8.4-53.el7, but not 4.0.2-1.fc28.  Since this occurs with a fuse mount, it appears the difference is with gluster, and we are getting two different read results.  When I debug via GDB, sometimes it works OK on 3.8.4-53, which makes me think there is a race condition present somewhere.

Comment 6 Jeff Cody 2018-08-15 14:20:22 UTC
I'm re-assigning this over to glusterfs, for the reasons given in comment #5.  Since this is reported over a fuse mount, and the bug is not present with later libgfapi versions, this is something that needs to be addressed at the gluster package level.

Comment 7 Sahina Bose 2020-02-06 11:00:22 UTC
Prasanna, could you take a look at this?

Comment 12 RHEL Program Management 2021-02-15 07:40:05 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


Note You need to log in before you can comment on or make changes to this bug.