Bug 1131821
Summary: | Libvirtd crash while set blkdeviotune with the hotplug disk and specify the --config option | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | zhenfeng wang <zhwang> |
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.6 | CC: | dyuan, lhuang, libvirt-maint, mzhan, rbalakri, shyu, virt-bugs, ydu |
Target Milestone: | rc | Keywords: | Upstream |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.10.2-48.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 1131819 | Environment: | |
Last Closed: | 2015-07-22 05:46:38 UTC | Type: | Bug |
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: | 1131819 | ||
Bug Blocks: |
Description
zhenfeng wang
2014-08-20 06:38:42 UTC
Since i can't reproduce this issue with the libvirt-0.10.2-42.el6.x86_64.rpm, so maybe this issue is a regression issue, please help check it, thanks Fixed upstream: commit 653137eb957a278b556c6226424aad5395a38a61 Author: Peter Krempa <pkrempa> Date: Wed Aug 20 10:49:49 2014 +0200 qemu: blkiotune: Avoid accessing non-existing disk configuration When a user would try changing the persistent IO tuning settings for a disk that was hotplugged to a vm in a transient way, the qemuDomainSetBlockIoTune API would use the same index for both the live and config disk array. The disk was missing from the config array though causing a crash of libvirtd. To fix the issue, determine the indexes separately. v1.2.7-180-g653137e I can reproduce this bug with libvirt-0.10.2-46.el6.x86_64: 1. prepare a running vm: # virsh list --all Id Name State ---------------------------------------------------- 2 r6 running 2. hot-plug a disk # virsh attach-disk r6 /var/lib/libvirt/images/test6.img sda Disk attached successfully 3.use blkdeviotune set the value to hotplug disk # virsh blkdeviotune r6 sda 1234 --config error: Unable to change block I/O throttle 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 And verify this bug with libvirt-0.10.2-48.el6.x86_64: 1.update libvirt to libvirt-0.10.2-48.el6.x86_64 and use blkdeviotune set the value to hotplug disk: # virsh blkdeviotune r6 sda 1234 --config error: Unable to change block I/O throttle error: invalid argument: missing persistent configuration for disk 'sda' 2. restart the vm: # virsh destroy r6 Domain r6 destroyed # virsh start r6 Domain r6 started 3.hot-plug a disk: # virsh attach-disk r6 /var/lib/libvirt/images/test6.img sda Disk attached successfully 4. set blk tune to the hot-plug disk: # virsh blkdeviotune r6 sda 1123 --config error: Unable to change block I/O throttle error: invalid argument: missing persistent configuration for disk 'sda' Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-1252.html |