Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-14776

Discoveredcluster CR importasmanagedcluster toggles to false even if cluster is imported

XMLWordPrintable

    • False
    • None
    • False
    • Moderate
    • Rejected
    • None

      Description of problem:

      Discoveredcluster CR importasmanagedcluster toggles to false even if cluster is imported

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

      ACM 2.12

      Steps to Reproduce:

      1. Install ACM 2.12-FC3
      2. Create discovery config with Service account
      3. import a rosa cluster ocp 4.14 (note discovery only seeings 4.15-4.17 on acm 2.12 it seems like)
      4. detach the managedcluster from the hub
      5. delete the annotation from the discoveredcluster cr that gets added after a managedcluster is detached
      6. reimport the rosa cluster
      7. after a bit, observe that the importasmanagedcluster field is set to false automatically.

      Additional info: note at first I do see that the importasmanagedcluster is true at first but after a reconcile it turns into false

      YAML
      apiVersion: discovery.open-cluster-management.io/v1
      kind: DiscoveredCluster
      metadata:
      resourceVersion: '13012879'
      name: c1d446c8-4e2a-47e9-a75d-308dc610c4c2
      uid: f7279e3e-11d8-4674-b934-ca2f5bf11e3b
      creationTimestamp: '2024-10-08T21:42:31Z'
      generation: 17
      managedFields:
      - apiVersion: discovery.open-cluster-management.io/v1
      fieldsType: FieldsV1
      fieldsV1:
      'f:metadata':
      'f:labels':
      .: {}
      'f:isManagedCluster': {}
      'f:ownerReferences':
      .: {}
      'k:{"uid":"359678ea-b14f-4555-a847-d9c9de53b88c"}': {}
      'f:spec':
      'f:console': {}
      'f:creationTimestamp': {}
      'f:status': {}
      'f:importAsManagedCluster': {}
      'f:rhocmClusterId': {}
      'f:region': {}
      'f:apiUrl': {}
      'f:credential': {}
      'f:ocpClusterId': {}
      .: {}
      'f:type': {}
      'f:cloudProvider': {}
      'f:activityTimestamp': {}
      'f:openshiftVersion': {}
      'f:displayName': {}
      'f:isManagedCluster': {}
      'f:name': {}
      manager: manager
      operation: Update
      time: '2024-10-09T18:08:08Z'
      namespace: aut-disco-ns
      ownerReferences:
      - apiVersion: discovery.open-cluster-management.io/v1
      blockOwnerDeletion: true
      controller: true
      kind: DiscoveryConfig
      name: discovery
      uid: 359678ea-b14f-4555-a847-d9c9de53b88c
      labels:
      isManagedCluster: 'true'
      spec:
      openshiftVersion: 4.14.37
      isManagedCluster: true
      cloudProvider: aws
      activityTimestamp: '2024-10-09T16:13:18Z'
      name: c1d446c8-4e2a-47e9-a75d-308dc610c4c2
      displayName: rosa-tn
      rhocmClusterId: 2e8qshj4v7n044i4re9oj4lrvau3ssb0
      status: Active
      importAsManagedCluster: false
      region: us-east-1
      apiUrl: 'https://api.rosa-tn.ym49.p1.openshiftapps.com:6443'
      credential:
      apiVersion: v1
      kind: Secret
      name: aut-disco
      namespace: aut-disco-ns
      resourceVersion: '11466189'
      uid: 8e7741ad-f3f7-4a6b-aed4-bda080d30acc
      creationTimestamp: '2024-10-07T15:20:43Z'
      console: 'https://console-openshift-console.apps.rosa-tn.ym49.p1.openshiftapps.com'
      ocpClusterId: c1d446c8-4e2a-47e9-a75d-308dc610c4c2
      type: ROSA

              Unassigned Unassigned
              kurwang@redhat.com Kurtis Wang
              Thuy Nguyen Thuy Nguyen
              ACM QE Team
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: