Bug 1607616

Summary: Traceback in messages file during ipa-server-install: File "/usr/libexec/certmonger/dogtag-ipa-ca-renew-agent-submit", line 541, in <module>#012
Product: Red Hat Enterprise Linux 7 Reporter: Rob Crittenden <rcritten>
Component: ipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED ERRATA QA Contact: Ganna Kaihorodova <gkaihoro>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.6CC: abokovoy, amore, cheimes, frenaud, gkaihoro, ipa-qe, ksiddiqu, nalin, nsoman, pasik, pvoborni, rcritten, spoore, sumenon, tdudlak, tscherf, xdong
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-4.6.4-5.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1596161 Environment:
Last Closed: 2018-10-30 11:00:22 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:
Bug Depends On: 1596161    
Bug Blocks:    

Description Rob Crittenden 2018-07-23 20:17:40 UTC
+++ This bug was initially created as a clone of Bug #1596161 +++

Description of problem: Traceback seen in messages file during ipa-server-install: File "/usr/libexec/certmonger/dogtag-ipa-ca-renew-agent-submit", line 541, in <module>#012

Version-Release number of selected component (if applicable):
[root@master ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.6 Beta (Maipo)

ipa-server-4.6.4-1.el7.x86_64
389-ds-base-1.3.8.2-1.el7.x86_64
certmonger-0.78.4-6.el7.x86_64
sssd-1.16.2-1.el7.x86_64
krb5-server-1.15.1-32.el7.x86_64
pki-ca-10.5.9-1.el7.noarch
pki-server-10.5.9-1.el7.noarch
certmonger-0.78.4-6.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install IPA server
2. Check /var/log/messages

Actual results:
Traceback is seen in /var/log/messages file.

Jun 28 06:42:31 ipaqavma dogtag-ipa-ca-renew-agent-submit: Traceback (most recent call last):#012  File "/usr/libexec/certmonger/dogtag-ipa-ca-renew-agent-submit", line 541, in <module>#012    sys.exit(main())#012  File "/usr/libexec/certmonger/dogtag-ipa-ca-renew-agent-submit", line 502, in main#012    api.bootstrap(in_server=True, context='renew', confdir=paths.ETC_IPA)#012  File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 491, in bootstrap#012    raise errors.SystemEncodingError(encoding=fse)#012SystemEncodingError: System encoding must be UTF-8, 'ANSI_X3.4-1968' is not supported. Set LC_ALL="C.UTF-8", or LC_ALL="" and LC_CTYPE="C.UTF-8".

Expected results:
Traceback should be fixed.

Additional info:

IPA needs to set the minimum version of certmonger to 0.78.4-8 to pick up fixed version.

Comment 3 Rob Crittenden 2018-07-24 14:22:27 UTC
This was created as a tracker to ensure that the certmonger dependencies were set properly.

It looks like this bug actually lies within ipa so should be investigated there instead.

The certmonger bug is going to remain open for now until we can assess whether the LANG changes there are needed in addition to any IPA changes.

Comment 4 Rob Crittenden 2018-07-24 16:29:33 UTC
locale is not my forte but I think we need to revert https://pagure.io/freeipa/c/e1bd827bbf56970ddd02ec174bf2317b64e75514 because the C.UTF-8 locale is not available in the glibc provided in RHEL 7.

Comment 5 Alexander Bokovoy 2018-07-24 16:45:33 UTC
Not revert but change C.UTF-8 to en_US.UTF-8. I think I commented on a similar bug today already: https://bugzilla.redhat.com/show_bug.cgi?id=1598044

Comment 6 Tibor Dudlák 2018-08-13 08:43:22 UTC
*downstream* patch has been pushed in the repo

Comment 7 Florence Blanc-Renaud 2018-08-13 09:03:33 UTC
Note: the downstream patch reverts https://pagure.io/freeipa/c/e1bd827bbf56970ddd02ec174bf2317b64e75514 Require UTF-8 fs encoding

Comment 9 Scott Poore 2018-08-13 14:30:55 UTC
Note that the ipa-certupdate issue I was seeing before seems to be resolved with the fixed version of certmonger and ipa:

https://bugzilla.redhat.com/show_bug.cgi?id=1598044#c14

Comment 10 Scott Poore 2018-08-13 15:07:02 UTC
Also, not seeing traceback in logs:
[root@rhel7-4 log]# grep -i traceback /var/log/messages 
[root@rhel7-4 log]# 

[root@rhel7-4 log]# grep -ri traceback /var/log/* | grep -v anaconda
[root@rhel7-4 log]#

Comment 13 errata-xmlrpc 2018-10-30 11:00:22 UTC
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.

https://access.redhat.com/errata/RHBA-2018:3187