A default OpenSSH configuration in Fedora 21 and earlier promotes user's locale settings when ssh-ing into a remote server. If the locale files don't exist on the server, installing IPA master will fail while running ipa-client-install as it tries to set a locale:
[root@fc1 ~]# locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=ru_RU.UTF-8 LC_CTYPE="ru_RU.UTF-8" LC_NUMERIC="ru_RU.UTF-8" LC_TIME="ru_RU.UTF-8" LC_COLLATE="ru_RU.UTF-8" LC_MONETARY="ru_RU.UTF-8" LC_MESSAGES="ru_RU.UTF-8" LC_PAPER="ru_RU.UTF-8" LC_NAME="ru_RU.UTF-8" LC_ADDRESS="ru_RU.UTF-8" LC_TELEPHONE="ru_RU.UTF-8" LC_MEASUREMENT="ru_RU.UTF-8" LC_IDENTIFICATION="ru_RU.UTF-8" LC_ALL= [root@fc1 ~]# ls -la /usr/share/locale/ en_GB/ en_US/ locale.alias [root@fc1 ~]# ipa-server-install [arguments] ... Configuration of client side components failed! ipa-client-install returned: Command ''/usr/sbin/ipa-client-install' '--on-master' '--unattended' '--domain' 'ipacloud.test' '--server' 'fc1.ipacloud.test' '--realm' 'IPACLOUD.TEST' '--hostname' 'fc1.ipacloud.test' '--mkhomedir'' returned non-zero exit status 1 # tail /var/log/ipaclient-install.log ... 2015-02-11T11:54:44Z DEBUG stderr=Traceback (most recent call last): File "/usr/sbin/authconfig", line 32, in <module> locale.setlocale(locale.LC_ALL, '') File "/usr/lib64/python2.7/locale.py", line 579, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting
As result, installing IPA master fails.
What is the proposed fix in this case?
I think we can catch the locale.Error and force en_US.utf-8 locale.
We can't catch the error, it is raised inside authconfig.
This should be fixed in authconfig.
left open as a tracker
authconfig upstream bug: https://bugzilla.redhat.com/show_bug.cgi?id=1193538
4.1.3 was released.
4.1.4 was released, moving to new milestone
Was fixed in authconfig in f22. There is no plan to backport it to f21 yet.
Moving tickets as per freeipa-devel message.
closing given that f21 will OEL soon and it's fixed in f22.
Metadata Update from @abbra: - Issue assigned to mbabinsk - Issue set to the milestone: FreeIPA 4.2.1
Login to comment on this ticket.