Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1038450

Summary: Process of block_stream should be stopped immediately when nfs server is down
Product: Red Hat Enterprise Linux 7 Reporter: Qian Guo <qiguo>
Component: qemu-kvmAssignee: Jeff Cody <jcody>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: acathrow, hhuang, juzhang, michen, shu, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-10 19:29:17 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:

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.