Bug 1037440 - Device_del does not work after execute drive_del
Summary: Device_del does not work after execute drive_del
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Vadim Rozenfeld
QA Contact: CongLi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-03 07:38 UTC by Mike Cao
Modified: 2018-07-19 08:27 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-19 08:27:25 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1051341 0 medium CLOSED Win8.1-32 guest, show error message, when using "__com.redhat_drive_del" to delete the drive of libiscsi data disk 2021-02-22 00:41:40 UTC

Internal Links: 1051341

Description Mike Cao 2013-12-03 07:38:45 UTC
Description of problem:


Version-Release number of selected component (if applicable):
3.10.0-50.el7.x86_64
qemu-kvm-rhev-1.5.3-19.el7.x86_64
seabios-bin-1.7.2.2-4.el7.noarch
virtio-win-1.6.7-2

How reproducible:
100%

Steps to Reproduce:
1.Start windows guest 
#/usr/libexec/qemu-kvm -M pc-i440fx-rhel7.0.0 -cpu SandyBridge -enable-kvm -m 2G -smp 2,cores=2 -name bcao_win-7-32-netkvm -uuid 884e673a-1b4a-4385-a522-b3cc35ef4e18 -rtc base=localtime,clock=host,driftfix=slew -drive file=win7-32.qcow2,if=none,media=disk,serial=aaabbbccc,werror=stop,rerror=stop,cache=writeback,format=qcow2,id=drive-disk0 -device virtio-blk-pci,drive=drive-disk0,id=disk0 -cdrom en_windows_7_ultimate_with_sp1_x86_dvd_u_677460.iso -fda /usr/share/virtio-win/virtio-win_x86.vfd -netdev tap,vhost=on,id=netdev0 -device virtio-net-pci,netdev=netdev0,id=nic1,mq=off,mac=1a:46:0b:ca:bc:7b -spice port=5931,disable-ticketing -vga qxl -monitor stdio -usb -device usb-tablet,id=tablet0 -global PIIX4_PM.disable_s3=0 -global PIIX_PM.disable_s4=0 -monitor unix:/tmp/tt,server,nowait

2.(qemu)drive_add 00:08:00 file=test2.raw,if=none,media=disk,readonly=off,werror=stop,rerror=stop,id=drive_del

3.(qemu)device_add virtio-blk-pci,id=del,drive=drive_del

4.(qemu)drive_del drive_del

5.(qemu)device_del del

Actual results:
the device named "del" does not work .The disk still can not been shown in the windows guest ,when I tried to do some write operation ,the terminal stuck instead of guest pause 

Expected results:
The PCI Device named "del" should be deleted as well
guest can not see this partition


Additional info:
1.Tried to Device_del del first ,then no issue occurs
2.Tried to hot-unplug disk from windows guest ,then no issue occurs
3.This bug may related to https://bugzilla.redhat.com/show_bug.cgi?id=1004154 ,(I mean the terminal hang in the guest part )

Comment 7 CongLi 2018-07-19 08:27:25 UTC
Tested with latest version, steps are same as comment 0, no such issue now:
qemu-kvm-rhev-2.12.0-7.el7.x86_64

Close this bug.


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