terway-troubleshooting
БесплатноЗапускает вложенные скриптыНе проверенTroubleshoot Terway CNI issues in Kubernetes using Kubernetes events and Terway logs. Use when diagnosing "cni plugin not initialized", Pod create/delete…
Об этом скилле
Terway Troubleshooting SOP
When to use this Skill
Use this Skill whenever the user:
- Reports "cni plugin not initialized" or similar CNI errors on nodes
- Reports Pod creation or deletion failures in a cluster using Terway as the CNI
- Suspects ENI/IPAM/resource issues related to Terway (centralized or non-centralized)
- Needs to interpret specific Kubernetes events or critical log messages from Terway components.
Always assume the cluster is running Kubernetes and Terway is the CNI plugin.
High-level troubleshooting flow
Follow this order to diagnose Terway issues efficiently:
Verify Terway Component Health
- When CNI errors like "plugin not initialized" or "socket not found" occur, first check if Terway Pods are
Running. kubectl get pods -n kube-system -l app=terway-eniip -o wide- If a Pod is not
Running, check its events and logs (terway-initandterwaycontainers) using the patterns in Step 1.
- When CNI errors like "plugin not initialized" or "socket not found" occur, first check if Terway Pods are
Gather Necessary Context (As needed)
- If the cause isn't obvious from Pod status, gather cluster and node configuration.
- You can use the following scripts or run
kubectlcommands directly:- Cluster config:
./scripts/inspect-terway-cluster.sh - Node config:
./scripts/inspect-terway-node.sh <node-name> - Pod config:
./scripts/inspect-terway-pod.sh <namespace> <pod-name>
- Cluster config:
Use Kubernetes Events as the primary signal
- For any problematic Pod, inspect its Events first:
kubectl describe pod <pod> -n <ns>. - Map Terway-specific event reasons (e.g.,
AllocIPFailed,CniPodCreateError) to likely causes.
- For any problematic Pod, inspect its Events first:
Inspect Terway IPAM / ENI controllers
- Depending on IPAM type (
crdvsdefault), check relevant CRDs (PodENI,Node) and their Events.
- Depending on IPAM type (
Deep Dive into Logs
- Use logs only when Events are missing or point to an ambiguous failure.
Keep answers structured: first restate what has been checked, then propose next verification steps.
Step 1 – Terway and CNI initialization
If the user reports "cni plugin not initialized" or "dial unix ... eni.socket: no such file or directory":
- Phenomenon: The CNI plugin cannot communicate with the Terway Daemon.
- Immediate Action: Check the Terway Pod status:
kubectl get pods -n kube-system -l app=terway-eniip -o wide.
Diagnose by Pod Status and Log Patterns:
If the Pod is in
Init:Error: Inspectterway-initlogs (kubectl logs <pod> -n kube-system -c terway-init).exclusive eni mode changed:- Explanation: The label
k8s.aliyun.com/exclusive-mode-eni-typewas modified on an existing node. Exclusive mode only works for newly created nodes. - Fix: Revert the label or recreate the node.
- Explanation: The label
get node ... error:- Explanation: Terway cannot reach the Kubernetes API to fetch node labels (network or RBAC issue).
unsupport kernel version, require >=5.10:- Explanation: The node's kernel is too old for the configured features.
failed process input:- Explanation:
/etc/eni/eni_conf(fromeni-configCM) is missing or invalid JSON.
- Explanation:
mount failed:- Explanation: Failed to mount
bpffson/sys/fs/bpf(privilege or kernel support issue).
- Explanation: Failed to mount
Init erdma driverfailure:- Explanation:
modprobe erdmafailed on an ERDMA-enabled node.
- Explanation:
If the Pod is in
CrashLoopBackOfforError: Inspect main container logs.- Daemon (
terway) Patterns:error restart device plugin after kubelet restart: Check permissions/mounts for/var/lib/kubelet/device-plugins.unable to set feature gates: Invalid flag in--feature-gates.error create trunk eni: OpenAPI failure during trunk ENI initialization (check Aliyun credentials/quota).
- Controlplane (
terway-controlplane) Patterns:failed to create controller: Check RBAC permissions or CRD availability.failed to setup webhooks: TLS certificate or WebhookConfiguration issues.
- Daemon (
If the Pod is
Runningbut the socket error persists:- Verify that the
var/run/eni/directory is correctly shared between the host and the container via hostPath volume.
- Verify that the
Only after Terway is confirmed running on the node, proceed to Pod create/delete failures and Events.
Step 2 – Always start from Kubernetes Events
For any Pod with network-related failures:
Inspect Pod Events
- Instruct the user to run
kubectl describe pod <pod> -n <ns>and paste relevant Events. - Focus on Terway-related reasons (case-sensitive):
AllocIPFailed(Warning, Pod)AllocIPSucceed(Normal, Pod)VirtualModeChanged(Warning, Pod)CniPodCreateError(Warning, Pod)CniPodDeleteError(Warning, Pod)CniCreateENIError(Warning, Pod)CniPodENIDeleteErr(Warning, Pod)
- Instruct the user to run
**Interpret common Pod event re
Установить terway-troubleshooting в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл terway-troubleshooting?
Troubleshoot Terway CNI issues in Kubernetes using Kubernetes events and Terway logs. Use when diagnosing "cni plugin not initialized", Pod create/delete failures, or ENI/IPAM problems in Terway (centralized or non-centralized IPAM).
Как установить скилл terway-troubleshooting?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл terway-troubleshooting запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub