Bug 831163 - [rhevm-log-collector] - TEXT - Incorrect message for any incorrect syntax
Summary: [rhevm-log-collector] - TEXT - Incorrect message for any incorrect syntax
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-log-collector
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Keith Robertson
QA Contact: Ilanit Stein
URL:
Whiteboard: integration
: 832789 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-12 11:20 UTC by David Botzer
Modified: 2016-07-04 01:34 UTC (History)
10 users (show)

Fixed In Version: si11
Doc Type: Bug Fix
Doc Text:
The log collector did not have the gettext library imported causing many exceptions to be bypassed and resulting in the log collector exiting ungracefully. Now, the log collector imports the gettext library and exits gracefully.
Clone Of:
Environment:
Last Closed: 2012-12-04 18:19:38 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:1530 0 normal SHIPPED_LIVE rhevm-log-collector bug fix update 2012-12-04 23:17:42 UTC

Description David Botzer 2012-06-12 11:20:47 UTC
Description of problem:
I get the following ERROR message, for any incorrect command syntax: user,password etc..
ERROR: _get_hypervisors_from_api: global name '_' is not defined

Version-Release number of selected component (if applicable):
rhevm 3.1, si4

How reproducible:
always

Steps to Reproduce:
1.Run LC command with incorrect password
rhevm-log-collector -u admin@internal -p 12xx -d DCsi4_3-0 list
 

Actual results:
incorrect message
ERROR: _get_hypervisors_from_api: global name '_' is not defined

Expected results:
Should display a correct for and different message for any mistake
user - incorrect user name
psw  - incorrect password
host - cannot find host/ip

Additional info:
I get the same message when trying to connect with LC while jboss is stopped

Comment 1 David Botzer 2012-06-12 13:43:28 UTC
In the same case when jbossas is down there are two possible scenarios here:
1) JBoss is UP and there are no hypervisors.
2) JBoss is down and the tool can't figure out how many hypervisors there are. 

Just need to determine a proper general message

Comment 2 Keith Robertson 2012-06-29 02:18:50 UTC
*** Bug 832789 has been marked as a duplicate of this bug. ***

Comment 3 Keith Robertson 2012-06-29 02:24:17 UTC
Upstream fix is here:  http://gerrit.ovirt.org/5785

Comment 5 Ilanit Stein 2012-08-30 07:44:31 UTC
Tested on SI15.1 and found same error still exist:

[root@lilach-rhel ~]# rhevm-log-collector -u admin@internal -p 12xx -d DCsi4_3-0 list
INFO: /tmp/logcollector does not exist.  It will be created.
ERROR: _get_hypervisors_from_api: global name '_' is not defined
INFO: No hypervisors were found, therefore no hypervisor data will be listed.

Comment 7 errata-xmlrpc 2012-12-04 18:19:38 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.

http://rhn.redhat.com/errata/RHBA-2012-1530.html


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