Bug 871784

Summary: -readconfig with a non-existing file won't prompt any error
Product: Red Hat Enterprise Linux 7 Reporter: Shaolong Hu <shu>
Component: qemu-kvmAssignee: Gerd Hoffmann <kraxel>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 7.0CC: acathrow, areis, bsarathy, hhuang, huding, juzhang, michen, mkenneth, virt-maint
Target Milestone: pre-dev-freeze   
Target Release: 7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 12:48:00 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 Shaolong Hu 2012-10-31 11:16:32 UTC
Description of problem:
------------------------
-readconfig with a non-existed file won't prompt any error, qemu-kvm exists quietly.

Version-Release number of selected component (if applicable):
-----------------------------------------------------------------
qemu-kvm-0.12.1.2-2.331.el6.x86_64

How reproducible:
-----------------
100%

Steps to Reproduce:
--------------------
1.
/usr/libexec/qemu-kvm -readconfig $non-existing-file

Comment 2 Gerd Hoffmann 2012-11-14 09:35:17 UTC
Fixed upstream.  Is this important enougth to backport to rhel6?
I'm tempted to just move this to rhel7.

Comment 3 Ademar Reis 2012-11-19 21:46:25 UTC
(In reply to comment #2)
> Fixed upstream.  Is this important enougth to backport to rhel6?
> I'm tempted to just move this to rhel7.

Agree. Please add a link to the commit or a copy/paste of the SHA1 + changelog and then move this bug to ON_QA.

Comment 5 Gerd Hoffmann 2013-03-20 15:00:10 UTC
Fixed upstream.

Comment 7 huiqingding 2014-01-21 01:57:19 UTC
Verify this issue using the following version:
kernel-3.10.0-67.el7.x86_64
qemu-kvm-1.5.3-38.el7.x86_64

Steps to verification
1. Read a non-existing config file
# /usr/libexec/qemu-kvm -readconfig aaa.txt

Actual results:
qemu-kvm quits with error information:
read config aaa.txt: No such file or directory

Based on the above results, I think this bug has been fixed.

Comment 9 Ludek Smid 2014-06-13 12:48:00 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.