Bug 1703122

Summary: initial-setup : register using activationkey with auto-attach=true and no sla set on the activationkey doesnot honor the service-level setup by anaconda installer
Product: Red Hat Enterprise Linux 7 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: high Docs Contact:
Priority: high    
Version: 7.7CC: cdonnell, csnyder, jsefler, nmoumoul, redakkan, rhsm-qe, skallesh, wchadwic
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1668152 Environment:
Last Closed: 2019-08-06 12:57:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1668152    
Bug Blocks:    
Attachments:
Description Flags
Service_level selction dialog
none
ServiceLevel confirmation
none
GUI
none
initial none

Comment 2 John Sefler 2019-04-25 15:01:24 UTC
Please cherry pick the solution from bug 1668152 in the comment above for the benefit of RHEL7.7

Comment 3 Shwetha Kallesh 2019-04-25 17:26:54 UTC
Created attachment 1558757 [details]
Service_level selction dialog

Issue still exists in the alpha build

[root@localhost ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.3.17-1
subscription management rules: 5.35
subscription-manager: 1.24.4-1.el7

1. Register with auto-attach the system via initial-setup.
2. A service-level dialog pops asking to select the service-level as seen in the attachment 
3. Select the service-level Standard and click on attach subscriptions
P.S the attachment "ServiceLevel confirmation"

4. On terminal verify the subscription attached

[root@localhost ~]# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   Instructor SKU for Red Hat Training product downloads
Provides:            Red Hat Enterprise Linux High Availability - Update Services for SAP Solutions
                     Red Hat Virtualization - ELS
                     Red Hat Gluster Storage Nagios Server
                     Red Hat Virtualization
                     Red Hat Enterprise Linux Atomic Host
                     Red Hat Container Images for IBM Power LE
                     Red Hat Enterprise Linux Atomic Host Beta
                     Red Hat Container Images Beta for IBM Power LE
                     Red Hat Developer Tools (for RHEL Server)
                     Red Hat Container Images
                     Red Hat Developer Tools Beta (for RHEL Server)
                     Red Hat Container Images Beta
                     Red Hat Container Images HTB
                     Red Hat Virtualization for IBM Power LE
                     Red Hat Enterprise Linux 6 Workstation HTB
                     Red Hat OpenShift Enterprise JBoss FUSE add-on
                     Red Hat Single Sign-On
                     Red Hat OpenShift Enterprise JBoss A-MQ add-on
                     Red Hat Enterprise Linux for Power, little endian
                     Red Hat Enterprise Linux for Real Time for NFV
                     Red Hat Enterprise Linux for IBM System z (Structure A)
                     Red Hat Mobile Application Platform
                     dotNET on RHEL (for RHEL Server)
                     dotNET on RHEL Beta (for RHEL Server)
                     Red Hat Certification (for RHEL Server) from RHUI
                     Red Hat Ceph Storage
                     Red Hat Certification (for RHEL Server)
                     Red Hat Ceph Storage Calamari
                     Red Hat Ceph Storage MON
                     Red Hat Enterprise Linux for Real Time
                     Red Hat Directory Server
                     Red Hat CloudForms
                     Red Hat Ceph Storage OSD
                     Red Hat Software Collections (for RHEL Server)
                     Red Hat JBoss AMQ Interconnect
                     Kernel Derivative Works for Bluegene/Q
                     Red Hat Software Collections (for RHEL Workstation)
                     Red Hat Enterprise Linux Server - Extended Life Cycle Support
                     Red Hat Software Collections Beta (for RHEL Server)
                     Red Hat Software Collections Beta (for RHEL Client)
                     Red Hat Software Collections Beta (for RHEL Workstation)
                     Red Hat Enterprise Linux Fast Datapath
                     Red Hat OpenStack Certification Test Suite
                     Red Hat Enterprise Linux Desktop
                     Red Hat Enterprise Linux Server
                     Red Hat OpenShift Container Platform
                     Red Hat Enterprise MRG Messaging 3 for RHEL 7
                     Kernel Derivative Works for HPC for Power Systems
                     Red Hat Enterprise Linux for Power, little endian - Extended Update Support
                     Red Hat Storage
                     Red Hat Container Development Kit
                     MRG Realtime
                     Red Hat Enterprise Linux Server for ARM
                     Red Hat Enterprise Linux High Performance Networking (for RHEL for IBM POWER)
                     Red Hat Enterprise Linux Server for ARM Beta
                     Red Hat Certificate System with Advanced Access
                     Red Hat Enterprise Linux Scalable File System (for RHEL Compute Node)
                     Red Hat Developer Toolset (for RHEL Server)
                     Red Hat Enterprise Linux Resilient Storage for IBM z Systems
                     Red Hat Developer Toolset (for RHEL Workstation)
                     Red Hat Certificate System
                     Red Hat Enterprise Linux EUS Compute Node
                     Red Hat Enterprise Linux Server - Extended Update Support
                     Red Hat Enterprise Linux EUS Compute Node High Performance Networking
                     Red Hat Enterprise Linux EUS Compute Node Scalable File System
                     Red Hat Enterprise Linux Workstation
                     Red Hat Enterprise Linux for IBM z Systems
                     Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
                     Red Hat Enterprise Linux for Power, big endian
                     Red Hat Enterprise Linux for Power, big endian - Extended Update Support
                     Red Hat Enterprise Linux for Scientific Computing
                     Red Hat Beta
                     Red Hat EUCJP Support (for RHEL Server)
                     JBoss Enterprise Application Platform
                     JBoss Enterprise Web Platform
                     JBoss Enterprise Web Server
                     Red Hat Gluster Storage Server for On-premise
                     Red Hat OpenStack Beta
                     Red Hat OpenStack Beta Certification Test Suite
                     Red Hat Gluster Storage Management Console (for RHEL Server)
                     Red Hat OpenShift Enterprise Infrastructure Beta
                     Red Hat OpenShift Enterprise Application Node Beta
                     Red Hat OpenShift Enterprise Client Tools Beta
                     Red Hat OpenShift Enterprise JBoss EAP add-on Beta
                     Red Hat JBoss Middleware
                     Red Hat JBoss Data Grid
                     Red Hat Enterprise Linux 7 Desktop High Touch Beta
                     Red Hat Enterprise Linux High Availability for x86_64
                     Red Hat Enterprise Linux High Availability (for RHEL Server) - Extended Update Support
                     Red Hat Enterprise Linux Load Balancer (for RHEL Server)
                     Red Hat Enterprise Linux Load Balancer (for RHEL Server) - Extended Update Support
                     Red Hat Developer Toolset (for RHEL Server EUS)
                     Red Hat OpenStack
                     JBoss Enterprise Application Platform - ELS
                     Red Hat OpenShift Enterprise Infrastructure
                     Red Hat OpenShift Enterprise Application Node
                     Red Hat Ceph Storage for ARM
                     Red Hat Enterprise Linux for x86_64 High Touch Beta
                     Red Hat OpenShift Enterprise Client Tools
                     Red Hat 3scale API Management Platform
                     Red Hat OpenShift Enterprise JBoss EAP add-on
                     Red Hat Software Collections (for RHEL Server for ARM)
                     Red Hat Enterprise Linux 7 Workstation High Touch Beta
                     Red Hat Software Collections Beta (for RHEL Server for ARM)
                     Red Hat Enterprise Linux for IBM z Systems High Touch Beta
                     Red Hat Hardware Certification Test Suite
                     Red Hat Enterprise Linux for Power, little endian High Touch Beta
                     Red Hat Software Collections (for RHEL Server for IBM Power)
                     Red Hat Software Collections Beta (for RHEL Server for IBM Power)
                     Red Hat Enterprise Linux 7 for HPC Compute Node High Touch Beta
                     Red Hat Software Collections (for RHEL Server for IBM Power LE)
                     Red Hat Enterprise Linux High Availability High Touch Beta
                     Red Hat Software Collections Beta (for RHEL Server for IBM Power LE)
                     Red Hat Enterprise Linux for x86_64
                     Red Hat Software Collections (for RHEL Server for System Z)
                     Red Hat Enterprise Linux 7 Load Balancer High Touch Beta
                     Red Hat Enterprise Linux Resilient Storage High Touch Beta
                     Red Hat Software Collections Beta (for RHEL Server for System Z)
                     Red Hat Enterprise Linux Resilient Storage for x86_64
                     Red Hat Enterprise MRG Messaging
                     Red Hat Enterprise Linux Resilient Storage (for RHEL Server) - Extended Update Support
                     Red Hat Enterprise Linux Scalable File System (for RHEL Server)
                     Red Hat Enterprise Linux Scalable File System (for RHEL Server) - Extended Update Support
                     Red Hat Enterprise Linux Scalable File System (for RHEL Workstation)
                     JBoss Middleware Manager 7.0 Tech Preview
                     Red Hat Enterprise Linux for SAP HANA for x86_64
                     Oracle Java (for RHEL Client)
                     Oracle Java (for RHEL Compute Node)
                     Oracle Java (for RHEL Workstation)
                     Oracle Java (for RHEL Compute Node) - Extended Update Support
                     Oracle Java (for RHEL Server) - Extended Update Support
                     Red Hat S-JIS Support (for RHEL Server)
                     Red Hat Enterprise Linux Atomic Host HTB
                     Red Hat S-JIS Support (for RHEL Server) - Extended Update Support
                     RHEL for SAP HANA - Extended Update Support
                     Red Hat Software Test Suite 5 (for RHEL Server)
                     Red Hat Ansible Engine
                     Red Hat CodeReady Linux Builder for x86_64
                     Red Hat Enterprise Linux Server - Extended Life Cycle Support (for IBM z Systems)
                     Red Hat CodeReady Linux Builder for Power, little endian
                     Red Hat Enterprise Linux Server - AUS
                     Red Hat Enterprise Linux High Availability (for RHEL Server) - AUS
                     Red Hat CodeReady Linux Builder for IBM z Systems
                     Red Hat Enterprise Linux Load Balancer (for RHEL Server) - AUS
                     Red Hat Enterprise Linux High Performance Networking (for RHEL Server)
                     Red Hat Enterprise Linux Resilient Storage (for RHEL Server) - AUS
                     Red Hat Enterprise Linux Scalable File System (for RHEL Server) - AUS
                     Red Hat Enterprise Linux Resilient Storage for Power, little endian
                     Red Hat Enterprise Linux High Performance Networking (for RHEL Compute Node)
                     Oracle Java (for RHEL Server) - AUS
                     Red Hat Enterprise Linux 6 Server HTB
                     Red Hat Enterprise Linux Resilient Storage (for IBM Power LE) - Extended Update Support
                     MRG Grid
                     Red Hat Virtualization Manager
                     Red Hat Enterprise Linux High Availability for Power, little endian
                     Red Hat Enterprise Linux High Availability (for IBM Power LE) - Extended Update Support
                     OLD Red Hat Enterprise Linux Server for ARM Development Preview
                     Red Hat Enterprise Linux Server (for IBM Power LE) - Update Services for SAP Solutions
                     RHEL for SAP (for IBM Power LE) - Update Services for SAP Solutions
                     RHEL for SAP HANA (for IBM Power LE) - Update Services for SAP Solutions
                     Red Hat Enterprise Linux High Availabilty (for IBM Power LE) - Update Services for SAP Solutions
                     Red Hat Enterprise Linux Server - Update Services for SAP Solutions
                     MRG Management
                     RHEL for SAP - Update Services for SAP Solutions
                     Red Hat Enterprise Linux for SAP Applications for x86_64
                     Red Hat Enterprise Linux High Availability for IBM z Systems
                     MRG Grid Execute
                     Red Hat QuickStart Cloud Installer
                     RHEL for SAP HANA - Update Services for SAP Solutions
                     Red Hat JBoss AMQ Clients
                     Oracle Java (for Middleware)
                     Red Hat CloudForms Beta
                     Red Hat JBoss Core Services
                     Red Hat S-JIS Support (for RHEL Server) - AUS
SKU:                 INSTR633200
Contract:            11847799
Account:             6190857
Serial:              6039505181850371868
Pool ID:             8a99f9ae68a979f20168ab0e452a0ca0
Provides Management: No
Active:              True
Quantity Used:       1
Service Level:       Self-Support
Service Type:        L1-L3
Status Details:      Subscription is current
Subscription Type:   Standard
Starts:              01/31/2019
Ends:                01/31/2020
System Type:         Virtual

Comment 4 Shwetha Kallesh 2019-04-25 17:28:36 UTC
Created attachment 1558758 [details]
ServiceLevel confirmation

Comment 5 Chris Snyder 2019-05-01 17:44:25 UTC
We were missing an aspect of the fix provided for RHEL 8.0. I've pulled this in for the next build. As such moving to post.

Upstream commit hash: a3f05b4ab53c0e5beda62bae5bb55bdb1326f32b

Comment 8 Rehana 2019-06-24 11:14:54 UTC
Verifying on :
=============
subscription management server: 2.3.17-1
subscription management rules: 5.35
subscription-manager: 1.24.13-1.el7

1)On initial setup
===================
Notice "Confirm Subscription" window appeared after registration screen (PFA: initial.png)


2) on GUI 
==========
Notice that on GUI after the registration screen user is presented with "confirm subscriptions" window (PFA: GUI.png) ;the SLA selection window is no longer displayed



3) with activation key (auto-attach set to true and no service-level set)
==============================================================
same as above (i.e no service selection window appeared )

Based on the above observations moving the bug to verified.

Comment 9 Rehana 2019-06-24 11:16:15 UTC
Created attachment 1583983 [details]
GUI

Comment 10 Rehana 2019-06-24 11:17:43 UTC
Created attachment 1583984 [details]
initial

Comment 12 errata-xmlrpc 2019-08-06 12:57:32 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-2019:2008