OpenShift Scenario Interviews: Trace a Failed Application Request

OpenShift scenario answers should trace the failed request through the relevant layers and use the supplied evidence to choose the next check. A visible Route does not prove a Service selects healthy application endpoints, and a running Pod does not prove the application is ready. The fictional case here is an externally failing service after a label change.

Jan 14, 2025 - 11:40
Updated: 
103.1k

OpenShift in IT Infrastructure · Explainer

OpenShift Scenario Interviews: Trace a Failed Application Request

Quick answer: OpenShift scenario answers should trace the failed request through the relevant layers and use the supplied evidence to choose the next check. A visible Route does not prove a Service selects healthy application endpoints, and a running Pod does not prove the application is ready. The fictional case here is an externally failing service after a label change. References use OpenShift Container Platform 5.0, with upstream Kubernetes concepts identified separately; no cluster operation is performed.

Key takeaways

  • Ask which cluster version and workload context the prompt uses.
  • Trace the request before changing capacity or restarting Pods.
  • Compare Service selectors with the intended workload labels.
  • Interpret readiness and restart evidence separately.
  • Treat storage provisioning as its own evidence question.

Table of Contents

Which platform details should you establish first?

Ask for the OpenShift version, installation model, affected namespace and application impact. The OpenShift 5.0 release guide is the versioned reference used here. A command or default remembered from an older deployment should be checked against the environment in the question before being recommended.

Keep the interview answer proportional to the prompt. An application failure may need a workload owner’s review, while widespread control-plane symptoms need a different response route. State the known boundary: one service, one namespace or a broader outage. If the interviewer has not supplied that information, ask instead of assuming every OpenShift problem requires a cluster-wide administrative change.

How would you investigate the fictional Route failure?

The fictional application worked before a deployment label changed. DNS resolves, the browser reaches the expected TLS endpoint and the application response fails. Two new Pods are reported ready, but no Service endpoint evidence has been supplied. The OpenShift 5.0 Route guide describes the OpenShift Route layer.

Start by checking whether the Route targets the intended Service and port, then whether that Service selects the intended workload. Working DNS and TLS do not establish that all later request layers work. Scaling the ready Pods would not resolve a selector that matches none of them. Preserve the current object relationships and error before proposing a change.

Given observationWhat it narrowsWhat remains unverified
DNS resolvesName lookup returned an addressRoute target and application endpoints
Expected TLS endpoint reachedConnection reached that endpointSuccessful forwarding to the application
Two Pods reported readySome workloads pass their readiness checksWhether the Service selects those Pods
Label changed before failureA relevant change existsWhether selector mismatch is the cause

What would establish a Service selector mismatch?

The Kubernetes Service troubleshooting guide explains how Service selectors relate to Pods and EndpointSlices. In the invented worksheet, the Service selects component=orders-old, while the intended new Pods carry component=orders-new. If no other matching ready endpoints exist, that relationship explains why adding more similarly labelled new Pods would not satisfy the old selector.

This is a diagnosis to verify against the full supplied objects, not permission to change production labels blindly. Ask the application owner which selection was intended and whether another controller manages those fields. An approved correction needs a narrowly defined change and a request-level validation. Keep the old and proposed relationships visible so the reviewer can assess the effect.

How do deployment and readiness details change the response?

The OpenShift 5.0 deployment guide distinguishes deployment mechanisms and states that DeploymentConfig has been deprecated since 4.14, while remaining supported with limits in the referenced documentation. For new declarative workload decisions, do not present it as an interchangeable default choice without reviewing the version’s guidance.

Readiness, available replicas and successful application behaviour are related but separate observations. A readiness check may cover less than the full user transaction. In this case, confirm which controller owns the new Pods and what their labels and health checks mean. A rollout showing progress does not independently prove the Route-to-Service-to-application path meets the user’s request.

What if the prompt changes to CrashLoopBackOff?

The Kubernetes Pod lifecycle guide explains container restart behaviour and backoff. CrashLoopBackOff describes a repeated container-start failure condition shown during troubleshooting; it should not be treated as a final root cause. Ask for the failing container, relevant previous termination information, events and application logs.

A missing configuration value, failed dependency or unsuitable health check could lead to different fixes. Do not assume every restart loop needs more CPU or a Pod deletion. Relate the evidence to the last change and determine who owns the configuration. Any proposed action should state the expected effect and how the application owner will confirm the problem is resolved.

What if a workload is waiting for persistent storage instead?

The OpenShift 5.0 persistent storage guide explains persistent volumes and claims. A pending claim needs its storage class, requested access mode, size, provisioning events and relevant scheduling context reviewed. Dynamic provisioning and delayed binding can affect the interpretation, so “no available static PV” is not enough to prescribe creating one.

Keep storage evidence separate from the Route case unless it actually explains the workload’s failure. Ask whether the claim belongs to the application and whether the storage provider is healthy. A data-bearing object should not be deleted merely to clear a status. The owner needs the intended storage behaviour and recovery requirements before an administrator proposes a change.

ScenarioFirst evidence questionPremature action
Route fails after label changeWhich Pods does the Service select?Increase replica count without checking selection
Repeated container restartWhat terminated and why?Delete the Pod as the complete diagnosis
Claim remains pendingWhat do provisioning and binding events say?Create or remove storage without context

What should your final interview answer validate?

State the failed user operation and the evidence that narrows its cause. Identify the owner and proposed correction, then explain how an approved test would demonstrate success. For the invented label mismatch, validation should cover the intended endpoint selection and the actual application request, not merely whether the object update was accepted.

Mention any remaining uncertainty and the relevant versioned procedure. You can demonstrate this reasoning with a paper object map and invented observations; a live cluster story is useful only if it is genuinely yours to discuss. Keep credentials, tenant details and customer data out of practice material.

Related reading: Prepare administration responsibility answers; Discuss upgrade and recovery judgment.

References

Frequently Asked Questions

No, the target Service, selected endpoints, ports and application behaviour still need to support the intended request path.

Yes, readiness does not make a Pod match an unrelated Service selector, so inspect the labels and intended selection.

More Pods with the same nonmatching labels would not satisfy the old selector; verify the intended relationship before proposing a correction.

The OpenShift 5.0 deployment guide retains support with limits but documents deprecation and recommends Deployments or another declarative alternative.

No, investigate the container’s termination context, events and application evidence to identify the condition causing repeated restart attempts.

No, review the storage class, provisioning behaviour, binding conditions and events before deciding which storage action is appropriate.

No, the examples use invented object relationships and observations, without accessing or changing a real cluster.

Use the version matching the environment being discussed; this article’s OpenShift references use 5.0 and identify upstream Kubernetes material separately.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Vaishnavi

Vaishnavi is a skilled tech professional at the Ethical Hacking Training Institute in Pune, responsible for managing and optimizing the technical infrastructure that supports advanced cybersecurity education. With deep expertise in network security, backend operations, and system performance, she ensures that practical labs, online modules, and assessments run smoothly and securely. Her behind-the-scenes contributions play a vital role in delivering a seamless and secure learning experience for aspiring ethical hackers.