You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user try to get a manage cluster to join, the klusterlet-registration-agent goes into CrashLoopBackOff for an Oracle Kubernetes Engine cluster.
When looking at the logs:
builder.go:230] unable to get owner reference (falling back to namespace): pods is forbidden: User "system:serviceaccount:open-cluster-management-agent:klusterlet-registration-sa"
cannot list resource "pods" in API group "" in the namespace "open-cluster-management-agent"
It assumes that the POD_NAME env var is populated and if it isn't then it will try to inspect the POD itself to find whatever information it needs. Since the klusterlet agent rbac does not include pod related accesses so this error occurs and blocks the cluster from joining. The current workaround is adding a new role/rolebinding and the error is bypassed.
kubectl version: v1.23.7+1
clusteradm version:
client version :v0.3.1
server release version :v1.23.4
default bundle version :0.8.0
Kubernetes version: v1.23.4
Distribution: Oracle Kubernetes Engine
When a user try to get a manage cluster to join, the klusterlet-registration-agent goes into CrashLoopBackOff for an Oracle Kubernetes Engine cluster.
When looking at the logs:
It seems like the error might be related to the usage of the code here
https://github.com/openshift/cluster-etcd-operator/blob/release-4.13/vendor/github.com/openshift/library-go/pkg/operator/events/recorder.go#L52-L56
It assumes that the POD_NAME env var is populated and if it isn't then it will try to inspect the POD itself to find whatever information it needs. Since the klusterlet agent rbac does not include pod related accesses so this error occurs and blocks the cluster from joining. The current workaround is adding a new role/rolebinding and the error is bypassed.
Reported by @hyder
The text was updated successfully, but these errors were encountered: