Bug 1250328

Summary: qemu should change to 'pause' if glusterfs server is not connected.
Product: Red Hat Enterprise Linux 7 Reporter: Qian Guo <qiguo>
Component: qemu-kvm-rhevAssignee: Jeff Cody <jcody>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: juzhang, knoel, michen, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-30 23:05:41 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:

Comment 5 Jeff Cody 2017-01-30 23:05:41 UTC
Tested with qemu-kvm-rhev-2.3.0-14.el7.x86_64 and upstream master, in both instances gluster will stop on error.

Commandline:

/usr/libexec/qemu-kvm -enable-kvm -drive file=f18-compact.qcow2,if=virtio,boot=on,aio=native,cache=none,discard=unmap  -m 1024 -boot c -qmp stdio -drive file=gluster://192.168.15.180/gv0/test-10M.qcow2,if=virtio,werror=stop,rerror=stop

Output:

{"timestamp": {"seconds": 1485816906, "microseconds": 359720}, "event": "BLOCK_IO_ERROR", "data": {"device": "virtio1", "nospace": false, "__com.redhat_reason": "eperm", "reason": "Operation not permitted", "operation": "read", "action": "stop"}}
{"timestamp": {"seconds": 1485816906, "microseconds": 359937}, "event": "STOP"}



In the comment #1, the werror and rerror options are omitted.  To stop on errors, use werror=stop,rerror=stop or werror=enospc,rerror=enospc.  By default, QEMU will not stop pause on error.


Closing as NOTABUG.