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 1211550 - weird error report when fail to parse parameter --soft-limit of memtune
Summary: weird error report when fail to parse parameter --soft-limit of memtune
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Ján Tomko
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-14 10:03 UTC by Shanzhi Yu
Modified: 2015-11-19 06:28 UTC (History)
6 users (show)

Fixed In Version: libvirt-1.2.15-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 06:28:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2202 0 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2015-11-19 08:17:58 UTC

Description Shanzhi Yu 2015-04-14 10:03:47 UTC
Description of problem:

weird error report when fail to parse parameter --soft-limit of memtune

Version-Release number of selected component (if applicable):

libvirt-1.2.14-1.el7.x86_64

How reproducible:

100%

Steps to Reproduce:

1. Prepare a running guest
# virsh list
 Id    Name                           State
----------------------------------------------------
 2     r7                             running


2. set guest memory parameters

# virsh memtune r7 --hard-limit 20417224 --soft-limit 9007199254740992  --swap-hard-limit 35417224
error: Unable to parse integer parameter 'NAME'


Actual results:


Expected results:

A more readable error like

# virsh memtune r7 --hard-limit 20417224 --soft-limit 9007199254740992  --swap-hard-limit 35417224
error: Unable to parse integer parameter soft-limit

Additional info:

Comment 1 Ján Tomko 2015-04-14 12:17:53 UTC
Fixed upstream by:
commit 8ff9f2457dd02627587457c2d7879180c8b872ef
Author:     Shanzhi Yu <shyu>
AuthorDate: 2015-04-14 18:24:40 +0800
Commit:     Ján Tomko <jtomko>
CommitDate: 2015-04-14 13:48:29 +0200

    virsh: improve the error for wrong memtune parameters
    
    When set guest memory with a invalid parameter of --soft-limit,
    it posts weird error:
    
    $ virsh memtune r7 --hard-limit 20417224 --soft-limit 9007199254740992 \
      --swap-hard-limit 35417224
    error: Unable to parse integer parameter 'NAME
    
    Change it to
    
    error: Unable to parse integer parameter soft-limit
    
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1211550
    Signed-off-by: Shanzhi Yu <shyu>
    Signed-off-by: Ján Tomko <jtomko>

git describe: v1.2.14-145-g8ff9f24

Comment 3 Fangge Jin 2015-07-13 10:05:43 UTC
I can reproduce this bug on build libvirt-1.2.14-1.el7.x86_64.

Verify this bug on build libvirt-1.2.17-2.el7.x86_64.

Verify steps:
1. Prepare a running guest
# virsh list
 Id    Name                           State
----------------------------------------------------
 2     r7                             running


2. set guest memory parameters

# virsh memtune r7 --hard-limit 20417224 --soft-limit 9007199254740992  --swap-hard-limit 35417224
error: Unable to parse integer parameter soft-limit

Move to verified.

Comment 5 errata-xmlrpc 2015-11-19 06:28:26 UTC
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


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