-
Bug
-
Resolution: Done-Errata
-
None
-
False
-
-
False
-
CLOSED
-
---
-
---
-
-
-
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":
,
"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": [
],
"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": "
"
},
"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
- external trackers
- mentioned on