oc debug node command fails with "pod node name conflicts with project node label selector" error

Solution Verified - Updated -

Issue

  • oc debug node/XXX command fails with pod node name conflicts with project node label selector error

    $ oc debug node/master-0.example.com
    Error from server (Forbidden): pods "master-0examplecom-debug-xxxxx" is forbidden: pod node name conflicts with project node label selector
    
  • oc debug node/XXX command fails only on some specific nodes.
    This command succeeds on the other nodes.

Environment

  • Red Hat OpenShift Container Platform 4.16

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