Bug 1393042

Summary: system_reset should clear pending request for error (IDE)
Product: Red Hat Enterprise Linux 7 Reporter: Marcel Kolaja <mkolaja>
Component: qemu-kvmAssignee: John Snow <jsnow>
Status: CLOSED ERRATA QA Contact: Yiqian Wei <yiwei>
Severity: medium Docs Contact:
Priority: high    
Version: 7.2CC: ailan, areis, armbru, chayang, huding, jsnow, juzhang, knoel, michen, mkenneth, mnavrati, qzhang, rbalakri, virt-bugs, virt-maint, zhguo
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: x86_64   
OS: Windows   
Whiteboard:
Fixed In Version: qemu-kvm-1.5.3-126.el7_3.1 Doc Type: Bug Fix
Doc Text:
Previously, using the qemu-kvm system_reset utility when no space was left on on the host caused the qemu-kvm service to terminate with a segmentation fault. The underlying source code has been modified to fix this bug. As a result, the qemu-kvm process stays active, and guest systems can be reset without an error.
Story Points: ---
Clone Of: 1299875 Environment:
Last Closed: 2017-01-17 18:08:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1299875    
Bug Blocks:    

Description Marcel Kolaja 2016-11-08 17:48:12 UTC
This bug has been copied from bug #1299875 and has been proposed
to be backported to 7.3 z-stream (EUS).

Comment 3 Miroslav Rezanina 2016-11-11 17:43:31 UTC
Fix included in qemu-kvm-1.5.3-126.el7_3.1

Comment 5 FuXiangChun 2016-11-15 02:36:29 UTC
reproduced this bug with qemu-kvm-1.5.3-105.el7_2.7.x86_64.

# qemu-img create -f qcow2 test.qcow2 8G
Formatting 'test.qcow2', fmt=qcow2 size=8589934592 encryption=off cluster_size=65536 lazy_refcounts=off
 
# ulimit -f 256

#/usr/libexec/qemu-kvm -m 2048 -smp 2 \
    \
    -drive file=test.qcow2,werror=stop,rerror=stop,cache=writeback,id=hd0,if=none \
    -device ide-drive,drive=hd0 \
    \
    -drive id=cd0,readonly,media=cdrom,cache=writeback,if=none,file=RHEL-7.3-20161019.0-Server-x86_64-dvd1.iso \
    -device ide-cd,drive=cd0 \
    -monitor stdio \
    -vnc :1

(qemu) system_reset 

result:

(qemu) cli: line 9: 25351 Segmentation fault      (core dumped) /usr/libexec/qemu-kvm -m 2048 -smp 2 -drive file=test.qcow2,werror=stop,rerror=stop,cache=writeback,id=hd0,if=none -device ide-drive,drive=hd0 -drive id=cd0,readonly,media=cdrom,cache=writeback,if=none,file=RHEL-7.3-20161019.0-Server-x86_64-dvd1.iso -device ide-cd,drive=cd0 -monitor stdio -vnc :1


Verified this bug with qemu-kvm-1.5.3-126.el7_3.1.x86_64.

qemu-kvm process works well. 

So, This bug is fixed.

Comment 8 errata-xmlrpc 2017-01-17 18:08:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0071.html