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 1003526 - Disk Hotplug will lead libvirtd crash
Summary: Disk Hotplug will lead libvirtd crash
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Ján Tomko
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-02 09:17 UTC by Shanzhi Yu
Modified: 2016-05-16 04:20 UTC (History)
8 users (show)

Fixed In Version: libvirt-1.1.1-4.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 09:20:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
gdb backtrace (9.11 KB, text/plain)
2013-09-02 09:20 UTC, Shanzhi Yu
no flags Details

Description Shanzhi Yu 2013-09-02 09:17:59 UTC
Description of problem:

Disk Hotplug will lead libvirtd crash

Version-Release number of selected component (if applicable):

libvirt-1.1.1-3.el7.x86_64
qemu-kvm-1.5.2-3.el7.x86_64

How reproducible:

100%

Steps to Reproduce:
1. start an guest
# virsh start demo
2. create an image and make ext3 fs on it
# qemu-img create /var/lib/libvirt/images/test.img 1G 
# mkfs.ext3 /var/lib/libvirt/images/test.img
3. attach disk to guest
# virsh attach-disk demo /var/lib/libvirt/images/test.img vdb --mode readonly --sourcetype file

Actual results:

error: Failed to attach disk
error: End of file while reading data: Input/output error
error: One or more references were leaked after disconnect from the hypervisor
error: Failed to reconnect to the hypervisor

Expected results:

succeed

Additional info:

attach fc/nfs/iscsi disk will also lead libvirtd crash

Comment 1 Shanzhi Yu 2013-09-02 09:20:31 UTC
Created attachment 792777 [details]
gdb backtrace

Comment 3 Shanzhi Yu 2013-09-02 09:32:13 UTC
(In reply to Shanzhi Yu from comment #0)
> Description of problem:
> 
> Disk Hotplug will lead libvirtd crash
> 
> Version-Release number of selected component (if applicable):
> 
> libvirt-1.1.1-3.el7.x86_64
> qemu-kvm-1.5.2-3.el7.x86_64
> 
> How reproducible:
> 
> 100%
> 
> Steps to Reproduce:
> 1. start an guest
> # virsh start demo
> 2. create an image and make ext3 fs on it
> # qemu-img create /var/lib/libvirt/images/test.img 1G 
> # mkfs.ext3 /var/lib/libvirt/images/test.img
> 3. attach disk to guest
> # virsh attach-disk demo /var/lib/libvirt/images/test.img vdb --mode
> readonly --sourcetype file
> 
> Actual results:
> 
> error: Failed to attach disk
> error: End of file while reading data: Input/output error
> error: One or more references were leaked after disconnect from the
> hypervisor
> error: Failed to reconnect to the hypervisor
> 
> Expected results:
> 
> succeed
> 
> Additional info:
> 
> attach fc/nfs/iscsi disk will also lead libvirtd crash

"virsh attach-disk demo /var/lib/libvirt/images/test.img vdb" can lead libvirtd crash, other options is not necessary

Comment 5 Ján Tomko 2013-09-02 10:09:10 UTC
Fixed upstream by:
commit bb97db2fb4315b7a7eb4403570d54c93992117de
Author:     Guido Günther <agx>
AuthorDate: 2013-08-10 09:19:30 +0200
Commit:     Guido Günther <agx>
CommitDate: 2013-08-12 19:31:18 +0200

    Don't crash in qemuBuildDeviceAddressStr

Downstream patch posted:
http://post-office.corp.redhat.com/archives/rhvirt-patches/2013-September/msg00003.html

Comment 6 chhu 2013-09-09 05:34:57 UTC
Reproduced with libvirt-1.1.1-3.el7.x86_64, qemu-kvm-1.5.2-3.el7.x86_64.

Verified with the packages:
libvirt-1.1.1-4.el7.x86_64
qemu-kvm-1.5.3-2.el7.x86_64

Test steps:
1. start an guest
# virsh define rh7-qcow2.xml 
Domain rh7-qcow2 defined from rh7-qcow2.xml

2. create an image and make ext3 fs on it
# qemu-img create /var/lib/libvirt/images/test.img 1G 
# mkfs.ext3 /var/lib/libvirt/images/test.img

3. attach disk to guest
# virsh attach-disk rh7-qcow2 /var/lib/libvirt/images/test.img vdb --mode readonly --sourcetype file
Disk attached successfully

Test results:
current command work well, move to verified.

Comment 7 Ludek Smid 2014-06-13 09:20:37 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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