Bug 1038450 - Process of block_stream should be stopped immediately when nfs server is down
Summary: Process of block_stream should be stopped immediately when nfs server is down
Keywords:
Status: CLOSED NOTABUG
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: Jeff Cody
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-05 07:04 UTC by Qian Guo
Modified: 2013-12-10 19:29 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-10 19:29:17 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Qian Guo 2013-12-05 07:04:32 UTC
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:

Comment 2 Ademar Reis 2013-12-10 19:29:17 UTC
This is a consequence of the asynchronous implementation and therefore expected behavior.


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