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 2074745 - subscription-manager unhandled exception if the system uses Japanese environment
Summary: subscription-manager unhandled exception if the system uses Japanese environment
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: sos
Version: 8.4
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: rc
: ---
Assignee: Pavel Moravec
QA Contact: Supportability QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-13 01:55 UTC by Mie Whitaker
Modified: 2023-03-16 21:36 UTC (History)
14 users (show)

Fixed In Version: sos-4.5.0-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-03-16 21:36:38 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github sosreport sos issues 2946 0 None closed Change default locale of command from C to C.UTF-8? 2022-06-27 12:58:18 UTC
Github sosreport sos pull 2960 0 None Merged [utilities] Switch locale to C.UTF-8 2023-02-21 13:19:46 UTC
Red Hat Issue Tracker RHELPLAN-118753 0 None None None 2022-04-13 02:02:11 UTC

Comment 4 Pavel Moravec 2022-05-24 06:47:45 UTC
Thanks for the checks, so we narrowed down the problem to subscription-manager uncaught exception when running with LC_ALL but on a system with Japanese environment.

I reassigned the BZ to the proper component.

Comment 5 Bryn M. Reeves 2022-05-24 08:53:14 UTC
Does subscription-manager behave correctly if you run it in the UTF-8 C locale? I.e.:

# LC_ALL=C.UTF-8 subscription-manager identify

https://peps.python.org/pep-0538/

Comment 8 Bryn M. Reeves 2022-05-26 11:25:05 UTC
> [root@localhost ~]# LC_ALL=C.UTF-8 subscription-manager identity
> システム ID: c56ddf6e-458b-4e5c-a324-ba9f29f6a1a1

Thank you for testing that: this confirms that using the C.UTF-8 locale is a viable workaround for this, either for sos or users running the command manually who need to override the locale.

Comment 9 Pavel Moravec 2022-05-26 13:01:33 UTC
I raised https://github.com/sosreport/sos/issues/2946 to discuss if sos shall move from LC_ALL=C to LC_ALL=C.UTF-8 .

Comment 15 Pavel Moravec 2023-02-23 08:07:35 UTC
(In reply to mhorky from comment #11)
> Setting non-UTF-8 encodings is not supported (with the exception of Latin1):
> https://access.redhat.com/solutions/38948, so I think we can consider the
> Japanese example unsupported.
> 
> As sosreport changed the encoding to C.UTF-8, this situation should not
> happen again. Workaround for subscription-manager as-is is to add LANG=
> and/or LC_ALL= prefix with UTF-8 language encoding before running the
> command.
> 
> We'll further investigate ways to prevent these issues in the future.

As stated above, sos did a change preventing this issue (regardless if we support it or not). Since we plan to release the fix in sos soon, I would say doing so sufficiently resolves this bugzilla. So I am reassigning it back to sos.

Comment 18 Pavel Moravec 2023-03-16 21:36:38 UTC
Closing the bugzilla as the fix has been delivered in sos-4.5.0-1.el8 released via https://access.redhat.com/errata/RHBA-2023:1300 errata.


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