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 738157

Summary: qemu-kvm doesn't give the fitable error tip when create image
Product: Red Hat Enterprise Linux 6 Reporter: langfang <flang>
Component: qemu-kvmAssignee: Anthony Liguori <aliguori>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 6.2CC: acathrow, juzhang, knoel, kwolf, michen, mkenneth, qzhang, tburke, virt-maint
Target Milestone: rc   
Target Release: 6.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-26 04:30:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description langfang 2011-09-14 07:48:19 UTC
Description of problem:
senario 1)when run the command:'qemu-img create qed win7.qed 10G',
the error tip is not fitable,in fact,this error is  missing parameter '-f'
senario 2)when run the command :'qemu-img create qcow2 win7.qed 10G',the error tip is not fitable.
senario 3)when run the command :'qemu-img create raw win7.qed 10G',the error tip is not fitable.
Version-Release number of selected component (if applicable):
#uname -r
2.6.32-191.el6.x86_64
#rpm -q qemu-kvm
qemu-kvm-0.12.1.2-2.189.el6.x86_64


How reproducible:
100%

Steps to Reproduce:
1.qemu-img create qed win7.qed 10G or ..qcow2.. or ..raw.. 
  
Actual results:
qemu-img: Invalid image size specified! You may use k, M, G or T suffixes for 
qemu-img: kilobytes, megabytes, gigabytes and terabytes.

Expected results:
qemu-kvm should give user a fitable error tip.

Additional info:

Comment 2 Dor Laor 2011-09-15 07:28:35 UTC
You should specify '-f' before the image format, it does work for me this way, cay you please retest?

Comment 3 langfang 2011-09-15 07:46:44 UTC
dor Laor,thanks for your advice.but i think you misunderstand my mean,i mean when run the command missing '-f',for example:'qemu-img create qed win7.qed 10G'
the error is :
'qemu-img: Invalid image size specified! You may use k, M, G or T suffixes for 
 qemu-img: kilobytes, megabytes, gigabytes and terabytes.'
i think this tip is not fitable for this kind of error .thanks~~~~~~~

Comment 4 Dor Laor 2011-09-25 12:10:19 UTC
But the -f should be compulsory meaning this is not a bug