Bug 836967

Summary: "<type 'exceptions.NameError'>: global name '_' is not defined" in rhn_check
Product: Red Hat Enterprise Linux 6 Reporter: Jan Hutař <jhutar>
Component: rhn-client-toolsAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.3   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-06 09:21:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Hutař 2012-07-02 10:55:27 UTC
Description of problem:
When there are 2 rhn_check-s running, instead of error message "Attempting to run more than one instance of rhn_check. Exiting." we get traceback "<type 'exceptions.NameError'>: global name '_' is not defined"


Version-Release number of selected component (if applicable):
rhn-setup-1.0.0-87.el6.noarch.rpm


How reproducible:
always


Steps to Reproduce:
1. rhn_check & ; rhn_check


Actual results:
On command line:
An error has occurred:
<type 'exceptions.NameError'>
See /var/log/up2date for more information

In /var/log/up2date:
[Mon Jul  2 06:50:34 2012] up2date 
Traceback (most recent call last):
  File "/usr/sbin/rhn_check", line 383, in <module>
    cli.run()
  File "/usr/share/rhn/up2date_client/rhncli.py", line 96, in run
    sys.exit(self.main() or 0)
  File "/usr/sbin/rhn_check", line 74, in main
    CheckCli.__check_instance_lock()
  File "/usr/sbin/rhn_check", line 378, in __check_instance_lock
    sys.stderr.write(rhncli.utf8_encode(_("Attempting to run more than one instance of rhn_check. Exiting.\n")))
<type 'exceptions.NameError'>: global name '_' is not defined


Expected results:
Just error message "Attempting to run more than one instance of rhn_check. Exiting." should be printed.


Additional info:
This seems to be a regression caused by spacewalk.git commit 276bca83.

Comment 2 RHEL Program Management 2012-07-10 08:16:46 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 3 RHEL Program Management 2012-07-11 01:51:02 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 4 Milan Zázrivec 2012-08-06 09:21:43 UTC

*** This bug has been marked as a duplicate of bug 830776 ***