Details
-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
4.13
-
None
-
Moderate
-
No
-
False
-
Description
Description of problem:
CVO hotloops on ClusterRole machine-api-operator-ext-remediation.
# oc logs cluster-version-operator-5647dc8796-x6cn8 -n openshift-cluster-version | grep -o 'Updating .*due to diff'| sort | uniq -c 6 Updating ClusterRole machine-api-operator-ext-remediation due to diff 6 Updating CronJob openshift-operator-lifecycle-manager/collect-profiles due to diff
CVO log says
19577 I0420 04:34:29.318535 1 rbac.go:67] Updating ClusterRole machine-api-operator-ext-remediation due to diff: &v1.ClusterRole{ 19578 TypeMeta: v1.TypeMeta{ 19579 - Kind: "", 19580 + Kind: "ClusterRole", 19581 - APIVersion: "", 19582 + APIVersion: "rbac.authorization.k8s.io/v1", 19583 }, 19584 ObjectMeta: v1.ObjectMeta{ 19585 ... // 2 identical fields 19586 Namespace: "", 19587 SelfLink: "", 19588 - UID: "d8d15ce4-de9a-4014-9c2d-512e5a577350", 19589 + UID: "", 19590 - ResourceVersion: "32533", 19591 + ResourceVersion: "", 19592 Generation: 0, 19593 - CreationTimestamp: v1.Time{Time: s"2023-04-20 04:07:00 +0000 UTC"}, 19594 + CreationTimestamp: v1.Time{}, 19595 DeletionTimestamp: nil, 19596 DeletionGracePeriodSeconds: nil, 19597 ... // 2 identical fields 19598 OwnerReferences: {{APIVersion: "config.openshift.io/v1", Kind: "ClusterVersion", Name: "version", UID: "543519cb-f513-40fa-9fb2-10c1d3fa043a", ...}}, 19599 Finalizers: nil, 19600 - ManagedFields: []v1.ManagedFieldsEntry{ 19601 - { 19602 - Manager: "clusterrole-aggregation-controller", 19603 - Operation: "Apply", 19604 - APIVersion: "rbac.authorization.k8s.io/v1", 19605 - Time: s"2023-04-20 04:32:11 +0000 UTC", 19606 - FieldsType: "FieldsV1", 19607 - FieldsV1: s`{"f:rules":{}}`, 19608 - }, 19609 - { 19610 - Manager: "cluster-version-operator", 19611 - Operation: "Update", 19612 - APIVersion: "rbac.authorization.k8s.io/v1", 19613 - Time: s"2023-04-20 04:32:11 +0000 UTC", 19614 - FieldsType: "FieldsV1", 19615 - FieldsV1: s`{"f:aggregationRule":{".":{},"f:clusterRoleSelectors":{}},"f:met`..., 19616 - }, 19617 - }, 19618 + ManagedFields: nil, 19619 }, 19620 Rules: {}, 19621 AggregationRule: &{ClusterRoleSelectors: {{MatchLabels: {"rbac.ext-remediation/aggregate-to-ext-remediation": "true"}}}}, 19622 }
Version-Release number of selected component (if applicable):
4.13.0-0.nightly-2023-04-18-005127
How reproducible:
1/1
Steps to Reproduce:
1. Install a 4.13 cluster 2. Check hotloops in CVO log 3.
Actual results:
Got 6 Updating ClusterRole machine-api-operator-ext-remediation due to diff
Expected results:
CVO doesn’t hotloop on the resource
Additional info: