One minute
OpenShift Troubleshooting Application Deployments
General troubleshooting steps for OCP Application Deployments.
Troubleshooting Pods that fail to start
Scenario: Openshift creates pod but the pod never establishes a running state
Action: Run the following commands to verify whether the pods are running or not. Check whether the pods are in error state such as ErrImagePull
or ImagePullBackOff
.
$ oc get pod
$ oc status
List events from the current project or get the list of events filtered by pod.
$ oc get events
$ oc describe pod
Troubleshooting Running and Terminated Pods
Scenario: OpenShift creates pod. The pod enters the Running state. At least one of its container started running. Later, an application running inside one of the pod containers stops working. It might either terminate or return error messages to user requests.
Action: Check pod logs, for single-container pod:
$ oc logs <pod name>
If the pod contains multiple containers
$ oc logs <pod name> -c <container name>