Marian Horban <mhor...@mirantis.com> writes: > Public bug reported: > > device_del and drive_del commands don't cause virtio disk detaching > > Steps to reproduce: > 1. Run instance > > 2. Attach virtio scsi disk > > 3. Reboot instance > > 4. Immediately after reboot detach disk with QEMU commands: > device_del > drive_del
Exact commands, please, for steps 2..4 (step 1 is covered below). > Expected result: > Disk should be detached anyway > > Actual: > Domain info contains attached disk even after waiting long period of time(5 > min in my case). What do you mean by "domain info"? > Additional info: > QEMU process: > root 29010 42.6 1.9 562036 61272 ? Rl 03:42 0:01 > /usr/bin/qemu-system-x86_64 -name instance-00000069 -S -machine > pc-i440fx-trusty,accel=tcg,usb=off -m 64 -realtime mlock=off -smp > 1,sockets=1,cores=1,threads=1 -uuid d2418536-2547-4740-96b5-0d4f1d74b9f3 > -smbios type=1,manufacturer=OpenStack Foundation,product=OpenStack > Nova,version=13.0.0,serial=1fd8f69a-909b-4ed1-aae9-4fc9318fc622,uuid=d2418536-2547-4740-96b5-0d4f1d74b9f3,family=Virtual > Machine -no-user-config -nodefaults -chardev > socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-00000069.monitor,server,nowait > -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown > -boot strict=on -kernel > /opt/stack/data/nova/instances/d2418536-2547-4740-96b5-0d4f1d74b9f3/kernel > -initrd > /opt/stack/data/nova/instances/d2418536-2547-4740-96b5-0d4f1d74b9f3/ramdisk > -append root=/dev/vda console=tty0 console=ttyS0 no_timer_check -device > piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive > file=/opt/stack/data/nova/instances/d2418536-2547-4740-96b5-0d4f1d74b9f3/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none > -device > virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 > -drive > file=/opt/stack/data/nova/instances/d2418536-2547-4740-96b5-0d4f1d74b9f3/disk.config,if=none,id=drive-ide0-1-1,readonly=on,format=raw,cache=none > -device ide-cd,bus=ide.1,unit=1,drive=drive-ide0-1-1,id=ide0-1-1 -netdev > tap,fd=18,id=hostnet0 -device > virtio-net-pci,netdev=hostnet0,id=net0,mac=fa:16:3e:1a:10:3d,bus=pci.0,addr=0x3 > -chardev > file,id=charserial0,path=/opt/stack/data/nova/instances/d2418536-2547-4740-96b5-0d4f1d74b9f3/console.log > -device isa-serial,chardev=charserial0,id=serial0 -chardev > pty,id=charserial1 -device isa-serial,chardev=charserial1,id=serial1 -vnc > 127.0.0.1:1 -k en-us -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device > virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 > > QEMU version: > qemu-system-x86_64 --version > QEMU emulator version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.19), Copyright (c) > 2003-2008 Fabrice Bellard > > ** Affects: qemu > Importance: Undecided > Status: New