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.
Description of problem:
When set the the memory statistics polling interval to a value that exceeds its maximum such as 11111111111, the prompt in virsh is incorrect:
# virsh dommemstat virtioraw-0327 --period 11111111111
error: Unable to parse integer parameter.
While that with qmp cmd in qemu is correct:
# {'execute': 'qom-set', 'arguments': {'path': '/machine/peripheral/balloon0', 'property': 'guest-stats-polling-interval', 'value':11111111111}}
{"error": {"class": "GenericError", "desc": "timer value is too big"}}
Version-Release number of selected component (if applicable):
Host kernel: 3.10.0-229.el7.ppc64
Guest kernel: 3.10.0-229.el7.pc64/3.10.0-229.ael7b.ppc64le
Qemu-kvm-rhev: qemu-kvm-rhev-2.2.0-5.el7.ppc64
qemu-kvm-rhev-debuginfo-2.2.0-5.el7.ppc64
How reproducible:
100%
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info:
(In reply to Gu Nini from comment #0)
> Description of problem:
......
>
Please note to reproduce the bug, the guest should be booted up with a memory balloon device.
>
> Version-Release number of selected component (if applicable):
> Host kernel: 3.10.0-229.el7.ppc64
> Guest kernel: 3.10.0-229.el7.pc64/3.10.0-229.ael7b.ppc64le
> Qemu-kvm-rhev: qemu-kvm-rhev-2.2.0-5.el7.ppc64
>
>
The libvirt version is libvirt-1.2.8-16.el7.ppc64
>
>
......
The error message reported by virsh in this and in many similar situations has been greatly improved by the following commit, which has been merged upstream and will be part of the next libvirt release:
commit 449316701b82c77c26f6fca0c28ece6a604ae238
Author: Andrea Bolognani <abologna>
Date: Fri May 15 18:14:39 2015 +0200
virsh: Improve error message on integer value parsing failure.
Replace more than 30 ad-hoc error messages with a single, generic one
that contains the name of the option being processed and some hints
to help the user understand what could have gone wrong.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1207043
v1.2.15-100-g4493167
Test on below packages:
libvirt-1.2.17-2.el7.ppc64le
kernel-3.10.0-292.el7.ppc64le
qemu-kvm-rhev-2.3.0-9.el7.ppc64le
# virsh dommemstat dzhengvm2 --period 11111111111
error: Numeric value '11111111111' for <period> option is malformed or out of range
# virsh dommemstat dzhengvm2 --period -11111111111
error: Numeric value '-11111111111' for <period> option is malformed or out of range
# virsh dommemstat dzhengvm2 --period -1
error: Invalid collection period value '-1'
# virsh dommemstat dzhengvm2 --period 0
# virsh dommemstat dzhengvm2 --period 10000.00
error: Numeric value '10000.00' for <period> option is malformed or out of range
# virsh dommemstat dzhengvm2 --period 2100000000
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-2015-2202.html
Description of problem: When set the the memory statistics polling interval to a value that exceeds its maximum such as 11111111111, the prompt in virsh is incorrect: # virsh dommemstat virtioraw-0327 --period 11111111111 error: Unable to parse integer parameter. While that with qmp cmd in qemu is correct: # {'execute': 'qom-set', 'arguments': {'path': '/machine/peripheral/balloon0', 'property': 'guest-stats-polling-interval', 'value':11111111111}} {"error": {"class": "GenericError", "desc": "timer value is too big"}} Version-Release number of selected component (if applicable): Host kernel: 3.10.0-229.el7.ppc64 Guest kernel: 3.10.0-229.el7.pc64/3.10.0-229.ael7b.ppc64le Qemu-kvm-rhev: qemu-kvm-rhev-2.2.0-5.el7.ppc64 qemu-kvm-rhev-debuginfo-2.2.0-5.el7.ppc64 How reproducible: 100% Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: