Bug 1576312

Summary: The error info is not accurate when creating image just specifying size but not image file name
Product: Red Hat Enterprise Linux 7 Reporter: Tingting Mao <timao>
Component: qemu-kvm-rhevAssignee: Hanna Czenczek <hreitz>
Status: CLOSED WONTFIX QA Contact: Tingting Mao <timao>
Severity: low Docs Contact:
Priority: low    
Version: 7.6CC: chaoyang, juzhang, knoel, michen, ngu, pingl, timao, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-21 23:07:16 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 Tingting Mao 2018-05-09 08:25:11 UTC
Description of problem:
The error info is not accurate when creating image just specifying size but not image file name

Version-Release number of selected component (if applicable):
qemu-kvm-rhev-2.12.0-1.el7

How reproducible:
100%

Steps to Reproduce:
# qemu-img create -f qcow2 10G
qemu-img: 10G: Image creation needs a size parameter


Actual results:


Expected results:
The error info should be like as below:
qemu-img: Image creation needs a image file name
Try 'qemu-img --help' for more information

Additional info:

Comment 3 Ademar Reis 2018-12-21 23:07:16 UTC
(In reply to Tingting Mao from comment #0)
> Description of problem:
> The error info is not accurate when creating image just specifying size but
> not image file name
> 
> Version-Release number of selected component (if applicable):
> qemu-kvm-rhev-2.12.0-1.el7
> 
> How reproducible:
> 100%
> 
> Steps to Reproduce:
> # qemu-img create -f qcow2 10G
> qemu-img: 10G: Image creation needs a size parameter
> 

In the command line above, there's nothing to indicate to qemu-img that 10G is the size. As far as it knows, "10G" is the name of the image and you're not providing the size.

I understand this might be confusing, but I'm closing this one because we need to focus on high priority issues.