unable to load root certificates: unable to parse bytes as PEM block in kube-apiserver in OCP 4

Solution Verified - Updated -

Issue

  • Projects are stuck in terminating state:
openshift-debug-node-b5cg4rgjfd                                               Terminating
openshift-debug-node-rtkbgb9w6x                                               Terminating
  • kube-apiserver is streaming the below errors frequently:
2022-04-07T00:26:02.688753906Z E0407 00:26:02.687954      17 customresource_handler.go:324] unable to load root certificates: unable to parse bytes as PEM block
2022-04-07T00:26:03.752402270Z E0407 00:26:03.752284      17 customresource_handler.go:324] unable to load root certificates: unable to parse bytes as PEM block
  • The kube-controller-manager logs show deletion of namespace <namespace>-deployment failed
2022-05-18T17:18:59.909159201Z E0518 17:18:59.909100    1 namespace_controller.go:162]  deletion of namespace <NAMESPACE>-deployment failed: Internal error occurred: error resolving resource
  • The gitlab-runner-operator ClusterServiceVersion is showing errors in it's status condition:
message: 'install strategy failed: Internal error occurred: failed calling webhook

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content