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.
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- kbc/CLAUDE.mdCLAUDE.md
- cluster-eventsSkill
- deployment-rollout-debugSkill
- dns-debugSkill
- gateway-diagnosticsSkill
- hpa-debugSkill
- http-log-statsSkill
- image-pull-debugSkill
- ingress-debugSkill
- job-debugSkill
- networkpolicy-debugSkill
- node-health-checkSkill
- node-logsSkill
- pod-crash-debugSkill
- pod-pending-debugSkill
- pvc-debugSkill
- quota-debugSkill
- service-debugSkill
- statefulset-debugSkill
- volcano-gang-schedulingSkill
- volcano-job-diagnoseSkill
- volcano-node-resourcesSkill
- volcano-queue-diagnoseSkill
- volcano-resource-insufficientSkill
- volcano-scheduler-configSkill
- volcano-scheduler-logsSkill
- manage-skillSkill
- skill-authoringSkill
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
- Distinctive: line 50
Check the Pod's current phase and conditions.
- Distinctive: line 58
Check if the Pod is associated with a PodGroup and its scheduling status.
- Distinctive: line 72
Check scheduling events for failure reasons.
- Distinctive: line 78
Look for these event patterns:
- Distinctive: line 96
No node has enough allocatable resources.
- Very specific: line 100
Volcano context: If this is a Gang-scheduled pod, even if total cluster resources are sufficient, you need enough resources simultaneously …
- Very specific: line 116
If you see events mentioning reclaim:
- Very specific: line 119
Check queue status: volcano-queue-diagnose --queue <queue>
- Distinctive: line 132
Check the Queue configuration and resource allocation.
- Very specific: line 148
When --verbose is specified, also check node allocatable resources.
- Very specific: line 157
Check if Volcano scheduler is running: kubectl get pods -n volcano-system -l app=volcano-scheduler
- Very specific: line 158
Check if Volcano controller-manager is running: kubectl get pods -n volcano-system -l app=volcano-controller-manager
- Very specific: line 160
Check scheduler logs: volcano-scheduler-logs skill
- Very specific: line 169
If the queue name is empty, the job uses the default queue — verify it exists and is Open
- Distinctive: line 170
Check Queue capacity and deserved resources
- Distinctive: line 171
Check if cluster has sufficient resources
- Very specific: line 174
Check if minMember constraint is not satisfied
- Distinctive: line 175
Check if there are affinity/anti-affinity conflicts
- Distinctive: line 176
Check if taints prevent scheduling
- Very specific: line 181
Use volcano-queue-diagnose for detailed analysis
≈ “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.
Files
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
| Parameter | Required | Description |
--pod POD | yes | Pod name to diagnose |
--namespace NS | no | Namespace (default: default) |
--verbose | no | Show 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-0Diagnose a pod in specific namespace:
bash skills/core/volcano-diagnose-pod/scripts/diagnose-pod.sh --pod my-job-0 --namespace trainingVerbose mode with node resource information:
bash skills/core/volcano-diagnose-pod/scripts/diagnose-pod.sh --pod my-job-0 --namespace training --verboseDiagnostic 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 schedulingstatus.phase: Pending, Inqueue, Running, Unknownstatus.running: Number of running podsstatus.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 Message | Meaning | Next Step |
0/N nodes are available + minMember | Gang constraint not satisfied | Use volcano-gang-scheduling |
exceeded quota / queue resource exceeded | Queue deserved resources exhausted | Use volcano-queue-diagnose |
Insufficient cpu/memory + Gang mention | Resource shortage blocking Gang | Use volcano-resource-insufficient |
pod group is not ready | PodGroup not in Inqueue phase | Check PodGroup status |
task <name> is not ready | Task dependencies not met | Check 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 sharedeserved resources- Calculated from queue weight proportionallocated 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 schedulingPodGroup 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 sharingspec.capability: Maximum resources the queue can usestatus.state: Open, Closed, or Closingstatus.deserved: Resources deserved by this queuestatus.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-logsskill
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:
If the queue name is empty, the job uses thekubectl get podgroup <pg> -n <ns> -o jsonpath='{.spec.queue}' kubectl get queue <queue-name>defaultqueue — 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
minMemberconstraint 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-diagnosefor detailed analysis
Environment Variables
| Variable | Default | Description |
VOLCANO_NAMESPACE | default | Default namespace for Pod lookup |
VOLCANO_SCHEDULER_NS | volcano-system | Namespace where volcano scheduler runs |
See Also
volcano-gang-scheduling- Detailed Gang scheduling diagnosisvolcano-queue-diagnose- Queue status and quota analysisvolcano-scheduler-logs- Scheduler log analysisvolcano-resource-insufficient- Resource shortage diagnosisquota-debug- Native Kubernetes ResourceQuota/LimitRange diagnosis (non-Volcano)
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
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.

