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:
subscription-manager tells:
If you'd like to overwrite the server side change please run: subscription-manager usage --unset
I follow this sudgestion but sub-man tells it again and the property is not cleared.
[root@ibm-p9z-15-lp9 ~]# curl -ik -u stage_jstavel_demo01:redhat --request GET "https://subscription.rhsm.stage.redhat.com:443/subscription/consumers/$UUID?include=role&include=serviceLevel&include=usage&include=addons"
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
x-candlepin-request-uuid: eabf7ac6-fff7-4df2-9940-7bfc15330e9e
X-Version: 2.3.11-1
Content-Type: application/json
Transfer-Encoding: chunked
Date: Thu, 06 Dec 2018 12:15:48 GMT
{"serviceLevel":"","role":"","usage":"Disaster Recovery","addOns":[""]}
[root@ibm-p9z-15-lp9 ~]# subscription-manager usage --unset
You are attempting to use a locale that is not installed.
Due to a conflicting change made at the server the usage has not been set.
If you'd like to overwrite the server side change please run: subscription-manager usage --unset
[root@ibm-p9z-15-lp9 ~]# subscription-manager usage --unset
You are attempting to use a locale that is not installed.
Due to a conflicting change made at the server the usage has not been set.
If you'd like to overwrite the server side change please run: subscription-manager usage --unset
[root@ibm-p9z-15-lp9 ~]# subscription-manager usage --unset
You are attempting to use a locale that is not installed.
Due to a conflicting change made at the server the usage has not been set.
If you'd like to overwrite the server side change please run: subscription-manager usage --unset
[root@ibm-p9z-15-lp9 ~]# rpm -qa | egrep "subscription|rhsm|cockpit"
dnf-plugin-subscription-manager-1.23.8-4.el8.ppc64le
subscription-manager-1.23.8-4.el8.ppc64le
subscription-manager-rhsm-certificates-1.23.8-4.el8.ppc64le
librhsm-0.0.3-2.el8.ppc64le
python3-subscription-manager-rhsm-1.23.8-4.el8.ppc64le
Verifying on :
-------------
# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.3.12-1
subscription management rules: 5.30
subscription-manager: 1.23.8-14.el8
Set usage value
# subscription-manager usage --set="Production"
usage set to "Production".
# curl -ik -u stage_test_***:redhat --request GET "https://subscription.rhsm.stage.redhat.com:443/subscription/consumers/21fa4960-8aad-486c-a102-82873e5cada4?include=role&include=serviceLevel&include=usage&include=addons"
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
x-candlepin-request-uuid: bd0ca640-c109-4f31-b212-4f6faccd2874
X-Version: 2.3.12-1
Content-Type: application/json
Transfer-Encoding: chunked
Date: Wed, 23 Jan 2019 09:27:57 GMT
{"serviceLevel":"","role":"","usage":"Production","addOns":[]}[root@kvm-01-guest19 test]#
[root@kvm-01-guest19 test]# subscription-manager usage --unset
usage unset.
[root@kvm-01-guest19 test]# curl -ik -u stage_test_***:redhat --request GET "https://subscription.rhsm.stage.redhat.com:443/subscription/consumers/21fa4960-8aad-486c-a102-82873e5cada4?include=role&include=serviceLevel&include=usage&include=addons"
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
x-candlepin-request-uuid: 9c435cd5-bece-4be1-8806-db2e25e87654
X-Version: 2.3.12-1
Content-Type: application/json
Transfer-Encoding: chunked
Date: Wed, 23 Jan 2019 09:28:29 GMT
{"serviceLevel":"","role":"","usage":"","addOns":[]}[root@kvm-01-guest19 test]#
usage value was successfully unset and the same is updated at the server side too. Based on the above observations , moving the bug to Verified