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 1862425 - unexpected 'Service level preference not set' after a successful 'service_level_agreement set to "Premium".'
Summary: unexpected 'Service level preference not set' after a successful 'service_lev...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.3
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: 8.3
Assignee: Jiri Hnidek
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-31 12:17 UTC by John Sefler
Modified: 2020-11-04 01:40 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 01:39:45 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 2308 0 None closed 1862425: Fix setting service-level; ENT-1862425 2020-09-03 19:30:43 UTC
Red Hat Product Errata RHBA-2020:4460 0 None None None 2020-11-04 01:39:51 UTC

Description John Sefler 2020-07-31 12:17:43 UTC
Description of problem:

After setting a service level preference, calling subscription-manager service-level --show is not returning the value just set.

Version-Release number of selected component (if applicable):
[root@hpe-dl380pgen8-02-vm-11 ~]# rpm -q subscription-manager
subscription-manager-1.27.11-1.el8.x86_64


How reproducible:


Steps to Reproduce:
[root@hpe-dl380pgen8-02-vm-11 ~]# subscription-manager register --auto-attach --serverurl=subscription.rhsm.stage.redhat.com
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: stage_auto_testuser
Password: 
CACHED_SYSPURPOSE: /var/lib/rhsm/cache/syspurpose.json
The system has been registered with ID: 49ded3b4-5de9-455f-bad6-a075f4978504
The registered system name is: hpe-dl380pgen8-02-vm-11.hpe2.lab.eng.bos.redhat.com
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64 Beta
Status:       Subscribed

[root@hpe-dl380pgen8-02-vm-11 ~]# subscription-manager service-level --set="Premium"
service_level_agreement set to "Premium".
[root@hpe-dl380pgen8-02-vm-11 ~]# 
[root@hpe-dl380pgen8-02-vm-11 ~]# subscription-manager service-level --show
Service level preference not set
[root@hpe-dl380pgen8-02-vm-11 ~]# 


Actual results:
  Service level preference not set


Expected results:
  Current service level: Premium


Additional info:

Comment 3 Rehana 2020-08-11 09:07:39 UTC
reproducing on :
==================

# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.1.16-1
subscription management rules: 5.40
subscription-manager: 1.27.11-1.el8

[root@kvm-07-guest23 ~]# subscription-manager register --auto-attach --serverurl=subscription.rhsm.stage.redhat.com
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: rhel****
Password: 
CACHED_SYSPURPOSE: /var/lib/rhsm/cache/syspurpose.json
The system has been registered with ID: 4a7f94a8-d467-483c-bd43-46e03afe3abb
The registered system name is: kvm-07-guest23.hv2.lab.eng.bos.redhat.com
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64 High Touch Beta
Status:       Subscribed

[root@kvm-07-guest23 ~]# subscription-manager service-level --set="Premium"
service_level_agreement set to "Premium".
[root@kvm-07-guest23 ~]# subscription-manager service-level --show
Service level preference not set


Verification on : 
================

# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.1.16-1
subscription management rules: 5.40
subscription-manager: 1.27.13-1.el8

# rpm -q subscription-manager --changelog | grep 1862425
- 1862425: Fix setting service-level (jhnidek)

[root@hpe-dl380pgen8-02-vm-8 ~]# subscription-manager register --auto-attach --serverurl=subscription.rhsm.stage.redhat.com
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: rhel*****
Password: 
The system has been registered with ID: 712e8ed5-5db5-4dfe-8d0c-77201160a2d5
The registered system name is: hpe-dl380pgen8-02-vm-8.hpe2.lab.eng.bos.redhat.com
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64 High Touch Beta
Status:       Subscribed

To use Red Hat Insights, install the insights-client package.
To opt out of Red Hat Insights, run "insights-client --unregister" or reregister with "--no-insights".

[root@hpe-dl380pgen8-02-vm-8 ~]# subscription-manager service-level --set="Premium"
service_level_agreement set to "Premium".

[root@hpe-dl380pgen8-02-vm-8 ~]# subscription-manager service-level --show
Current service level: Premium

# syspurpose show
{
  "service_level_agreement": "Premium"
}

Based on the above observation ,moving this bug to verified.

Comment 6 errata-xmlrpc 2020-11-04 01:39:45 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 (subscription-manager bug fix and enhancement update), 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-2020:4460


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