Hide Forgot
Description of problem: Create snapshot in the directory that mount a nfs server, then do block stream, during streaming, stop the nfs server, the process can not stopped immediately, but stopped untill it finished 10% Version-Release number of selected component (if applicable): # rpm -q qemu-kvm-rhev qemu-kvm-rhev-1.5.3-20.el7.x86_64 # uname -r 3.10.0-57.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1.Boot guest like this: # /usr/libexec/qemu-kvm -M pc -cpu Penryn,-kvm_pv_eoi -enable-kvm -m 4096 -smp 4,socket=1,cores=4,threads=1 -name rhel7 -nodefaults -nodefconfig -drive file=iscsi://10.66.71.180:3260/iqn.10.66.71.180.target1/1,if=none,id=drive-virtio-disk0,format=qcow2,werror=stop,rerror=stop,aio=native -device virtio-blk-pci,id=virtio-disk0,drive=drive-virtio-disk0 -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -vnc :10 -vga qxl -global qxl-vga.vram_size=67108864 -monitor stdio -boot menu=on -netdev tap,id=netdev0,vhost=on,fd=7 -device virtioDo net-pci,mac=46:c5:83:01:5f:4c,netdev=netdev0,id=net0 -device virtio-balloon-pci,id=b1 -drive file=iscsi://10.66.71.180:3260/iqn.10.66.71.180.target4/1,if=none,id=drive-virtio-disk1,format=qcow2,werror=stop,rerror=stop,aio=native -device virtio-blk-pci,id=virtio-disk1,drive=drive-virtio-disk1 2. Mount a nfs server at /mnt/ # mount 10.66.71.180:/home/ /mnt/ 3.Create snapshot for drive-virtio-disk1 in /mnt (qemu) snapshot_blkdev drive-virtio-disk1 /mnt/snashot1 4.Block stream drive-virtio-disk1 (qemu) block_stream drive-virtio-disk1 5.Stop the nfs server Actual results: After stop the nfs server, check the process of block-job ... (qemu) info block-jobs Streaming device drive-virtio-disk1: Completed 489816064 of 5368709120 bytes, speed limit 0 bytes/s (qemu) info block-jobs Streaming device drive-virtio-disk1: Completed 502923264 of 5368709120 bytes, speed l.imit 0 bytes/s (qemu) info block-jobs Streaming device drive-virtio-disk1: Completed 506462208 of 5368709120 bytes, speed limit 0 bytes/s (qemu) info block-jobs Streaming device drive-virtio-disk1: Completed 514326528 of 5368709120 bytes, speed limit 0 bytes/s (qemu) info block-jobs Streaming device drive-virtio-disk1: Completed 521273344 of 5368709120 bytes, speed limit 0 bytes/s (qemu) info block-jobs Streaming device drive-virtio-disk1: Completed 536870912 of 5368709120 bytes, speed limit 0 bytes/s The streaming can not stopped immediately, but until completed 10% Expected results: When nfs server is stopped, streaming can be stopped immediately. Additional info:
This is a consequence of the asynchronous implementation and therefore expected behavior.