Bug 2060135 - [assisted-install] agentServiceConfig left orphaned after uninstalling ACM
Summary: [assisted-install] agentServiceConfig left orphaned after uninstalling ACM
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Advanced Cluster Management for Kubernetes
Classification: Red Hat
Component: Installer
Version: rhacm-2.5
Hardware: x86_64
OS: Unspecified
unspecified
medium
Target Milestone: ---
: rhacm-2.5
Assignee: Jakob
QA Contact: txue
Christopher Dawson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-02 19:28 UTC by Thuy Nguyen
Modified: 2023-05-15 10:09 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-09 02:09:02 UTC
Target Upstream Version:
Embargoed:
bot-tracker-sync: rhacm-2.5+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github stolostron backlog issues 20380 0 None None None 2022-03-02 23:29:22 UTC
Red Hat Product Errata RHSA-2022:4956 0 None None None 2022-06-09 02:09:47 UTC

Description Thuy Nguyen 2022-03-02 19:28:44 UTC
Description of the problem: agentServiceConfig left orphaned after uninstalling ACM 

Release version:

Operator snapshot version:
- ACM 2.5.0-DOWNSTREAM-2022-03-01-18-33-27
- MCE 2.0.0-DOWNANDBACK-2022-03-02-01-20-35

OCP version:

Browser Info:

Steps to reproduce:
1. Install ACM + MCH + MCE
2. Create agentServiceConfig object 
3. Uninstall ACM

Actual results:
agentServiceConfig left orphaned after uninstalling ACM

Expected results:
Either the object is deleted when uninstalling MCE or a validation is thrown out preventing uninstalling ACM altogether (similar to uninstalling ACM when managed clusters exist)

Additional info:

1. agentServiceConfig yaml -
apiVersion: agent-install.openshift.io/v1beta1
kind: AgentServiceConfig
metadata:
  name: agent
spec:
  databaseStorage:
    storageClassName: rook-ceph-block
    accessModes:
    - ReadWriteOnce
    resources:
      requests:
        storage: 20Gi
  filesystemStorage:
    storageClassName: rook-ceph-block
    accessModes:
    - ReadWriteOnce
    resources:
      requests:
        storage: 50Gi
  mustGatherImages:
  - name: ocs
    openshiftVersion: '4.9'
    url: registry.redhat.io/ocs4/ocs-must-gather-rhel8
  osImages:
#  - cpuArchitecture: x86_64
#    openshiftVersion: '4.8'
#    rootFSUrl: https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.8/4.8.2/rhcos-live-rootfs.x86_64.img
#    url: https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.8/4.8.2/rhcos-4.8.2-x86_64-live.x86_64.iso
#    version: 48.84.202107202156-0
  - cpuArchitecture: x86_64
    openshiftVersion: '4.9'
    rootFSUrl: https://rhcos-redirector.apps.art.xq1c.p1.openshiftapps.com/art/storage/releases/rhcos-4.9/49.84.202110081407-0/x86_64/rhcos-49.84.202110081407-0-live-rootfs.x86_64.img
    url: https://rhcos-redirector.apps.art.xq1c.p1.openshiftapps.com/art/storage/releases/rhcos-4.9/49.84.202110081407-0/x86_64/rhcos-49.84.202110081407-0-live.x86_64.iso
    version: 49.84.202110081407-0

Comment 1 Jakob 2022-03-18 17:42:25 UTC
Replicate on latest builds. I plan on adding a check in the ACM and MCE webhooks to prevent uninstalling if there are AgentServiceConfigs present.

Comment 2 Jakob 2022-03-24 00:27:23 UTC
Both ACM and MCE will now block delete attempts if an AgentServiceConfig remains on the cluster. This change would be visible in snapshots 2.5.0-DOWNSTREAM-2022-03-23-01-06-05 and later

Comment 3 bot-tracker-sync 2022-04-06 19:12:14 UTC
G2Bsync 1090425047 comment 
 thuyn-581 Wed, 06 Apr 2022 15:47:02 UTC 
 G2BSync -
Validated on ACM 2.5.0-DOWNSTREAM-2022-04-05-06-20-55

Comment 6 errata-xmlrpc 2022-06-09 02:09:02 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


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