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:
updated subscription-manager and syspurpose package to 1.24.6-1 from brew
Version-Release number of selected component (if applicable):
[root@kvm-01-guest17 ~]# rpm -qa python-syspurpose
python-syspurpose-1.24.6-1.el7.x86_64
[root@kvm-01-guest17 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.7.0-1
subscription management rules: 5.36
subscription-manager: 1.24.6-1.el7
How reproducible:
always
Steps to Reproduce:
1.Execute any syspurpose command
# syspurpose show
usage: syspurpose [-h]
{set,unset,add,remove,set-role,unset-role,add-addons,remove-addons,unset-addons,set-sla,unset-sla,set-usage,unset-usage,show}
...
System Syspurpose Management Tool
positional arguments:
{set,unset,add,remove,set-role,unset-role,add-addons,remove-addons,unset-addons,set-sla,unset-sla,set-usage,unset-usage,show}
sub-command help
set Sets the value for the given property
unset Unsets (clears) the value for the given property
add Adds the value(s) to the given property
remove Removes the value(s) from the given property
set-role Set the system role to the system syspurpose
unset-role Clear set role
add-addons Add addons to the system syspurpose
remove-addons Remove addons from the system syspurpose
unset-addons Clear set addons
set-sla Set the system sla
unset-sla Clear set sla
set-usage Set the system usage
unset-usage Clear set usage
show Show the current system syspurpose
optional arguments:
-h, --help show this help message and exit
2.try to set role value
[root@kvm-01-guest17 ~]# syspurpose set-role "test"
2019-05-10 12:50:03,760 [DEBUG] syspurpose:29567:MainThread @cli.py:248 - Running the syspurpose utility...
2019-05-10 12:50:03,781 [DEBUG] syspurpose:29567:MainThread @https.py:56 - Using standard libs to provide httplib and ssl
2019-05-10 12:50:03,786 [DEBUG] syspurpose:29567:MainThread @identity.py:138 - Loading consumer info from identity certificates.
2019-05-10 12:50:03,788 [INFO] syspurpose:29567:MainThread @connection.py:924 - Connection built: host=ansible-candlepin.usersys.redhat.com port=8443 handler=/candlepin auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2019-05-10 12:50:03,788 [DEBUG] syspurpose:29567:MainThread @files.py:315 - Successfully read local syspurpose contents.
2019-05-10 12:50:03,788 [DEBUG] syspurpose:29567:MainThread @files.py:352 - Successfully read cached syspurpose contents.
usage: syspurpose [-h]
{set,unset,add,remove,set-role,unset-role,add-addons,remove-addons,unset-addons,set-sla,unset-sla,set-usage,unset-usage,show}
...
System Syspurpose Management Tool
positional arguments:
{set,unset,add,remove,set-role,unset-role,add-addons,remove-addons,unset-addons,set-sla,unset-sla,set-usage,unset-usage,show}
sub-command help
set Sets the value for the given property
unset Unsets (clears) the value for the given property
add Adds the value(s) to the given property
remove Removes the value(s) from the given property
set-role Set the system role to the system syspurpose
unset-role Clear set role
add-addons Add addons to the system syspurpose
remove-addons Remove addons from the system syspurpose
unset-addons Clear set addons
set-sla Set the system sla
unset-sla Clear set sla
set-usage Set the system usage
unset-usage Clear set usage
show Show the current system syspurpose
optional arguments:
-h, --help show this help message and exit
3. try setting via sub-man role command
[root@kvm-01-guest17 ~]# subscription-manager role --set=test
role set to "test".
# cat /etc/rhsm/syspurpose/syspurpose.json
{
"role": "test"
}[root@kvm-01-guest17 ~]# syspurpose show
usage: syspurpose [-h]
{set,unset,add,remove,set-role,unset-role,add-addons,remove-addons,unset-addons,set-sla,unset-sla,set-usage,unset-usage,show}
...
System Syspurpose Management Tool
positional arguments:
{set,unset,add,remove,set-role,unset-role,add-addons,remove-addons,unset-addons,set-sla,unset-sla,set-usage,unset-usage,show}
sub-command help
set Sets the value for the given property
unset Unsets (clears) the value for the given property
add Adds the value(s) to the given property
remove Removes the value(s) from the given property
set-role Set the system role to the system syspurpose
unset-role Clear set role
add-addons Add addons to the system syspurpose
remove-addons Remove addons from the system syspurpose
unset-addons Clear set addons
set-sla Set the system sla
unset-sla Clear set sla
set-usage Set the system usage
unset-usage Clear set usage
show Show the current system syspurpose
optional arguments:
-h, --help show this help message and exit
Actual results:
notice the syspurpose command are broken
Expected results:
syspurpose commands should work
Additional info:
Verification:
[root@kvm-02-guest20 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.7.0-1
subscription management rules: 5.37
subscription-manager: 1.24.8-1.el7
[root@kvm-02-guest20 ~]# syspurpose set-sla foo
service_level_agreement set to foo
Unable to send system purpose to subscription management server
[root@kvm-02-guest20 ~]# syspurpose show
{
"service_level_agreement": "foo"
}
Unable to send system purpose to subscription management server
[root@kvm-02-guest20 ~]# syspurpose set-role foo
role set to foo
Unable to send system purpose to subscription management server
[root@kvm-02-guest20 ~]# syspurpose show
{
"role": "foo",
"service_level_agreement": "foo"
}
Unable to send system purpose to subscription management server
[root@kvm-02-guest20 ~]# syspurpose unset-role
role unset
Unable to send system purpose to subscription management server
[root@kvm-02-guest20 ~]# syspurpose show
{
"service_level_agreement": "foo"
}
Unable to send system purpose to subscription management server
[root@kvm-02-guest20 ~]# syspurpose set-usage foo
usage set to foo
System purpose successfully sent to subscription management server.
[root@kvm-02-guest20 ~]# syspurpose show
{
"service_level_agreement": "foo",
"usage": "foo"
}
System purpose successfully sent to subscription management server.
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-2019:2008
Description of problem: updated subscription-manager and syspurpose package to 1.24.6-1 from brew Version-Release number of selected component (if applicable): [root@kvm-01-guest17 ~]# rpm -qa python-syspurpose python-syspurpose-1.24.6-1.el7.x86_64 [root@kvm-01-guest17 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 2.7.0-1 subscription management rules: 5.36 subscription-manager: 1.24.6-1.el7 How reproducible: always Steps to Reproduce: 1.Execute any syspurpose command # syspurpose show usage: syspurpose [-h] {set,unset,add,remove,set-role,unset-role,add-addons,remove-addons,unset-addons,set-sla,unset-sla,set-usage,unset-usage,show} ... System Syspurpose Management Tool positional arguments: {set,unset,add,remove,set-role,unset-role,add-addons,remove-addons,unset-addons,set-sla,unset-sla,set-usage,unset-usage,show} sub-command help set Sets the value for the given property unset Unsets (clears) the value for the given property add Adds the value(s) to the given property remove Removes the value(s) from the given property set-role Set the system role to the system syspurpose unset-role Clear set role add-addons Add addons to the system syspurpose remove-addons Remove addons from the system syspurpose unset-addons Clear set addons set-sla Set the system sla unset-sla Clear set sla set-usage Set the system usage unset-usage Clear set usage show Show the current system syspurpose optional arguments: -h, --help show this help message and exit 2.try to set role value [root@kvm-01-guest17 ~]# syspurpose set-role "test" 2019-05-10 12:50:03,760 [DEBUG] syspurpose:29567:MainThread @cli.py:248 - Running the syspurpose utility... 2019-05-10 12:50:03,781 [DEBUG] syspurpose:29567:MainThread @https.py:56 - Using standard libs to provide httplib and ssl 2019-05-10 12:50:03,786 [DEBUG] syspurpose:29567:MainThread @identity.py:138 - Loading consumer info from identity certificates. 2019-05-10 12:50:03,788 [INFO] syspurpose:29567:MainThread @connection.py:924 - Connection built: host=ansible-candlepin.usersys.redhat.com port=8443 handler=/candlepin auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False 2019-05-10 12:50:03,788 [DEBUG] syspurpose:29567:MainThread @files.py:315 - Successfully read local syspurpose contents. 2019-05-10 12:50:03,788 [DEBUG] syspurpose:29567:MainThread @files.py:352 - Successfully read cached syspurpose contents. usage: syspurpose [-h] {set,unset,add,remove,set-role,unset-role,add-addons,remove-addons,unset-addons,set-sla,unset-sla,set-usage,unset-usage,show} ... System Syspurpose Management Tool positional arguments: {set,unset,add,remove,set-role,unset-role,add-addons,remove-addons,unset-addons,set-sla,unset-sla,set-usage,unset-usage,show} sub-command help set Sets the value for the given property unset Unsets (clears) the value for the given property add Adds the value(s) to the given property remove Removes the value(s) from the given property set-role Set the system role to the system syspurpose unset-role Clear set role add-addons Add addons to the system syspurpose remove-addons Remove addons from the system syspurpose unset-addons Clear set addons set-sla Set the system sla unset-sla Clear set sla set-usage Set the system usage unset-usage Clear set usage show Show the current system syspurpose optional arguments: -h, --help show this help message and exit 3. try setting via sub-man role command [root@kvm-01-guest17 ~]# subscription-manager role --set=test role set to "test". # cat /etc/rhsm/syspurpose/syspurpose.json { "role": "test" }[root@kvm-01-guest17 ~]# syspurpose show usage: syspurpose [-h] {set,unset,add,remove,set-role,unset-role,add-addons,remove-addons,unset-addons,set-sla,unset-sla,set-usage,unset-usage,show} ... System Syspurpose Management Tool positional arguments: {set,unset,add,remove,set-role,unset-role,add-addons,remove-addons,unset-addons,set-sla,unset-sla,set-usage,unset-usage,show} sub-command help set Sets the value for the given property unset Unsets (clears) the value for the given property add Adds the value(s) to the given property remove Removes the value(s) from the given property set-role Set the system role to the system syspurpose unset-role Clear set role add-addons Add addons to the system syspurpose remove-addons Remove addons from the system syspurpose unset-addons Clear set addons set-sla Set the system sla unset-sla Clear set sla set-usage Set the system usage unset-usage Clear set usage show Show the current system syspurpose optional arguments: -h, --help show this help message and exit Actual results: notice the syspurpose command are broken Expected results: syspurpose commands should work Additional info: