Pods are stuck with a 'Terminating' or 'Unknown' status and cannot be deleted using 'oc delete pods' even with '--grace-period=0' and '--force' options

Updated 2019-05-21T14:08:09+00:00

Issue

  • There are pods that can not be deleted.
  • One or more pods are stuck in 'Terminating' state.
  • One or more pods are stuck in 'Unknown' state.
  • Deleting pods with the parameters '--grace-period=0' and '--force options' does not remove pods with 'Terminating' or 'Unknown' status. For example, 'oc delete pods somepod-123 --grace-period=0 --force'.

Environment

  • OpenShift Container Platform
    • OCP 3.7
    • OCP 3.9
    • OCP 3.10

Subscriber content preview. For full access to the Red Hat Knowledgebase, please log in.

Not a subscriber? Learn more about the benefits of Red Hat Subscriptions.