Bug 2037771

Summary: Enable insights registration by default in the cockpit UI
Product: Red Hat Enterprise Linux 9 Reporter: Rehana <redakkan>
Component: subscription-managerAssignee: Jan Stavel <jstavel>
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: high Docs Contact: Lucie Vařáková <lmanasko>
Priority: high    
Version: 9.0CC: briasmit, jhnidek, jsefler, jstavel, lmanasko, rjerrido
Target Milestone: rcKeywords: Triaged
Target Release: 9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: subscription-manager-1.29.23-1.el9 Doc Type: Enhancement
Doc Text:
.RHEL web console provides Insights registration by default With this update, when you use the Red Hat Enterprise Linux web console to register a RHEL system, the *Connect this system to Red Hat Insights.* check box is checked by default. If you do not want to connect to Insights, uncheck the box.
Story Points: ---
Clone Of:
: 2049441 (view as bug list) Environment:
Last Closed: 2022-05-17 15:58:31 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: 2049441    

Description Rehana 2022-01-06 14:31:16 UTC
Description of problem:
As per the guidance from PMs ( requested in https://docs.google.com/document/d/1HSrAVa8Uo4G8OTm7yoY7qiuNJ-IPbjKHtLnbyhkT__o/edit#heading=h.6hekbeugdye3 ) this is request to enable the "connect to insights" option by default 
Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.Install RHEL 9 compose 
2.open cockpit --> subscriptions
3.Register the system

Actual results:
system only registers to rhsm , and the "Connect to insights" check box is disabled by default

Expected results:
the "Connect to insights" check box should be enabled by default

Additional info:

Comment 2 Rehana 2022-01-21 15:06:23 UTC
Pre testing with 

# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.22-1
subscription management rules: 5.41
subscription-manager: 1.29.23-1.el9

# rpm -qa subscription-manager --changelog | grep 2037771
- 2037771: Cockpit registration dialog: enable insights by default
- 2037771: Cockpit registration dialog: enable insights by default

1. Check the "Connect to Insights" check box is enabled by default 

PASS , noticed that the "Connect this system to Red Hat Insights" check box is enabled by default  now (PFA) 

2. Check the insights packages are installed and the system is registered to insights and rhsm at the same time 

PASS 

# subscription-manager identity
system identity: *******
name: ***********
org name: 13343245
org ID: 13343245

# insights-client --status
This host is registered.

# cat /etc/insights-client/machine-id 
070bcd18-ae6c-4277-a227-9494cc0b772a

Based on the observations above, pre-verifying the bug .

Comment 9 errata-xmlrpc 2022-05-17 15:58:31 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 (new packages: subscription-manager), 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:3984