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 836231 - Improve error message when set wrong bool value in init file
Summary: Improve error message when set wrong bool value in init file
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-top
Version: 6.3
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-28 12:44 UTC by yuping zhang
Modified: 2016-08-23 17:55 UTC (History)
6 users (show)

Fixed In Version: virt-top-1.0.4-3.14.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-23 17:55:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description yuping zhang 2012-06-28 12:44:23 UTC
Description of problem:
Set a wrong string in init file,the virt-top exit without pop up 
meaningful error message.

Version-Release number of selected component (if applicable):
virt-top-1.0.4-3.13.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1.Create a init file like this :
# cat ~/.virt-toprc
# .virt-toprc virt-top configuration file
# generated on 2011-08-31 03:57:48 by root

delay 5
sort id
connect qemu:///system
csv-cpu true
script false
stream false
block-in-bytes true
end-time +20

# To send debug and error messages to a file, uncomment next line
debug virt-top.out

# Enable CSV output to the named file
csv virt-top.csv

# To protect this file from being overwritten, uncomment next line
#overwrite-init-file false

2. Change the line "csv-cpu true"  to "csv-cpu ture".

3.Run virt-top
#virt-top

Actual results:
# virt-top
Fatal error: exception Invalid_argument("bool_of_string")
# echo $?
2

Expected results:
Give meaningful error message,for example,the line content, invalid 
argument or something like that.

Additional info:

Comment 2 yuping zhang 2012-09-29 07:17:07 UTC
Test this issue with virt-top-1.0.4-3.14.el6.x86_64.

Test this issue with steps in description.
In step3:
# virt-top
/root/.virt-toprc: could not parse 'ture' in init file: expecting true|false[root@5-10-yuping ~]# 

The error message updated.But there is no return after the error message.It will display like above. 

And I found if there is a space before one line,then run virt-top:
# cat .virt-toprc
 # .virt-toprc virt-top configuration file
 # generated on 2011-08-31 03:57:48 by root

              delay 5
 ....

# virt-top
/root/.virt-toprc:4: configuration item ``'' ignored
virt-top will run successfully,but the error message still need to be updated.

I found the punctuation in error message is ``'',for example:
#virt-top
/root/.virt-toprc:5: configuration item ``ort'' ignored
I think maybe it should be "" or '',not ``''.

So I change the bug status to ASSIGNED.

Comment 4 RHEL Program Management 2013-10-14 00:35:17 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 5 Richard W.M. Jones 2016-08-23 17:55:49 UTC
We're not going to fix this for RHEL 6, so closing.


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