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 988700 - "invalid char in expression" is not very friendly when use float type to set qemu i/o throttle
Summary: "invalid char in expression" is not very friendly when use float type to set ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Fam Zheng
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 988264
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-26 07:32 UTC by Sibiao Luo
Modified: 2013-08-01 13:27 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 988264
Environment:
Last Closed: 2013-08-01 03:35:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 1 Sibiao Luo 2013-07-26 07:34:00 UTC
host info:
3.10.0-0.rc7.64.el7.x86_64
qemu-kvm-1.5.1-2.el7.x86_64
seabios-1.7.2.2-2.el7.x86_64
guest info:
3.10.0-0.rc7.64.el7.x86_64

# /usr/libexec/qemu-kvm -cpu SandyBridge -enable-kvm -m 4096 -smp 4,sockets=2,cores=2,threads=1 -no-kvm-pit-reinjection -name sluo -uuid 43425b70-86e5-4664-bf2c-3b7669918bac -rtc base=localtime,clock=host,driftfix=slew -device virtio-serial-pci,id=virtio-serial0,max_ports=16,vectors=0,bus=pci.0,addr=0x3 -drive file=/home/RHEL-Server-6.4-64-virtio.qcow2,if=none,id=drive-system-disk,format=qcow2,cache=none,aio=native,werror=stop,rerror=stop,serial="QEMU-DISK1" -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-system-disk,id=system-disk,bootindex=1 -device virtio-balloon-pci,id=ballooning,bus=pci.0,addr=0x5 -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -netdev tap,id=hostnet0,vhost=on,script=/etc/qemu-ifup -device virtio-net-pci,netdev=hostnet0,id=virtio-net-pci0,mac=2C:41:38:B6:41:21,bus=pci.0,addr=0x6,bootindex=2 -k en-us -boot menu=on -qmp tcp:0:4444,server,nowait -serial unix:/tmp/ttyS0,server,nowait -vnc :1 -spice port=5931,disable-ticketing -monitor stdio
(qemu) block_set_io_throttle drive-system-disk 9999999.999 0 0 0 0 0
invalid char in expression

Comment 2 Fam Zheng 2013-08-01 03:35:24 UTC
This is not a bug. bps needs a integer value and 9999999.999 is not one. The dot is an invalid char as the parameter.

Comment 3 Sibiao Luo 2013-08-01 06:10:42 UTC
(In reply to Fam Zheng from comment #2)
> This is not a bug. bps needs a integer value and 9999999.999 is not one. The
> dot is an invalid char as the parameter.
yes, but this bug is just for the prompt 'invalid char in expression' which is not friendly. QEMU should disable and prompt that cannt use float type value, that's a expected result.

Comment 4 Fam Zheng 2013-08-01 06:52:47 UTC
Not being friendly doesn't mean it's a bug, the information is correct and expected by what we have now. And it is not a io throttling specific logic, it's about hmp command line parsing, and applies to any HMP command that takes a integer as argument.

I agree the message can be improved and more friendly, if you feel it's desirable, please file another request for enhancement for HMP interface, so someone can invest in it later, if it's reasonable and worthwhile.

Comment 5 Sibiao Luo 2013-08-01 06:59:24 UTC
(In reply to Fam Zheng from comment #4)
> Not being friendly doesn't mean it's a bug, the information is correct and
> expected by what we have now. And it is not a io throttling specific logic,
> it's about hmp command line parsing, and applies to any HMP command that
> takes a integer as argument.
OK, that's make sense, it's HMP command uses a different parser.
> I agree the message can be improved and more friendly, if you feel it's
> desirable, please file another request for enhancement for HMP interface, so
> someone can invest in it later, if it's reasonable and worthwhile.
What's do you think it's worth to fix? we can fix a bug if yes.

Comment 6 Ademar Reis 2013-08-01 13:27:34 UTC
Let's agree it's a bug in HMP (actually a request for improvement) but I don't think it's worth fixing.

We don't support HMP and the error message is not that bad, so I'm marking it WONTFIX.


Note You need to log in before you can comment on or make changes to this bug.