rc==0 when a command executed via oc debug fails

Solution Verified - Updated -


  • oc debug should fail when command executed via oc debug fails but instead returned code is 0.

  • When debugging into the node and run command, even though command failed , return code is 0.


  • Red Hat Openshift Container Platform 4.10 and older

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