Bug 2099719 - RBAC rule missing for TALO to publish events
Summary: RBAC rule missing for TALO to publish events
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Telco Edge
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.10.z
Assignee: Steven Skeard
QA Contact: yliu1
URL:
Whiteboard:
Depends On: 2084664
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-21 14:41 UTC by OpenShift BugZilla Robot
Modified: 2022-07-11 15:28 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-11 15:28:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift-kni cluster-group-upgrades-operator pull 225 0 None open [release-4.10] Bug 2099719: Add missing RBAC permissions to allow creating and patching of events 2022-06-22 15:55:38 UTC
Red Hat Product Errata RHBA-2022:5514 0 None None None 2022-07-11 15:28:49 UTC

Description OpenShift BugZilla Robot 2022-06-21 14:41:05 UTC
+++ 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:

Comment 1 yliu1 2022-07-05 19:31:33 UTC
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"}

Comment 4 errata-xmlrpc 2022-07-11 15:28:45 UTC
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


Note You need to log in before you can comment on or make changes to this bug.