Pods hung in Pending after deploy

Solution In Progress - Updated -

Environment

  • Red Hat OpenShift Enterprise 3.1

Issue

  • After deploying pods in OpenShift, some pods never recover from Pending status
  • Pods are showing as Pending in the OpenShift web console
  • Pods are showing as Pending in the OpenShift command-line interface (CLI) tool

Resolution

Retry the last deployment, if it is in a failed state:

$ oc deploy <config-name> --retry

If retry fails, cancel an in-progress deployment at any time:

$ oc deploy <config-name> --cancel

To kick off a new deployment, if there is no pending deployment:

$ oc deploy <config-name> --latest

To remove pods stuck in pending or terminating, see How to delete pods stuck in pending or terminating.

Root Cause

This behavior may be associated with a known issue with Kubernetes

Diagnostic Steps

Further diagnostics of the Red Hat container registry may be obtained by troubleshooting the container registry. Also see solution about Pods fail to start when pulling an image.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.