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

[RDR] GitOpsCluster CR fails with secret not found error

XMLWordPrintable

    • False
    • None
    • False
    • Important
    • No

      Description of problem:

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

      ACM 2.11.0-DOWNSTREAM-2024-05-20-16-57-05 

      OCP 4.16.0-0.nightly-2024-05-19-083311

      ODF 4.16.0-102.stable

      Gitops 1.12.2

      How reproducible: This issue was seen on multiple setups.

      Steps to Reproduce:

      1. Install ACM 2.11 on OCP 4.16
      2. Install GitOps Operator
      3. Create GitOpsCluster CR and check it's phase in the yaml

      apiVersion: apps.open-cluster-management.io/v1beta1
      kind: GitOpsCluster
      metadata:
        name: gitops-cluster-sample
        namespace: openshift-gitops
      spec:
        argoServer:
          cluster: local-cluster
          argoNamespace: openshift-gitops
        placementRef:
          kind: Placement
          apiVersion: cluster.open-cluster-management.io/v1beta1
          name: all-openshift-clusters

      Actual results:  GitOpsCluster CR fails with secret not found error

      apiVersion: apps.open-cluster-management.io/v1beta1 kind: GitOpsCluster metadata: creationTimestamp: '2024-05-20T11:58:32Z' generation: 1 managedFields: - apiVersion: apps.open-cluster-management.io/v1beta1 fieldsType: FieldsV1 fieldsV1: 'f:spec': .: {} 'f:argoServer': .: {} 'f:argoNamespace': {} 'f:cluster': {} 'f:placementRef': .: {} 'f:apiVersion': {} 'f:kind': {} 'f:name': {} manager: Mozilla operation: Update time: '2024-05-20T11:58:32Z' - apiVersion: apps.open-cluster-management.io/v1beta1 fieldsType: FieldsV1 fieldsV1: 'f:status': .: {} 'f:lastUpdateTime': {} 'f:message': {} 'f:phase': {} manager: gitopscluster operation: Update subresource: status time: '2024-05-20T12:04:03Z' name: gitops-cluster-sample namespace: openshift-gitops resourceVersion: '119829' uid: fe5fed9a-8de0-45ed-bac0-fead6888a07c spec: argoServer: argoNamespace: openshift-gitops cluster: local-cluster placementRef: apiVersion: cluster.open-cluster-management.io/v1beta1 kind: Placement name: all-openshift-clusters status: lastUpdateTime: '2024-05-20T12:04:03Z' message: secrets "local-cluster-cluster-secret" not found phase: failed

      Expected results: GitOpsCluster CR creation should be successful

      Additional info: Issue is being discussed here- https://redhat-internal.slack.com/archives/CUEMQ631C/p1716213633632599

              xiangjingliredhat Xiangjing Li (Inactive)
              amagrawa@redhat.com Aman Agrawal
              Aman Agrawal Aman Agrawal
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: