Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1527319

Summary: ValueError: plural forms expression could be dangerous
Product: Red Hat Enterprise Linux 7 Reporter: Peter Kotvan <pkotvan>
Component: python-blivetAssignee: Blivet Maintenance Team <blivet-maint-list>
Status: CLOSED CURRENTRELEASE QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact: Petr Bokoc <pbokoc>
Priority: medium    
Version: 7.5CC: blivet-maint-list, jkonecny, jmagrini, jstodola, ljanda, nerijus, pbokoc
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:720a42728001bee54fda25b2756c7f255c28a87d6be895da8b051d3dbb810a9d
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Selecting the Lithuanian language causes the installer to crash If you select the Lithuanian (Lietuvių) langauge on the first screen of the graphical installer and press `Continue` (Tęsti), the installer crashes and displays a traceback message. To work around this problem, either use a different language, or avoid the graphical installer and use a different approach such as the text mode or a Kickstart installation.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-27 15:25:17 UTC Type: ---
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: 1414011, 1477564    
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: environ
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: syslog
none
File: ifcfg.log
none
File: packaging.log none

Description Peter Kotvan 2017-12-19 08:30:46 UTC
Description of problem:
I tried to perform and interactive installation of RHEL-7. At welcome screen I selected Lithuanian language and pressed "Tęsti" (Continue). After that this traceback occured.

Version-Release number of selected component:
anaconda-21.48.22.129-1

The following was filed automatically by anaconda:
anaconda 21.48.22.129-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/gettext.py", line 93, in c2py
    raise ValueError, 'plural forms expression could be dangerous'
  File "/usr/lib64/python2.7/gettext.py", line 317, in _parse
    self.plural = c2py(plural)
  File "/usr/lib64/python2.7/gettext.py", line 180, in __init__
    self._parse(fp)
  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 540, in ldgettext
    codeset=_localecodesets.get(domain))
  File "/usr/lib/python2.7/site-packages/blivet/i18n.py", line 26, in <lambda>
    _ = lambda x: gettext.ldgettext("blivet", x) if x != "" else ""
  File "/usr/lib/python2.7/site-packages/blivet/size.py", line 84, in <genexpr>
    for p in _binaryPrefixes)
  File "/usr/lib/python2.7/site-packages/blivet/size.py", line 88, in _xlated_prefixes
    xlated_binary = list(_xlated_binary_prefixes())
  File "/usr/lib/python2.7/site-packages/blivet/size.py", line 292, in humanReadable
    for prefix_item in _xlated_prefixes():
  File "/usr/lib/python2.7/site-packages/blivet/size.py", line 225, in __str__
    return self.humanReadable()
  File "/usr/lib/python2.7/site-packages/blivet/devices/storage.py", line 150, in __str__
    s = "%s %s %s" % (exist, self.size, super(StorageDevice, self).__str__())
  File "/usr/lib64/python2.7/logging/__init__.py", line 328, in getMessage
    msg = msg % self.args
  File "/usr/lib64/python2.7/logging/__init__.py", line 464, in format
    record.message = record.getMessage()
  File "/usr/lib64/python2.7/logging/__init__.py", line 724, in format
    return fmt.format(record)
  File "/usr/lib64/python2.7/logging/handlers.py", line 844, in emit
    msg = self.format(record) + '\000'
  File "/usr/lib64/python2.7/site-packages/pyanaconda/anaconda_log.py", line 82, in emit
    SysLogHandler.emit(self, record)
  File "/usr/lib64/python2.7/logging/__init__.py", line 749, in handle
    self.emit(record)
  File "/usr/lib64/python2.7/logging/__init__.py", line 1318, in callHandlers
    hdlr.handle(record)
  File "/usr/lib64/python2.7/logging/__init__.py", line 1278, in handle
    self.callHandlers(record)
  File "/usr/lib64/python2.7/logging/__init__.py", line 1268, in _log
    self.handle(record)
  File "/usr/lib64/python2.7/logging/__init__.py", line 1149, in info
    self._log(INFO, msg, args, **kwargs)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 1997, in updateDeviceFormat
    log.info("updating format of device: %s", device)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/image.py", line 199, in opticalInstallMedia
    devicetree.updateDeviceFormat(dev)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/source.py", line 742, in _initialize
    self._cdrom = opticalInstallMedia(self.storage.devicetree)
  File "/usr/lib64/python2.7/threading.py", line 765, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 227, in run
    threading.Thread.run(self, *args, **kwargs)
ValueError: plural forms expression could be dangerous

Additional info:
addons:         org_fedora_oscap, com_redhat_kdump
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=/boot/rhel7-rel-eng/vmlinuz initrd=/boot/rhel7-rel-eng/initrd.img repo=http://192.168.122.1/rhel7-rel-eng/ console=tty0 console=ttyS0 graphical
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.10.0-823.el7.x86_64
product:        Red Hat Enterprise Linux 7
release:        Red Hat Enterprise Linux Workstation release 7.5 Beta (Maipo)
release_type:   pre-release
reproducible:   Not sure how to reproduce the problem
type:           anaconda
version:        7.5

Comment 1 Peter Kotvan 2017-12-19 08:30:49 UTC
Created attachment 1369813 [details]
File: anaconda-tb

Comment 2 Peter Kotvan 2017-12-19 08:30:51 UTC
Created attachment 1369814 [details]
File: anaconda.log

Comment 3 Peter Kotvan 2017-12-19 08:30:52 UTC
Created attachment 1369815 [details]
File: environ

Comment 4 Peter Kotvan 2017-12-19 08:30:54 UTC
Created attachment 1369816 [details]
File: lsblk_output

Comment 5 Peter Kotvan 2017-12-19 08:30:56 UTC
Created attachment 1369817 [details]
File: nmcli_dev_list

Comment 6 Peter Kotvan 2017-12-19 08:30:57 UTC
Created attachment 1369818 [details]
File: os_info

Comment 7 Peter Kotvan 2017-12-19 08:30:59 UTC
Created attachment 1369819 [details]
File: program.log

Comment 8 Peter Kotvan 2017-12-19 08:31:01 UTC
Created attachment 1369820 [details]
File: storage.log

Comment 9 Peter Kotvan 2017-12-19 08:31:03 UTC
Created attachment 1369821 [details]
File: syslog

Comment 10 Peter Kotvan 2017-12-19 08:31:05 UTC
Created attachment 1369822 [details]
File: ifcfg.log

Comment 11 Peter Kotvan 2017-12-19 08:31:07 UTC
Created attachment 1369823 [details]
File: packaging.log

Comment 12 Jiri Konecny 2017-12-19 08:39:22 UTC
This looks like a translation error in the blivet library.
Changing components.

Comment 18 Nerijus Baliūnas 2018-12-05 21:03:39 UTC
7.6 installer does not crash anymore, so this bug can be closed.