Bug 1924338

Summary: Content host connected to the SCA enabled Satellite is showing as Not subscribed after attaching a valid subscription
Product: Red Hat Enterprise Linux 8 Reporter: Dhaval Joshi <dhjoshi>
Component: subscription-managerAssignee: Jiri Hnidek <jhnidek>
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.3CC: aganbat, ahumbe, jhnidek, jsefler, redakkan, rjerrido, zpetrace
Target Milestone: rcKeywords: Triaged
Target Release: 8.6   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: subscription-manager-1.28.24-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2022789 (view as bug list) Environment:
Last Closed: 2022-05-10 15:22:56 UTC Type: Bug
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:    
Bug Blocks: 2022789    

Description Dhaval Joshi 2021-02-02 22:50:27 UTC
Description of problem:
On SCA enabled Satellite, a content host connected to the Satellite server is still showing as Not subscribed after attaching a valid subscription manually.

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. Enable SCA on the Satellite server.
2. Register a host to the Satellite server.
3. Attach a valid RHEL subscription

Actual results:
The host is showing as Not Subscribed.

Expected results:
The host should be subscribed.

Additional info:

Comment 2 Ashish Humbe 2021-02-04 15:27:34 UTC
It seems that the latest subscription-manager package is not installed on the client, can you please reconfirm?

Comment 3 Ashish Humbe 2021-02-04 15:28:33 UTC
Also, here we are using SCA so we do not need to assign the subscription to the client systems manually.

Comment 5 Brad Buckingham 2021-02-08 14:39:22 UTC
Does 'subscription-manager identity' show that SCA is enabled?

Is the client able to consume the content?

Comment 8 Rehana 2021-02-09 14:57:46 UTC
This is working as per the implementation, we have improved the message in the `subscription-manager status ` command  to inform users about the SCA mode. Moving this bug  to subscription-manager . 

Rich ,

Can you please help us evaluate this request and please let us know if need to make any change to the message in the "subscription-manager list --installed " output. 

thanks,
Rehana

Comment 10 Rich Jerrido 2021-02-09 16:54:48 UTC
(In reply to Rehana from comment #8)
> This is working as per the implementation, we have improved the message in
> the `subscription-manager status ` command  to inform users about the SCA
> mode. Moving this bug  to subscription-manager . 
> 
> Rich ,
> 
> Can you please help us evaluate this request and please let us know if need
> to make any change to the message in the "subscription-manager list
> --installed " output. 
> 
> thanks,
> Rehana

I think it is a reasonable improvement to subscription-manager to improve the output of the `list --installed` subcommand when SCA is enabled, so as to minimize user confusion.

Comment 12 Rehana 2021-07-12 14:09:19 UTC
*** Bug 1951830 has been marked as a duplicate of this bug. ***

Comment 13 Rehana 2021-11-09 16:10:21 UTC
Reproducing the issue on: 
# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.21-1
subscription management rules: 5.41
subscription-manager: 1.28.21-3.el8

# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Disabled
Content Access Mode is set to Simple Content Access. This host has access to content, regardless of subscription status.

System Purpose Status: Disabled

# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Red Hat Enterprise Linux for x86_64
Product ID:     479
Version:        8.5
Arch:           x86_64
Status:         Not Subscribed
Status Details: 
Starts:         
Ends:           

Product Name:   Red Hat Enterprise Linux for x86_64 Beta
Product ID:     486
Version:        8.5 Beta
Arch:           x86_64
Status:         Not Subscribed
Status Details: 
Starts:         
Ends: 

^^ Notice that in installed products are marked as "Not Subscribed" in SCA mode. 

Pre-verifying the fix on :

# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.21-1
subscription management rules: 5.41
subscription-manager: 1.28.22-1.git.62.085fd3a.el8

# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Disabled
Content Access Mode is set to Simple Content Access. This host has access to content, regardless of subscription status.

System Purpose Status: Disabled


# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux for x86_64
Product ID:   479
Version:      8.5
Arch:         x86_64

Product Name: Red Hat Enterprise Linux for x86_64 Beta
Product ID:   486
Version:      8.5 Beta
Arch:         x86_64

^^ Notice that "Status" , "Status Details" , "Starts" n "Ends" dates are no longer displayed in the subscription-manager list --installed.  The same updates are now reflected in Cockpit UI as well ( as demonstrated in https://bugzilla.redhat.com/show_bug.cgi?id=1979323#c3 )

Comment 17 Zdenek Petracek 2021-12-10 15:43:16 UTC
Registering:
[root@ibm-x3650m4-01-vm-06 ~]# subscription-manager register
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: zpetracePH03
Password: 
The system has been registered with ID: 5dce69f8-ea84-435f-b7a4-3080ebfc687d
The registered system name is: ibm-x3650m4-01-vm-06.ibm2.lab.eng.bos.redhat.com

Version:
[root@ibm-x3650m4-01-vm-06 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.2.21-1
subscription management rules: 5.41
subscription-manager: 1.28.24-1.el8

Verification:
[root@ibm-x3650m4-01-vm-06 ~]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Disabled
Content Access Mode is set to Simple Content Access. This host has access to content, regardless of subscription status.

System Purpose Status: Disabled

[root@ibm-x3650m4-01-vm-06 ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux for x86_64 Beta
Product ID:   486
Version:      8.6 Beta
Arch:         x86_64

Comment 19 errata-xmlrpc 2022-05-10 15:22:56 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-2022:2047