Skip to content

fix(ci): capture pod state and events when OCP pods time out - #173

Open
sudoalok wants to merge 1 commit into
llm-d:mainfrom
sudoalok:fix/ocp-readiness-timeout-debug
Open

fix(ci): capture pod state and events when OCP pods time out#173
sudoalok wants to merge 1 commit into
llm-d:mainfrom
sudoalok:fix/ocp-readiness-timeout-debug

Conversation

@sudoalok

@sudoalok sudoalok commented May 25, 2026

Copy link
Copy Markdown
Contributor

Closes llm-d/llm-d#1570

What was missing

When pods didn't become ready in time, the diagnostic only described
pods where phase != Running. The problem is a pod can be in Running
phase but still not Ready — for example if a health check is failing.
Those pods were completely skipped, so the logs had nothing useful.

On top of that, Kubernetes events were never captured. Events are
usually the first place you look to understand why a pod isn't starting
— things like image pull failures, volume mount errors, OOM kills, etc.

What this PR does

  • Checks the Ready condition instead of phase to find stuck pods
  • Adds kubectl get events capture at timeout time
  • Saves everything to a pod-timeout-diagnostics artifact on failure
    so the next time this happens, the data is right there

Applies to both reusable-nightly-e2e-openshift.yaml and
reusable-nightly-e2e-openshift-helmfile.yaml.

This doesn't fix why pods aren't becoming ready — that needs the
artifact data first. But at least the next failure won't be opaque.

When pods fail to become ready, the previous diagnostic only described
pods with phase!=Running — missing pods that are Running but not Ready
(e.g. failing health checks). Kubernetes events were also not captured,
making the root cause opaque.

Fixed by checking Ready condition instead of phase, adding event
capture, and uploading a timeout-diagnostics artifact on failure.

Closes #1570

Signed-off-by: Alok Behera <alokbeherak061@gmail.com>
@ahg-g

ahg-g commented May 25, 2026

Copy link
Copy Markdown
Contributor

/assign @maugustosilva

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI/CD] OCP nightlies fail with "Pods did not become ready within 30m"

3 participants