Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-28181

[2187509] Some CNV installation components are missing required labels

XMLWordPrintable

    • CNV I/U Operators Sprint 235, CNV I/U Operators Sprint 236, CNV I/U Operators Sprint 237, CNV I/U Operators Sprint 238, CNV I/U Operators Sprint 239
    • No

      Description of problem: Following hco managed resources are missing "app.kubernetes.io/managed-by", "app.kubernetes.io/version", "app.kubernetes.io/component", "app.kubernetes.io/part-of" metadata.labels

      List of resources:
      1) Hyperconverged
      2) Secret: hyperconverged-cluster-operator-dockercfg-, hyperconverged-cluster-operator-token-, hco-webhook-service-cert, deployer-token-, deployer-dockercfg-, default-token-, default-dockercfg-, plugin-serving-cert, builder-dockercfg, builder-token
      3) rolebinding: kubevirt-hyperconverged-operator.v4.13.0, hco-webhook-service-cert, system:image-builders, system:image-pullers, system:deployers
      6) serviceaccount hyperconverged-cluster-operator, builder, default, deployer
      7) endpoints hco-webhook-service
      8) endpointslice hco-webhook-service-ck6pt
      9) service hco-webhook-service
      10) ConfigMap hyperconverged-cluster-operator-lock, openshift-service-ca.crt, kube-root-ca.crt
      11) lease hyperconverged-cluster-operator-lock
      12) Pods: kubevirt-console-plugin-*
      13) PodMetrics: kubevirt-console-plugin-*

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

      How reproducible:
      100%

      Steps to Reproduce:
      1. Check all resources installed in openshift-cnv namespace and ensure all the above mentioned labels are present.
      2.
      3.

      Actual results:
      ====================
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$ oc get hyperconverged kubevirt-hyperconverged -n openshift-cnv -o json | jq ".metadata.labels"
      {
      "app": "kubevirt-hyperconverged"
      }
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$
      ====================
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$ oc get secret hyperconverged-cluster-operator-token-qmq7h -n openshift-cnv -o json | jq ".metadata"
      {
      "annotations":

      { "kubernetes.io/created-by": "openshift.io/create-dockercfg-secrets", "kubernetes.io/service-account.name": "hyperconverged-cluster-operator", "kubernetes.io/service-account.uid": "e66a6c95-d7c1-4a37-bdf7-efc78cc3502f" }

      ,
      "creationTimestamp": "2023-04-05T13:24:20Z",
      "name": "hyperconverged-cluster-operator-token-qmq7h",
      "namespace": "openshift-cnv",
      "resourceVersion": "62662",
      "uid": "d7d01f08-cf71-4310-a81a-3bfec84bad3d"
      }
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$
      ====================
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$ oc get secret hco-webhook-service-cert -n openshift-cnv -o json | jq ".metadata.labels"
      {
      "olm.managed": "true",
      "operators.coreos.com/kubevirt-hyperconverged.openshift-cnv": ""
      }
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$
      ====================
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$ oc get rolebinding kubevirt-hyperconverged-operator.v4.13.0 -n openshift-cnv -o json | jq ".metadata"
      {
      "creationTimestamp": "2023-04-05T13:24:16Z",
      "name": "kubevirt-hyperconverged-operator.v4.13.0",
      "namespace": "openshift-cnv",
      "ownerReferences": [

      { "apiVersion": "operators.coreos.com/v2", "blockOwnerDeletion": false, "controller": true, "kind": "OperatorCondition", "name": "kubevirt-hyperconverged-operator.v4.13.0", "uid": "a1e1a356-ccc0-4827-ade3-457145429810" }

      ],
      "resourceVersion": "62496",
      "uid": "67148f0b-5664-4b43-b376-70795c8605bd"
      }
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$
      =========================
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$ oc get rolebinding hco-webhook-service-cert -n openshift-cnv -o json | jq ".metadata.labels"
      {
      "operators.coreos.com/kubevirt-hyperconverged.openshift-cnv": ""
      }
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$
      ==========================
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$ oc get serviceaccount hyperconverged-cluster-operator -n openshift-cnv -o json | jq ".metadata.labels"
      {
      "operators.coreos.com/kubevirt-hyperconverged.openshift-cnv": ""
      }
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$
      ===========================
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$ oc get endpoints hco-webhook-service -n openshift-cnv -o json | jq ".metadata.labels"
      {
      "operators.coreos.com/kubevirt-hyperconverged.openshift-cnv": ""
      }
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$
      ===========================
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$ oc get endpointslice hco-webhook-service-ck6pt -n openshift-cnv -o json | jq ".metadata.labels"
      {
      "endpointslice.kubernetes.io/managed-by": "endpointslice-controller.k8s.io",
      "kubernetes.io/service-name": "hco-webhook-service",
      "operators.coreos.com/kubevirt-hyperconverged.openshift-cnv": ""
      }
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$
      ===========================
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$ oc get service hco-webhook-service -n openshift-cnv -o json | jq ".metadata.labels"
      {
      "operators.coreos.com/kubevirt-hyperconverged.openshift-cnv": ""
      }
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$
      ===========================
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$ oc get lease hyperconverged-cluster-operator-lock -n openshift-cnv -o json | jq ".metadata"
      {
      "creationTimestamp": "2023-04-05T13:24:45Z",
      "name": "hyperconverged-cluster-operator-lock",
      "namespace": "openshift-cnv",
      "resourceVersion": "19320972",
      "uid": "31961498-52ef-4cdc-9eab-f2381338afae"
      }
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$
      ===========================
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$ oc get ConfigMap hyperconverged-cluster-operator-lock -n openshift-cnv -o json | jq ".metadata"
      {
      "annotations": {
      "control-plane.alpha.kubernetes.io/leader": "

      {\"holderIdentity\":\"hco-operator-5ff65cc478-cd89r_4d9f671a-c146-487f-8d17-53bf59cc43d8\",\"leaseDurationSeconds\":15,\"acquireTime\":\"2023-04-12T21:00:12Z\",\"renewTime\":\"2023-04-17T19:09:11Z\",\"leaderTransitions\":11}

      "
      },
      "creationTimestamp": "2023-04-05T13:24:45Z",
      "name": "hyperconverged-cluster-operator-lock",
      "namespace": "openshift-cnv",
      "resourceVersion": "19322433",
      "uid": "5192ea5f-82d9-4fad-80db-01e64d4365e1"
      }
      (cnv-tests-4-13-py3.9) [cloud-user@ocp-ipi-executor-xl cnv-tests]$

      Expected results:
      All these resources should have associated "app.kubernetes.io/managed-by", "app.kubernetes.io/version", "app.kubernetes.io/component", "app.kubernetes.io/part-of" in metadata.labels

      Additional info:
      Background information: https://issues.redhat.com/browse/CNV-9097

              rhn-support-dshah Dharmit Shah (Inactive)
              rhn-support-dbasunag Debarati Basu-Nag
              Debarati Basu-Nag Debarati Basu-Nag
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: