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 1650923 - subscription-manager crashes in rhel8-beta/rhel:8.0-760
Summary: subscription-manager crashes in rhel8-beta/rhel:8.0-760
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: candlepin-bugs
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-17 16:25 UTC by Eugene Ivantsov
Modified: 2018-12-10 15:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-12-10 15:26:15 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1642271 1 high CLOSED Exception caught when trying to parse product ids and entitlement certificates for containers. 2023-10-06 17:57:56 UTC

Internal Links: 1642271

Description Eugene Ivantsov 2018-11-17 16:25:02 UTC
Description of problem:


When invoking subscription manager command in an official Beta docker container, the following stacktrace is observed:

eugene@ivantsoft ~/projects/crew/codeready-workspaces-stacks-java (codeready-1.0-rhel-8) $ docker run -ti registry.access.redhat.com/rhel8-beta/rhel:8.0-760 bash
bash-4.4# subscription-manager --help
Traceback (most recent call last):
  File "/usr/sbin/subscription-manager", line 11, in <module>
    load_entry_point('subscription-manager==1.23.8', 'console_scripts', 'subscription-manager')()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 476, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2700, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2318, in load
    return self.resolve()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib64/python3.6/site-packages/subscription_manager/scripts/subscription_manager.py", line 57, in <module>
    configure_i18n()
  File "/usr/lib64/python3.6/site-packages/subscription_manager/i18n.py", line 51, in configure_i18n
    Locale.set(os.environ.get("LANG"))
  File "/usr/lib64/python3.6/site-packages/subscription_manager/i18n.py", line 147, in set
    lang = gettext.translation(APP, DIR, languages=[language])
  File "/usr/lib64/python3.6/gettext.py", line 510, in translation
    mofiles = find(domain, localedir, languages, all=True)
  File "/usr/lib64/python3.6/gettext.py", line 482, in find
    for nelang in _expand_lang(lang):
  File "/usr/lib64/python3.6/gettext.py", line 206, in _expand_lang
    loc = locale.normalize(loc)
  File "/usr/lib64/python3.6/locale.py", line 396, in normalize
    code = localename.lower()
AttributeError: 'NoneType' object has no attribute 'lower'

Comment 1 Mark Kogan 2018-11-19 10:21:09 UTC
Mitigated by running inside the container:

echo -e "\nexport LC_ALL=C\nexport LANG=C\n" >> .bashrc
bash
subscription-manager register --auto-attach
. . .

Comment 3 Chris Snyder 2018-12-10 15:26:15 UTC
This bug has been fixed for RHEL 8, but will not be fixed in the beta container. Please use a newer container


Note You need to log in before you can comment on or make changes to this bug.