Logs are not visible for the pods on few specific nodes

Solution Verified - Updated -

Issue

  • Not able to run oc logs for pods that are running on new worker nodes.
~]# oc logs sdn-sqhdk -f -c sdn
Error from server: Get "https://xx.xxx.xx.xx:10250/containerLogs/openshift-sdn/sdn-sqhdk/sdn?follow=true": Forbidden
  • Recently added vpc and installed new nodes from it. While trying to check the logs the below error displayed:
Error from server: Get "https://xx.xxx.xx.xx:10250/containerLogs/openshift-sdn/sdn-jjzmv/sdn?follow=true": Bad Request

Environment

  • OpenShift Container Platform 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