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
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
*** Bug 832789 has been marked as a duplicate of this bug. ***
Upstream fix is here: http://gerrit.ovirt.org/5785
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.
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