agentleFS
scitixscitix/siclaw/skills/core/volcano-diagnose-pod/SKILL.md

volcano-diagnose-pod

Skill235 starsChanged 6 months agoApache-2.0View on GitHub

Diagnose Volcano-managed Pod scheduling issues. Checks Pod status, PodGroup, events, and Queue to identify scheduling failures.

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. About 0 are common, 10 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check the Pod's current phase and conditions.

    line 50
  2. Distinctive:

    Check if the Pod is associated with a PodGroup and its scheduling status.

    line 58
  3. Distinctive:

    Check scheduling events for failure reasons.

    line 72
  4. Distinctive:

    Look for these event patterns:

    line 78
  5. Distinctive:

    No node has enough allocatable resources.

    line 96
  6. Very specific:

    Volcano context: If this is a Gang-scheduled pod, even if total cluster resources are sufficient, you need enough resources simultaneously …

    line 100
  7. Very specific:

    If you see events mentioning reclaim:

    line 116
  8. Very specific:

    Check queue status: volcano-queue-diagnose --queue <queue>

    line 119
  9. Distinctive:

    Check the Queue configuration and resource allocation.

    line 132
  10. Very specific:

    When --verbose is specified, also check node allocatable resources.

    line 148
  11. Very specific:

    Check if Volcano scheduler is running: kubectl get pods -n volcano-system -l app=volcano-scheduler

    line 157
  12. Very specific:

    Check if Volcano controller-manager is running: kubectl get pods -n volcano-system -l app=volcano-controller-manager

    line 158
  13. Very specific:

    Check scheduler logs: volcano-scheduler-logs skill

    line 160
  14. Very specific:

    If the queue name is empty, the job uses the default queue — verify it exists and is Open

    line 169
  15. Distinctive:

    Check Queue capacity and deserved resources

    line 170
  16. Distinctive:

    Check if cluster has sufficient resources

    line 171
  17. Very specific:

    Check if minMember constraint is not satisfied

    line 174
  18. Distinctive:

    Check if there are affinity/anti-affinity conflicts

    line 175
  19. Distinctive:

    Check if taints prevent scheduling

    line 176
  20. Very specific:

    Use volcano-queue-diagnose for detailed analysis

    line 181

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Volcano Pod Diagnosis

Diagnose Volcano-managed Pod scheduling issues. This skill checks Pod status, associated PodGroup, scheduling events, and Queue configuration to identify why a Pod cannot be scheduled.

Scope: This skill is for diagnosis only. Once you identify the root cause, report it to the user and stop. Do NOT attempt to modify pod specs, PodGroups, or Queues — that should be left to the user.

Usage

bash skills/core/volcano-diagnose-pod/scripts/diagnose-pod.sh --pod <pod-name> --namespace <namespace>

Parameters

ParameterRequiredDescription
--pod PODyesPod name to diagnose
--namespace NSnoNamespace (default: default)
--verbosenoShow detailed output including node resources

Examples

Diagnose a pending pod in default namespace:

bash skills/core/volcano-diagnose-pod/scripts/diagnose-pod.sh --pod my-job-0

Diagnose a pod in specific namespace:

bash skills/core/volcano-diagnose-pod/scripts/diagnose-pod.sh --pod my-job-0 --namespace training

Verbose mode with node resource information:

bash skills/core/volcano-diagnose-pod/scripts/diagnose-pod.sh --pod my-job-0 --namespace training --verbose

Diagnostic Flow

The script performs the following checks in order:

1. Pod Status

Check the Pod's current phase and conditions.

kubectl get pod <pod> -n <ns> -o wide
kubectl describe pod <pod> -n <ns>

2. PodGroup Status

Check if the Pod is associated with a PodGroup and its scheduling status.

kubectl get pod <pod> -n <ns> -o jsonpath='{.metadata.annotations.scheduling.volcano.sh/pod-group}'
kubectl get podgroup <podgroup> -n <ns>

Key fields to check:

  • spec.minMember: Minimum members required for Gang scheduling
  • status.phase: Pending, Inqueue, Running, Unknown
  • status.running: Number of running pods
  • status.pending: Number of pending pods

3. Events Analysis

Check scheduling events for failure reasons.

kubectl get events -n <ns> --field-selector involvedObject.name=<pod> --sort-by='.lastTimestamp'

Look for these event patterns:

FailedScheduling - General scheduling failure

The scheduler attempted but failed to schedule the pod. Check the message for specific reasons.

Volcano-specific sub-patterns:

Event MessageMeaningNext Step
0/N nodes are available + minMemberGang constraint not satisfiedUse volcano-gang-scheduling
exceeded quota / queue resource exceededQueue deserved resources exhaustedUse volcano-queue-diagnose
Insufficient cpu/memory + Gang mentionResource shortage blocking GangUse volcano-resource-insufficient
pod group is not readyPodGroup not in Inqueue phaseCheck PodGroup status
task <name> is not readyTask dependencies not metCheck dependent tasks

Quick Reference vs Detailed Analysis: The table above provides a quick lookup for common patterns. The sections below provide detailed analysis, additional context, and more diagnostic commands for each pattern.

Insufficient cpu / Insufficient memory - Resource shortage

No node has enough allocatable resources. Check:

  • Node resources: kubectl top nodes
  • Pod resource requests: kubectl get pod <pod> -n <ns> -o jsonpath='{.spec.containers[*].resources.requests}'

Volcano context: If this is a Gang-scheduled pod, even if total cluster resources are sufficient, you need enough resources simultaneously on enough nodes. Use volcano-resource-insufficient to check fragmentation.

minMember not satisfied - Gang constraint

The PodGroup requires minMember pods to be scheduled simultaneously, but the cluster cannot satisfy this. Use volcano-gang-scheduling skill for detailed diagnosis.

Key insight: Even if kubectl top nodes shows enough total resources, Gang requires simultaneous availability on different nodes.

queue resource exceeded - Queue quota limit

The Queue associated with this Pod has exceeded its deserved resources. Check Queue status with volcano-queue-diagnose skill.

Volcano-specific terms you might see:

  • overused - Queue has exceeded its fair share
  • deserved resources - Calculated from queue weight proportion
  • allocated resources - Currently used by jobs in this queue

reclaim events - Resource reclamation triggered

If you see events mentioning reclaim:

  • Another queue is trying to reclaim resources from your pod's queue
  • Your queue may be over-allocated (allocated > deserved)
  • Check queue status: volcano-queue-diagnose --queue <queue>

preempt events - Priority preemption

Higher priority workload is evicting this pod. Check:

  • Pod priority class: kubectl get pod <pod> -o jsonpath='{.spec.priorityClassName}'
  • Preemptor details in scheduler logs: volcano-scheduler-logs --keyword preempt

enqueue related events

  • PodGroup is enqueued - PodGroup admitted to queue, ready for scheduling
  • PodGroup is pending - Waiting for queue admission (capacity or resource check)
  • enqueue failed - Failed admission check (overcommit, queue closed, etc.)

4. Queue Status

Check the Queue configuration and resource allocation.

kubectl get podgroup <podgroup> -n <ns> -o jsonpath='{.spec.queue}'
kubectl get queue <queue>
kubectl describe queue <queue>

Key fields:

  • spec.weight: Queue weight for resource sharing
  • spec.capability: Maximum resources the queue can use
  • status.state: Open, Closed, or Closing
  • status.deserved: Resources deserved by this queue
  • status.allocated: Resources currently allocated

5. Node Resources (verbose mode)

When --verbose is specified, also check node allocatable resources.

kubectl get nodes -o custom-columns='NAME:.metadata.name,CPU:.status.allocatable.cpu,MEM:.status.allocatable.memory'

Common Issues and Solutions

Pod stuck in Pending, no events

  • Check if Volcano scheduler is running: kubectl get pods -n volcano-system -l app=volcano-scheduler
  • Check if Volcano controller-manager is running: kubectl get pods -n volcano-system -l app=volcano-controller-manager
    • The controller-manager is responsible for Job lifecycle, PodGroup creation, and queue management — if it's down, jobs won't transition states even if the scheduler is healthy
  • Check scheduler logs: volcano-scheduler-logs skill

PodGroup phase is Pending

  • The PodGroup is waiting for enqueue action to admit it
  • Verify the queue actually exists — a typo in queue name causes the PodGroup to stay Pending silently:
    kubectl get podgroup <pg> -n <ns> -o jsonpath='{.spec.queue}'
    kubectl get queue <queue-name>
    If the queue name is empty, the job uses the default queue — verify it exists and is Open
  • Check Queue capacity and deserved resources
  • Check if cluster has sufficient resources

PodGroup phase is Inqueue but Pod is Pending

  • Check if minMember constraint is not satisfied
  • Check if there are affinity/anti-affinity conflicts
  • Check if taints prevent scheduling

Queue status shows insufficient deserved resources

  • The queue may have insufficient weight or capability configured
  • Other queues may be reclaiming resources
  • Use volcano-queue-diagnose for detailed analysis

Environment Variables

VariableDefaultDescription
VOLCANO_NAMESPACEdefaultDefault namespace for Pod lookup
VOLCANO_SCHEDULER_NSvolcano-systemNamespace where volcano scheduler runs

See Also

  • volcano-gang-scheduling - Detailed Gang scheduling diagnosis
  • volcano-queue-diagnose - Queue status and quota analysis
  • volcano-scheduler-logs - Scheduler log analysis
  • volcano-resource-insufficient - Resource shortage diagnosis
  • quota-debug - Native Kubernetes ResourceQuota/LimitRange diagnosis (non-Volcano)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.