+++ This bug was initially created as a clone of Bug #2084664 +++ Description of problem: 2022-05-12T13:38:39.664Z DEBUG controller-runtime.manager.events Warning {"object": {"kind":"ClusterGroupUpgrade","namespace":"ztp-upgrade","name":"upgrade-all-sno","uid":"63074235-7cad-42ae-8ae1-84bf1458655d","apiVersion":"ran.openshift.io/v1alpha1","resourceVersion":"33942064"}, "reason": "UpgradeTimedOut", "message": "The ClusterGroupUpgrade CR policies are taking too long to complete"} E0512 13:38:39.684143 1 event.go:264] Server rejected event '&v1.Event{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"upgrade-all-sno.16ee5f2391b4a2fe", GenerateName:"", Namespace:"ztp-upgrade", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), DeletionTimestamp:<nil>, DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ClusterName:"", ManagedFields:[]v1.ManagedFieldsEntry(nil)}, InvolvedObject:v1.ObjectReference{Kind:"ClusterGroupUpgrade", Namespace:"ztp-upgrade", Name:"upgrade-all-sno", UID:"63074235-7cad-42ae-8ae1-84bf1458655d", APIVersion:"ran.openshift.io/v1alpha1", ResourceVersion:"33942064", FieldPath:""}, Reason:"UpgradeTimedOut", Message:"The ClusterGroupUpgrade CR policies are taking too long to complete", Source:v1.EventSource{Component:"ClusterGroupUpgrade", Host:""}, FirstTimestamp:time.Date(2022, time.May, 12, 13, 38, 39, 664579326, time.Local), LastTimestamp:time.Date(2022, time.May, 12, 13, 38, 39, 664579326, time.Local), Count:1, Type:"Warning", EventTime:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), Series:(*v1.EventSeries)(nil), Action:"", Related:(*v1.ObjectReference)(nil), ReportingController:"", ReportingInstance:""}': 'events is forbidden: User "system:serviceaccount:openshift-cluster-group-upgrades:cluster-group-upgrades-controller-manager" cannot create resource "events" in API group "" in the namespace "ztp-upgrade"' (will not retry!) Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1. Start an upgrade with short timeout 2. 3. Actual results: Timeout event gets rejected Expected results: Events published successfully Additional info:
Verified on latest 4.10 TALM. Following error printed when times out. 2022-07-05T19:27:18.860Z DEBUG controller-runtime.manager.events Warning {"object": {"kind":"ClusterGroupUpgrade","namespace":"default","name":"test","uid":"47d90657-b146-4bff-84b7-1e3d495774d5","apiVersion":"ran.openshift.io/v1alpha1","resourceVersion":"23245882"}, "reason": "UpgradeTimedOut", "message": "The ClusterGroupUpgrade CR policies are taking too long to complete"}
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Container Platform 4.10.22 extras update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:5514