Bug 1468985

Summary: sealert tracebacks when lithuanian locales are used
Product: Red Hat Enterprise Linux 7 Reporter: Vit Mojzis <vmojzis>
Component: setroubleshoot-pluginsAssignee: Petr Lautrbach <plautrba>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: low Docs Contact:
Priority: medium    
Version: 7.3CC: dapospis, lvrabec, mgrepl, mmalik, plautrba, 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: 1376770 Environment:
Last Closed: 2018-04-10 18:36:14 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: 1376770    
Bug Blocks:    

Description Vit Mojzis 2017-07-10 07:42:41 UTC
+++ This bug was initially created as a clone of Bug #1376770 +++

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 2 Vit Mojzis 2017-07-10 07:59:56 UTC
Setroubleshoot-plugins contains a typo in lt.po translations. For more information please see RHBZ#1364114.

Comment 10 errata-xmlrpc 2018-04-10 18:36:14 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:0995