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:

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.