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.
Description of problem:
The syspurpose command does not provide a simple, intuitive way to list acceptable values for role, sla, or usage. These are not defined in the man page or the --help guidance output which are the two most logical places a user would look.
Request an option "show-values" or "show --available-values" or something similar that will list these out.
These are already well defined in /etc/rhsm/syspurpose/valid_fields.json, but this is not a user friendly or intuitive way to find values for users from the command line.
# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.3 (Ootpa)
# rpm -q --whatprovides /usr/sbin/syspurpose
python3-syspurpose-1.27.16-1.el8.x86_64
# cat /etc/rhsm/syspurpose/valid_fields.json
{
"role": [
"Red Hat Enterprise Linux Server",
"Red Hat Enterprise Linux Workstation",
"Red Hat Enterprise Linux Compute Node"
],
"service_level_agreement": [
"Premium",
"Standard",
"Self-Support"
],
"usage": [
"Production",
"Development/Test",
"Disaster Recovery"
]
}
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info:
This is a duplicate of RFE Bug 1634023 which has been implemented for release on RHEL-8.3.
[root@kvm-06-guest36 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.3 (Ootpa)
[root@kvm-06-guest36 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.1.18-1
subscription management rules: 5.41
subscription-manager: 1.27.16-1.el8
[root@kvm-06-guest36 ~]# rpm -q subscription-manager --changelog | grep 1634023
- 1634023: Use list of valid syspurpose values provided by candlepin server (jhnidek)
[root@kvm-06-guest36 ~]# subscription-manager role --help | grep -- --list
--list list all role available
[root@kvm-06-guest36 ~]# subscription-manager usage --help | grep -- --list
--list list all usage available
[root@kvm-06-guest36 ~]# subscription-manager service-level --help | grep -- --list
--list list all service_level_agreement available
Description of problem: The syspurpose command does not provide a simple, intuitive way to list acceptable values for role, sla, or usage. These are not defined in the man page or the --help guidance output which are the two most logical places a user would look. Request an option "show-values" or "show --available-values" or something similar that will list these out. These are already well defined in /etc/rhsm/syspurpose/valid_fields.json, but this is not a user friendly or intuitive way to find values for users from the command line. # cat /etc/redhat-release Red Hat Enterprise Linux release 8.3 (Ootpa) # rpm -q --whatprovides /usr/sbin/syspurpose python3-syspurpose-1.27.16-1.el8.x86_64 # cat /etc/rhsm/syspurpose/valid_fields.json { "role": [ "Red Hat Enterprise Linux Server", "Red Hat Enterprise Linux Workstation", "Red Hat Enterprise Linux Compute Node" ], "service_level_agreement": [ "Premium", "Standard", "Self-Support" ], "usage": [ "Production", "Development/Test", "Disaster Recovery" ] } Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: