Generated banner for Dynamo Troubleshoot
Generated logo for Dynamo Troubleshoot

Dynamo Troubleshoot

NVIDIAOfficialCreated by Dan GilDistributed by NVIDIA

  • Skill
  • Review and audit
  • Cloud and DevOps
  • Apache-2.0
  • Medium risk
  • Has scripts

From the author

Diagnose failed or unhealthy Dynamo deployments. Use when pods, model-cache jobs, PVCs, workers, frontend/router health, endpoints, or benchmark jobs fail; use recipe-runner/router-starter before this for normal bring-up.
— the description by Dan Gil

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

Dynamo Troubleshoot provides a structured, top-down methodology for diagnosing issues within Dynamo deployments. It utilizes a read-only debug bundle collection script to gather cluster state, events, and resource status, allowing operators to classify failures into specific buckets such as storage, GPU scheduling, or operator reconciliation. The skill emphasizes a systematic approach to troubleshooting, ensuring that users identify the root cause before applying minimal, reversible changes to their cluster configuration.

What it does

  • Collects a read-only debug bundle containing pods, events, jobs, and PVC status.
  • Provides a decision tree to classify failures into specific operational buckets.
  • Guides users through a top-down diagnostic order from infrastructure to application endpoints.
  • Suggests specific remediation steps for common failure modes like PVC binding or GPU scheduling.
  • Ensures safe troubleshooting by never executing mutations or collecting sensitive secrets.

When to use it

  • When a Dynamo deployment fails to reach a healthy state.
  • When pods, model-cache jobs, or benchmark jobs enter a failed or pending status.
  • When frontend or router services are unresponsive or failing to register workers.
  • When you need to audit the status of a DynamoGraphDeployment resource.

Advantages

  • Standardizes the diagnostic process for Dynamo environments.
  • Minimizes risk by focusing on read-only data collection and manual remediation.
  • Reduces mean time to resolution by categorizing failures into actionable buckets.
  • Prevents accidental exposure of sensitive information like Hugging Face tokens.

Usage examples

“Collect debug information for the dynamo-demo namespace.”
The agent runs the collection script and returns a bundle of cluster state, events, and resource status for the specified namespace.
“Troubleshoot a failing deployment named qwen-vllm-disagg in the production namespace.”
The agent collects scoped debug data for that specific deployment and provides a classification of the failure based on the decision tree.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/nvidia/dynamo-troubleshoot/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip dynamo-troubleshoot.zip -d .agents/skills

Documentation by Dan Gil

Dynamo Troubleshoot

<!-- SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. SPDX-License-Identifier: CC-BY-4.0 -->

Purpose

Turn a Dynamo failure into a clear problem class, strongest signal, and next action. Start with read-only evidence, avoid secrets, and fix one layer at a time.

Prerequisites

  • Python 3.10+ on the operator machine.

  • kubectl configured with read access to the target namespace.

  • Permission to read pods, events, jobs, PVCs, and DynamoGraphDeployment resources (NOT secrets).

  • Network reachability to the cluster API server.

Instructions

1. Collect A Read-Only Bundle

Run:

python3 scripts/collect_dynamo_debug_bundle.py \
  --namespace "${NAMESPACE}"

If the user names a deployment, include it:

python3 scripts/collect_dynamo_debug_bundle.py \
  --namespace "${NAMESPACE}" \
  --deployment-name <deployment-name>

Do not collect Kubernetes secrets. Do not print Hugging Face tokens.

2. Classify The Failure

Use references/failure-decision-tree.md and classify into one primary bucket:

  • cluster/platform

  • namespace/secret

  • model cache/PVC/download

  • image pull/runtime image

  • GPU scheduling/resources

  • operator/DynamoGraphDeployment reconciliation

  • frontend/router

  • worker/backend

  • endpoint/API

  • benchmark/perf job

3. Debug Top Down

Check in this order:

  1. namespace, storage class, GPU nodes, and HF secret existence

  2. PVC and model-download job

  3. DynamoGraphDeployment status and events

  4. pod status, describe pod, and container logs

  5. frontend service and port-forward

  6. /v1/models

  7. /v1/chat/completions

  8. benchmark job only after endpoint smoke test passes

4. Fix One Layer At A Time

Prefer the smallest reversible change:

  • create missing namespace or HF secret

  • patch storageClassName

  • patch image tag or image pull secret

  • reduce GPU request only if the recipe can still be valid

  • switch KV router to approximate mode only if workers do not publish events

  • restart failed jobs after fixing the underlying config

After each fix, rerun the relevant readiness check before moving deeper.

Available Scripts

ScriptPurposeArguments
scripts/collect_dynamo_debug_bundle.pyCollect a read-only debug bundle (pods, events, jobs, PVCs, CR status)--namespace, --deployment-name, --output-dir

Invoke via the agentskills.io run_script() protocol:

run_script("scripts/collect_dynamo_debug_bundle.py", args=["--namespace", "dynamo-demo"])

Examples

Collect everything in a namespace for triage:

python3 scripts/collect_dynamo_debug_bundle.py --namespace dynamo-demo

Scope to a single failing deployment:

python3 scripts/collect_dynamo_debug_bundle.py \
  --namespace dynamo-demo \
  --deployment-name qwen-vllm-disagg

Equivalent through the agent protocol:

run_script("scripts/collect_dynamo_debug_bundle.py", args=["--namespace", "dynamo-demo", "--deployment-name", "qwen-vllm-disagg"])

Output Contract

Return:

  • problem class

  • evidence checked

  • strongest signal

  • likely cause

  • exact next command or patch

  • what was ruled out

  • whether it is safe to continue deployment or benchmarking

Limitations

  • Read-only. Never mutates the cluster; remediation commands are returned, not executed.

  • Will not collect secrets or print Hugging Face tokens; some failure modes (auth) may need user-side inspection.

  • Bundle size grows with deployment size; on very large namespaces, scope with --deployment-name.

  • Does not validate disagg transport — use dynamo-interconnect-check for that.

Troubleshooting

SymptomLikely causeNext step
kubectl returns Forbidden on events/podsService account lacks read RBACAsk operator for read-only role binding on the namespace
Bundle missing DynamoGraphDeployment statusOperator not installed or different namespaceVerify dynamo-platform operator is installed and watching the namespace
Model-download job in PendingPVC unbound or HF secret missingFix PVC binding or create the named HF secret, then rerun the job
Worker pods CrashLoopBackOffImage/runtime mismatch or GPU not availableInspect container logs; check nvidia.com/gpu allocatable on nodes

Benchmark

See BENCHMARK.md for the NVCARPS-EVAL performance report (auto-generated by the NVSkills CI pipeline). To refresh, re-run /nvskills-ci on an upstream PR touching this skill.

References

  • Read references/failure-decision-tree.md for bucket-specific checks.

  • Use scripts/collect_dynamo_debug_bundle.py for read-only bundle collection.

Files

scripts/collect_dynamo_debug_bundle.py

#!/usr/bin/env python3
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

"""Collect a read-only Dynamo Kubernetes debug bundle without secrets."""

from __future__ import annotations

import argparse
import json
import re
import subprocess
import sys
import tempfile
from pathlib import Path
from typing import Any

# Tunables and conventional return codes (kept here to avoid magic numbers).
DEFAULT_KUBECTL_TIMEOUT_SEC = 30
DEFAULT_LOG_TAIL_LINES = 200
# POSIX-conventional return codes used when the wrapper itself fails before
# kubectl can produce a real one.
RETURNCODE_COMMAND_NOT_FOUND = 127  # `kubectl` not installed
RETURNCODE_TIMED_OUT = 124  # subprocess timeout

# `kubectl describe` and pod logs can echo secret env values (HF tokens,
# bearer tokens, passwords). Scrub them before anything is written to disk so
# the bundle honors its no-secrets contract.
_SECRET_KV_RE = re.compile(
    r"(?i)([A-Z0-9_]*(?:TOKEN|SECRET|PASSWORD|PASSWD|API[_-]?KEY|ACCESS[_-]?KEY|"
    r"CREDENTIAL)[A-Z0-9_]*)(\s*[:=]\s*)(\S+)"
)
_BEARER_RE = re.compile(r"(?i)(bearer\s+)([A-Za-z0-9._\-]+)")
_HF_TOKEN_RE = re.compile(r"\bhf_[A-Za-z0-9]{8,}\b")


def redact(text: str) -> str:
    if not text:
        return text
    text = _SECRET_KV_RE.sub(lambda m: f"{m.group(1)}{m.group(2)}<redacted>", text)
    text = _BEARER_RE.sub(lambda m: f"{m.group(1)}<redacted>", text)
    text = _HF_TOKEN_RE.sub("<redacted-hf-token>", text)
    return text


def run(cmd: list[str], timeout: int) -> dict[str, Any]:
    try:
        proc = subprocess.run(
            cmd, text=True, capture_output=True, timeout=timeout, check=False
        )
        return {
            "cmd": cmd,
            "returncode": proc.returncode,
            "stdout": proc.stdout,
            "stderr": proc.stderr,
        }
    except FileNotFoundError as exc:
        return {
            "cmd": cmd,
            "returncode": RETURNCODE_COMMAND_NOT_FOUND,
            "stdout": "",
            "stderr": str(exc),
        }
    except subprocess.TimeoutExpired as exc:
        return {
            "cmd": cmd,
            "returncode": RETURNCODE_TIMED_OUT,
            "stdout": exc.stdout or "",
            "stderr": exc.stderr or f"Timed out after {timeout}s",
        }


def write_result(outdir: Path, name: str, result: dict[str, Any]) -> None:
    safe = name.replace("/", "_").replace(" ", "_")
    (outdir / f"{safe}.txt").write_text(
        "$ "
        + " ".join(result["cmd"])
        + "\n\n"
        + "RETURN_CODE="
        + str(result["returncode"])
        + "\n\n"
        + "STDOUT\n"
        + redact(str(result["stdout"]))
        + "\n\n"
        + "STDERR\n"
        + redact(str(result["stderr"]))
        + "\n",
        encoding="utf-8",
    )


def kubectl_json(args: list[str], timeout: int) -> Any | None:
    result = run(["kubectl", *args, "-o", "json"], timeout)
    if result["returncode"] != 0:
        return None
    try:
        return json.loads(result["stdout"])
    except json.JSONDecodeError:
        return None


def pod_names(namespace: str, selector: str | None, timeout: int) -> list[str]:
    args = ["get", "pods", "-n", namespace]
    if selector:
        args.extend(["-l", selector])
    body = kubectl_json(args, timeout)
    if not body:
        return []
    return [
        item.get("metadata", {}).get("name")
        for item in body.get("items", [])
        if item.get("metadata", {}).get("name")
    ]


def container_names(namespace: str, pod: str, timeout: int) -> list[tuple[str, str]]:
    body = kubectl_json(["get", "pod", pod, "-n", namespace], timeout)
    if not body:
        return []
    specs = body.get("spec", {})
    containers: list[tuple[str, str]] = []
    for kind, field in [
        ("init", "initContainers"),
        ("container", "containers"),
    ]:
        for item in specs.get(field, []):
            if item.get("name"):
                containers.append((kind, item["name"]))
    return containers


def main() -> int:
    parser = argparse.ArgumentParser(description=__doc__)
    parser.add_argument("--namespace", "-n", required=True)
    parser.add_argument(
        "--deployment-name", help="DynamoGraphDeployment name, if known"
    )
    parser.add_argument(
        "--selector", help="Optional pod selector, for example app=my-app"
    )
    parser.add_argument(
        "--outdir",
        default=None,
        help="Output dir; defaults to a private mkdtemp dynamo-debug-* directory",
    )
    parser.add_argument("--tail", type=int, default=DEFAULT_LOG_TAIL_LINES)
    parser.add_argument("--timeout", type=int, default=DEFAULT_KUBECTL_TIMEOUT_SEC)
    args = parser.parse_args()

    if args.outdir:
        outdir = Path(args.outdir).expanduser().resolve()
        outdir.mkdir(parents=True, exist_ok=True)
    else:
        # mkdtemp gives an unpredictable name with 0700 perms, unlike a
        # guessable /tmp/dynamo-debug-<timestamp> path on a shared host.
        outdir = Path(tempfile.mkdtemp(prefix="dynamo-debug-")).resolve()

    commands: list[tuple[str, list[str]]] = [
        ("context", ["kubectl", "config", "current-context"]),
        ("nodes", ["kubectl", "get", "nodes", "-o", "wide"]),
        ("storageclass", ["kubectl", "get", "storageclass"]),
        ("namespace", ["kubectl", "get", "namespace", args.namespace, "-o", "yaml"]),
        (
            "dgd",
            [
                "kubectl",
                "get",
                "dynamographdeployment",
                "-n",
                args.namespace,
                "-o",
                "wide",
            ],
        ),
        ("pods", ["kubectl", "get", "pods", "-n", args.namespace, "-o", "wide"]),
        ("services", ["kubectl", "get", "svc", "-n", args.namespace, "-o", "wide"]),
        ("pvc", ["kubectl", "get", "pvc", "-n", args.namespace, "-o", "wide"]),
        ("jobs", ["kubectl", "get", "jobs", "-n", args.namespace, "-o", "wide"]),
        (
            "events",
            [
                "kubectl",
                "get",
                "events",
                "-n",
                args.namespace,
                "--sort-by=.lastTimestamp",
            ],
        ),
    ]
    if args.deployment_name:
        commands.append(
            (
                "describe_dgd",
                [
                    "kubectl",
                    "describe",
                    "dynamographdeployment",
                    args.deployment_name,
                    "-n",
                    args.namespace,
                ],
            )
        )

    summary: dict[str, Any] = {
        "outdir": str(outdir),
        "namespace": args.namespace,
        "commands": [],
    }
    for name, cmd in commands:
        result = run(cmd, args.timeout)
        write_result(outdir, name, result)
        summary["commands"].append(
            {"name": name, "cmd": cmd, "returncode": result["returncode"]}
        )

    pods = pod_names(args.namespace, args.selector, args.timeout)
    summary["pods"] = pods
    for pod in pods:
        result = run(
            ["kubectl", "describe", "pod", pod, "-n", args.namespace], args.timeout
        )
        write_result(outdir, f"describe_pod_{pod}", result)
        for kind, container in container_names(args.namespace, pod, args.timeout):
            result = run(
                [
                    "kubectl",
                    "logs",
                    pod,
                    "-c",
                    container,
                    "-n",
                    args.namespace,
                    f"--tail={args.tail}",
                ],
                args.timeout,
            )
            write_result(outdir, f"logs_{kind}_{pod}_{container}", result)
            previous_result = run(
                [
                    "kubectl",
                    "logs",
                    pod,
                    "-c",
                    container,
                    "-n",
                    args.namespace,
                    "--previous",
                    f"--tail={args.tail}",
                ],
                args.timeout,
            )
            write_result(
                outdir, f"logs_previous_{kind}_{pod}_{container}", previous_result
            )

    (outdir / "summary.json").write_text(
        json.dumps(summary, indent=2), encoding="utf-8"
    )
    print(json.dumps(summary, indent=2))
    return 0


if __name__ == "__main__":
    sys.exit(main())

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs Python

Security

What our scanner noticed· Medium risk

  • Large base64-encoded blobs
  • Instructions that use the network
  • Scripts that your agent may run

This skill includes scripts that your agent may run. Read them before you use it.

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Created by
Dan Gil
Publisher
NVIDIA (Official)
Distributed by
NVIDIA
Source
NVIDIA/skills · skills/dynamo-troubleshoot · commit fce3cca
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE-APACHE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Dan Gil or NVIDIA.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download dynamo-troubleshoot.zip