Assigning a role that does not exist: error synchronizing: clusterrole.rbac.authorization.k8s.io "rolename" not found
Issue
If a role that does not exist in OpenShift is assigned to a user, the operation is completed successfully, no errors are raised from the command line but some leftover items are stored in rbac metadata.
In addition, the atomic-openshift-master-api service is reporting some errors about this role permanently:
Jul 06 04:00:31 master1.example.com atomic-openshift-master-api[3973]: E0706 04:00:31.051485 3973 cache.go:295] error synchronizing: clusterrole.rbac.authorization.k8s.io "clusteradmin" not found
Environment
- OpenShift
- 3.9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
