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

acm_managed_cluster_info metric for aws hosted cluster does not show created by

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • MCE 2.4.0
    • ACM 2.9.0, MCE 2.4.0
    • HyperShift
    • None
    • Important
    • No

      Description of problem:

      When querying acm_managed_cluster_info for telemetry, AWS Hosted clusters show "created by" field as "hypershift" but shows nothing for the value instead:

      See the managedcluster annotation open-cluster-management/created-via: hypershift for the hosted cluster:

      apiVersion: cluster.open-cluster-management.io/v1
      kind: ManagedCluster
      metadata:
        annotations:
          import.open-cluster-management.io/hosting-cluster-name: local-cluster
          import.open-cluster-management.io/klusterlet-deploy-mode: Hosted
          open-cluster-management/created-via: hypershift
        creationTimestamp: "2023-09-18T21:29:54Z"
        finalizers:
        - managedcluster-import-controller.open-cluster-management.io/cleanup
        - open-cluster-management.io/managedclusterrole
        - managedclusterinfo.finalizers.open-cluster-management.io
        - cluster.open-cluster-management.io/api-resource-cleanup
        - managedcluster-import-controller.open-cluster-management.io/manifestwork-cleanup
        generation: 4
        labels:
          cloud: Amazon
          cluster.open-cluster-management.io/clusterset: default
          clusterID: e3f7e270-2837-4b4a-b5f3-edf063793d86
          feature.open-cluster-management.io/addon-application-manager: available
          feature.open-cluster-management.io/addon-cert-policy-controller: available
          feature.open-cluster-management.io/addon-cluster-proxy: available
          feature.open-cluster-management.io/addon-config-policy-controller: available
          feature.open-cluster-management.io/addon-governance-policy-framework: available
          feature.open-cluster-management.io/addon-iam-policy-controller: available
          feature.open-cluster-management.io/addon-search-collector: available
          feature.open-cluster-management.io/addon-work-manager: available
          name: clc-hcp-aws
          openshiftVersion: 4.14.0-rc.1
          openshiftVersion-major: "4"
          openshiftVersion-major-minor: "4.14"
          vendor: OpenShift
        name: clc-hcp-aws
        resourceVersion: "204818"
        uid: 5744a1b2-8770-4dee-8ae7-1d2dcb9e9afe
      spec:
        hubAcceptsClient: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FVVUdSL0Y0dVlXZGZuR2FWN0xLV2hNClpOME5OTG5KNGc9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
          url: https://a72220795c39e424d9026465c52b8fce-8c58524ef1fa91e2.elb.us-east-1.amazonaws.com:6443
      status:
        allocatable:
          cpu: "7"
          ephemeral-storage: "228699691036"
          hugepages-1Gi: "0"
          hugepages-2Mi: "0"
          memory: 29707848Ki
          pods: "500"
        capacity:
          core_worker: "8"
          cpu: "8"
          ephemeral-storage: 250485216Ki
          hugepages-1Gi: "0"
          hugepages-2Mi: "0"
          memory: 32009800Ki
          pods: "500"
          socket_worker: "2"
        clusterClaims:
        - name: id.k8s.io
          value: e3f7e270-2837-4b4a-b5f3-edf063793d86
        - name: kubeversion.open-cluster-management.io
          value: v1.27.4+2c287eb
        - name: platform.open-cluster-management.io
          value: AWS
        - name: product.open-cluster-management.io
          value: OpenShift
        - name: consoleurl.cluster.open-cluster-management.io
          value: https://console-openshift-console.apps.clc-hcp-aws.dev09.red-chesterfield.com
        - name: controlplanetopology.openshift.io
          value: External
        - name: hostedcluster.hypershift.openshift.io
          value: "true"
        - name: id.openshift.io
          value: e3f7e270-2837-4b4a-b5f3-edf063793d86
        - name: infrastructure.openshift.io
          value: '{"infraName":"clc-hcp-aws-76pxl"}'
        - name: oauthredirecturis.openshift.io
          value: https://oauth-local-cluster-clc-hcp-aws.apps.clc-a29-02.dev09.red-chesterfield.com:443/oauth/token/implicit
        - name: region.open-cluster-management.io
          value: us-east-1
        - name: version.openshift.io
          value: 4.14.0-rc.1
        conditions:
        - lastTransitionTime: "2023-09-18T21:29:55Z"
          message: Import succeeded
          reason: ManagedClusterImported
          status: "True"
          type: ManagedClusterImportSucceeded
        - lastTransitionTime: "2023-09-18T21:29:55Z"
          message: Accepted by hub cluster admin
          reason: HubClusterAdminAccepted
          status: "True"
          type: HubAcceptedManagedCluster
        - lastTransitionTime: "2023-09-18T21:30:24Z"
          message: Managed cluster joined
          reason: ManagedClusterJoined
          status: "True"
          type: ManagedClusterJoined
        - lastTransitionTime: "2023-09-18T21:30:24Z"
          message: Managed cluster is available
          reason: ManagedClusterAvailable
          status: "True"
          type: ManagedClusterConditionAvailable
        version:
          kubernetes: v1.27.4+2c287eb 

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

      ACM 2.9.0-DOWNSTREAM-2023-09-18-01-52-24

      How reproducible:

      always

      Steps to Reproduce:

      1. deploy aws self-managed hosted cluster
      2. query acm_managed_cluster_info metric either via ui or cli
      3. observe created-by column not filled

      Actual results:

      Expected results:

      Additional info:

              rokejungrh Roke Jung
              rhn-support-dhuynh David Huynh
              David Huynh David Huynh
              ACM QE Team
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: