Bug 1376770

Summary: sealert tracebacks when lithuanian locales are used
Product: Red Hat Enterprise Linux 7 Reporter: Milos Malik <mmalik>
Component: policycoreutilsAssignee: Vit Mojzis <vmojzis>
Status: CLOSED ERRATA QA Contact: Dalibor Pospíšil <dapospis>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: dapospis, dwalsh, lvrabec, mgrepl, mmalik, plautrba, ssekidde, vmojzis
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1468985 (view as bug list) Environment:
Last Closed: 2018-04-10 16:36:29 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:    
Bug Blocks: 1468985    

Description Milos Malik 2016-09-16 11:29:31 UTC
Description of problem:
* the same happens for LANG=lithuanian, LANG=lt_LT, LANG=lt_LT.iso885913 and LANG=lt_LT.utf8

Version-Release number of selected component (if applicable):
setroubleshoot-3.2.27.2-3.el7.s390x
setroubleshoot-server-3.2.27.2-3.el7.s390x
setroubleshoot-plugins-3.0.64-2.1.el7.noarch

How reproducible:
* always

Actual results:
:: [  BEGIN   ] :: Running 'LANG=lt_LT sealert -a /var/log/audit/audit.log 2>&1 | tee /tmp/tmp.xmThY35NFx | grep -i -e traceback -e exception '
Traceback (most recent call last):
:: [   FAIL   ] :: Command 'LANG=lt_LT sealert -a /var/log/audit/audit.log 2>&1 | tee /tmp/tmp.xmThY35NFx | grep -i -e traceback -e exception ' (Expected 1, got 0)
:: [  BEGIN   ] :: Running 'cat /tmp/tmp.xmThY35NFx'
Traceback (most recent call last):
  File "/usr/bin/sealert", line 49, in <module>
    from setroubleshoot.errcode import *
  File "/usr/lib64/python2.7/site-packages/setroubleshoot/errcode.py", line 20, in <module>
    translation=gettext.translation('setroubleshoot-plugins', fallback=True)
  File "/usr/lib64/python2.7/gettext.py", line 480, in translation
    t = _translations.setdefault(key, class_(fp))
  File "/usr/lib64/python2.7/gettext.py", line 180, in __init__
    self._parse(fp)
  File "/usr/lib64/python2.7/gettext.py", line 317, in _parse
    self.plural = c2py(plural)
  File "/usr/lib64/python2.7/gettext.py", line 93, in c2py
    raise ValueError, 'plural forms expression could be dangerous'
ValueError: plural forms expression could be dangerous
:: [   PASS   ] :: Command 'cat /tmp/tmp.xmThY35NFx' (Expected 0, got 0)

Expected results:
* no tracebacks

Comment 1 Vit Mojzis 2017-07-10 07:57:30 UTC
Switching component since this bug is caused by a typo in .po files in policycoreutils. Please see RHBZ#1364114 for more details.

Comment 7 errata-xmlrpc 2018-04-10 16:36:29 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/RHSA-2018:0913