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 1425922 - [RFE] Get system locale setting into cp_consumer_facts
Summary: [RFE] Get system locale setting into cp_consumer_facts
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.4
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: rc
: ---
Assignee: William Poteat
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-22 18:33 UTC by Diego Fernandez
Modified: 2017-08-01 19:21 UTC (History)
7 users (show)

Fixed In Version: subscription-manager-1.19.6-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 19:21:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1425923 0 high CLOSED [RFE] Get system locale setting into cp_consumer_facts 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1445387 0 high CLOSED setting LC_ALL=C locale breaks subscription-manager CLI 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2017:2083 0 normal SHIPPED_LIVE python-rhsm and subscription-manager bug fix and enhancement update 2017-08-01 18:14:19 UTC

Internal Links: 1425923 1445387

Description Diego Fernandez 2017-02-22 18:33:06 UTC
I'm creating independent requests for RHEL 6 and RHEL 7

I'm in the CEE Analytics team and we often get requests about system locales. This data is important in order to know how to prioritize localization efforts. I've done some analysis in the past looking at SOS Reports[1], but this is a very limited data set and is likely to be a skewed representation of our real distributions. If we could have systems report back their locale into the consumer facts, we could get some interesting insight into usage, especially by combining it with the installed products.

[1] https://mojo.redhat.com/docs/DOC-1075747

Comment 5 Rehana 2017-05-09 09:18:58 UTC
Demonstrating that with older subscription-manager versions on RHEL73  the fact "system.default_locale" was not available 

[root@dhcp35-220 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.51.21-1
subscription management rules: 5.15.1
subscription-manager: 1.17.15-1.el7
python-rhsm: 1.17.9-1.el7


[root@dhcp35-220 ~]# subscription-manager facts --list | grep system.default_locale

^^ no results found

With latest subscription-manager build for RHEL74 , the fact "system.default_locale" is available and is displaying the correct value

# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.51.21-1
subscription management rules: 5.15.1
subscription-manager: 1.19.12-1.el7
python-rhsm: 1.19.6-1.el7

# subscription-manager facts --list | grep system.default_locale
system.default_locale: en_US.UTF-8

Based on the above observations, Marking this bug as verified!!

Comment 6 Diego Fernandez 2017-05-15 17:37:08 UTC
Sweet! I already see some data in Candlepin:

SELECT f.element,
       count(DISTINCT f.cp_consumer_id)
FROM cp_consumer_facts f
WHERE mapkey = "system.default_locale"
GROUP BY f.element;

element     |count(DISTINCT f.cp_consumer_id) |
------------|---------------------------------|
en_US.UTF-8 |460                              |
en_GB.UTF-8 |5                                |
en_CA.UTF-8 |2                                |
Unknown     |2                                |
cs_CZ.UTF-8 |1                                |
en_DK.UTF-8 |1                                |
en_IN.UTF-8 |1                                |
es_CL.UTF-8 |1                                |
fr_FR.UTF-8 |1                                |
pt_BR.UTF-8 |1                                |
zh_TW.UTF-8 |1                                |

Comment 7 errata-xmlrpc 2017-08-01 19:21:47 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-2017:2083


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