Bug 1140001
Summary: | data-plane hotplug should be refused to start if device is already in use (drive-mirror job) | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Sibiao Luo <sluo> | |
Component: | qemu-kvm-rhev | Assignee: | Stefan Hajnoczi <stefanha> | |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 7.1 | CC: | chayang, famz, hhuang, juzhang, michen, pbonzini, qzhang, rbalakri, stefanha, virt-maint, xfu | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | qemu-kvm-rhev-2.1.2-4.el7 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1250861 (view as bug list) | Environment: | ||
Last Closed: | 2015-03-05 09:54:57 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: | ||||
Bug Blocks: | 1250861 |
Description
Sibiao Luo
2014-09-10 07:11:29 UTC
my whole qemu-kvm command line: # /usr/libexec/qemu-kvm -M pc -S -cpu SandyBridge -enable-kvm -m 2048 -smp 4,sockets=2,cores=2,threads=1 -no-kvm-pit-reinjection -usb -device usb-tablet,id=input0 -name sluo -uuid 990ea161-6b67-47b2-b803-19fb01d30d30 -rtc base=localtime,clock=host,driftfix=slew -device virtio-serial-pci,id=virtio-serial0,max_ports=16,vectors=0,bus=pci.0,addr=0x3 -chardev socket,id=channel1,path=/tmp/helloworld1,server,nowait -device virtserialport,chardev=channel1,name=com.redhat.rhevm.vdsm1,bus=virtio-serial0.0,id=port1 -chardev socket,id=channel2,path=/tmp/helloworld2,server,nowait -device virtserialport,chardev=channel2,name=com.redhat.rhevm.vdsm,bus=virtio-serial0.0,id=port2 -netdev tap,id=hostnet0,vhost=on,script=/etc/qemu-ifup -device virtio-net-pci,netdev=hostnet0,id=virtio-net-pci0,mac=00:01:02:B6:40:21,bus=pci.0,addr=0x5 -device virtio-balloon-pci,id=ballooning,bus=pci.0,addr=0x6 -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -k en-us -boot menu=on -qmp tcp:0:4444,server,nowait -serial unix:/tmp/ttyS0,server,nowait -spice disable-ticketing,port=5931 -vga qxl -global qxl-vga.vram_size=33554432 -monitor stdio -object iothread,id=iothread0 -drive file=/home/RHEL-7.0-20140507.0-Server-x86_64.qcow2,if=none,id=drive-system-disk0,format=qcow2,cache=none,aio=native,werror=stop,rerror=stop Best Regards, sluo Thanks, there was a regression upstream and I have submitted a patch: [PATCH] dataplane: fix virtio_blk_data_plane_create() op blocker error path Once it has been merged I will backport it. The backport has been posted. Fix included in qemu-kvm-rhev-2.1.2-4.el7 verify this issue on qemu-kvm-rhev-2.1.2-5.el7.x86_64. host info: # uname -r && rpm -q qemu-kvm-rhev 3.10.0-191.el7.x86_64 qemu-kvm-rhev-2.1.2-5.el7.x86_64 e.g:...-object iothread,id=iothread0 -drive file=/home/rhel7-desktop-64.qcow2,if=none,id=drive-system-disk0,format=qcow2,cache=none,aio=native,werror=stop,rerror=stop {"execute":"qmp_capabilities"} {"return": {}} { "execute": "drive-mirror", "arguments": { "device": "drive-system-disk0", "target": "/root/sn1", "format": "qcow2", "mode": "absolute-paths", "sync": "full", "speed": 1000000000, "on-target-error": "stop" } } {"return": {}} {"execute":"device_add","arguments":{"driver":"virtio-blk-pci","drive":"drive-system-disk0","id":"system-disk0","iothread":"iothread0"}} {"error": {"class": "GenericError", "desc": "cannot start dataplane thread: Device 'drive-system-disk0' is busy: block device is in use by block job: mirror"}} Base on above, this issue has been fixed correctly, move to VERIFIED status. Best Regards, sluo 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/RHSA-2015-0624.html |