Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1044245

Summary: Fail to run (locale.Error: unsupported locale setting)
Product: Red Hat Enterprise Linux 7 Reporter: Noriko Mizumoto <noriko>
Component: authconfigAssignee: Tomas Mraz <tmraz>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: dspurek, noriko, spoore
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: 2013-12-18 05:55:58 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 Noriko Mizumoto 2013-12-18 01:11:17 UTC
Description of problem:
Fail to run (locale.Error: unsupported locale setting)

Version-Release number of selected component (if applicable):
Filed from caserun (http://download.englab.bne.redhat.com/pub/rhel/rel-eng/RHEL-7.0-20131127.1/compose/Client/x86_64/os/)
authconfig-6.2.8-1.el7.x86_64

How reproducible:


Steps to Reproduce:
1. [root@localhost ~]# LANG=ja-JP.UTF-8 authconfig
   [root@localhost ~]# LANG=ja-JP.UTF-8 authconfig-tui


Actual results:
[root@localhost ~]# LANG=ja-JP.UTF-8 authconfig
Traceback (most recent call last):
  File "/sbin/authconfig", line 31, in <module>
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib64/python2.7/locale.py", line 547, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting


Expected results:
No error

Additional info:

Comment 2 Scott Poore 2014-09-19 18:25:24 UTC
Noriko,

Can you give more details on why this one is closed notabug?

My team saw similar on RHEL6 during ipa-server-install.  So, is that expected behavior then?  Possibly in my case triggered by something with how ipa-server-install was calling authconfig?  

We haven't seen the issue since 9/9 so it appears to have been resolved.  I'm just wondering why this one was closed.

Thanks,
Scott

FYI, the abrt report we saw related to this:

abrt_version:   2.0.8
cmdline:        /usr/bin/python /usr/sbin/authconfig --enablesssdauth --update --enablesssd
executable:     /usr/sbin/authconfig
hostname:       nocp13.testrelm.test
kernel:         2.6.32-498.el6.x86_64
last_occurrence: 1409649062
time:           Tue 02 Sep 2014 05:11:02 AM EDT
uid:            0
username:       root

sosreport.tar.xz: Binary file, 976272 bytes

backtrace:
:locale.py:513:setlocale:Error: unsupported locale setting
:
:Traceback (most recent call last):
:  File "/usr/sbin/authconfig", line 33, in <module>
:    locale.setlocale(locale.LC_ALL, '')
:  File "/usr/lib64/python2.6/locale.py", line 513, in setlocale
:    return _setlocale(category, locale)
:Error: unsupported locale setting
:
:Local variables in innermost frame:
:locale: ''
:category: 6

Comment 3 Noriko Mizumoto 2014-09-23 03:06:28 UTC
Hi Scott

It was my bad... 'ja-JP' (dash used) was typo and 'ja_JP' (underscore used) worked fine.

* This does not work as dash used.
[root@localhost ~]# LANG=ja-JP.UTF-8 authconfig
[root@localhost ~]# LANG=ja-JP.UTF-8 authconfig-tui

* This works fine as underscore used.
[root@localhost ~]# LANG=ja_JP.UTF-8 authconfig
[root@localhost ~]# LANG=ja_JP.UTF-8 authconfig-tui

Comment 4 Scott Poore 2014-09-23 03:10:41 UTC
Noriko,

Ah, ok.  Thanks for the info.