Bug 2061838

Summary: ACM component subscriptions are removed when enabling spec.disableHubSelfManagement in MCH
Product: Red Hat Advanced Cluster Management for Kubernetes Reporter: Thuy Nguyen <thnguyen>
Component: InstallerAssignee: Jakob <jagray>
Status: CLOSED ERRATA QA Contact: txue
Severity: urgent Docs Contact: Christopher Dawson <cdawson>
Priority: unspecified    
Version: rhacm-2.5Flags: bot-tracker-sync: rhacm-2.5+
Target Milestone: ---   
Target Release: rhacm-2.5   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-09 02:09:24 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:
Attachments:
Description Flags
multiclusterhub-operator.log none

Description Thuy Nguyen 2022-03-08 15:53:15 UTC
Created attachment 1864658 [details]
multiclusterhub-operator.log

Description of the problem: ACM component subscriptions are deleted when enabling spec.disableHubSelfManagement in MCH

Release version:

Operator snapshot version:
- ACM 2.5.0-DOWNSTREAM-2022-03-03-03-15-27 (Final S3)
- MCE 2.0.0-DOWNANDBACK-2022-03-04-19-35-38

OCP version: 4.10.2

Browser Info:

Steps to reproduce:
1. ACM hub is running
2. Add spec.disableHubSelfManagement: true to MCH

Actual results:
ACM component subscriptions get removed

Expected results:
Only local cluster should be detached 

Additional info:

Comment 1 bot-tracker-sync 2022-03-14 20:44:52 UTC
G2Bsync 1066815424 comment 
 JakobGray Mon, 14 Mar 2022 13:47:29 UTC 
 G2Bsync This issue was caused by a cluster-lifecycle bug with pre-delete hooks. According to them it should be resolved now that https://github.com/open-cluster-management-io/multicloud-operators-subscription/pull/117 is merged. I have tested on `2.5.0-SNAPSHOT-2022-03-14-13-03-46` and not encountered the appsub delete. Please verify if this issue is resolved.

Comment 2 bot-tracker-sync 2022-03-18 03:41:53 UTC
G2Bsync 1071945470 comment 
 thuyn-581 Fri, 18 Mar 2022 01:57:58 UTC 
 G2Bsync -
Validated on 2.5.0-DOWNSTREAM-2022-03-17-03-36-41.

Comment 5 errata-xmlrpc 2022-06-09 02:09:24 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 (Important: Red Hat Advanced Cluster Management 2.5 security updates, images, and bug fixes), 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/RHSA-2022:4956