К основному содержанию
скилл Claude Code Gemini CLI CX Codex официальный · Google

gke-ai-troubleshooting-tpu-slice-mig-stuck-updating — скилл Codex

Диагностирует сбои создания TPU Dynamic Slice и зависшие JobSet, когда MIG находится в нестабильном состоянии. Подходит для разбора проблем GKE.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add google/skills --skill gke-ai-troubleshooting-tpu-slice-mig-stuck-updating -a claude-code
Открыть на GitHub

Что делает gke-ai-troubleshooting-tpu-slice-mig-stuck-updating

Скилл проверяет, почему создание TPU Dynamic Slice завершилось с причиной SliceCreationFailed, а JobSet остаётся в состоянии pending. Он связывает проблему с управляемой группой виртуальных машин Compute Engine, если у MIG значение isStable=False или versionTarget.isReached=False.

Работа строится вокруг проверки статуса Slice, состояния MIG и прогресса его экземпляров. Для диагностики нужны Google Cloud SDK, kubectl, включённые container.googleapis.com, compute.googleapis.com и logging.googleapis.com, а также роли Logs Viewer, Compute Viewer и Kubernetes Engine Viewer.

Скилл рассчитан на read-only диагностику: команды не должны удалять, пересоздавать или выводить из эксплуатации узлы. Ставьте его для проблем TPU Dynamic Slice, связанных со стабильностью MIG; для других причин SliceCreationFailed нужен другой сценарий диагностики.

Какие задачи решает

  • найти причину SliceCreationFailed при создании TPU Slice
  • разобраться, почему JobSet завис в pending
  • проверить стабильность MIG и прогресс его экземпляров
  • отделить сбой MIG от других причин проблем TPU Slice

Примеры запросов агенту

  • Проверь, почему TPU Dynamic Slice завершился с `SliceCreationFailed`, и посмотри состояние MIG.
  • Разбери зависший JobSet в GKE: проверь `isStable` и `versionTarget.isReached` у связанной MIG.
  • Проведи read-only диагностику проблемы TPU Slice и предложи исправление с опорой на документацию.

Как установить gke-ai-troubleshooting-tpu-slice-mig-stuck-updating

1Через Skills CLI (Vercel)

npx skills add google/skills --skill gke-ai-troubleshooting-tpu-slice-mig-stuck-updating -a claude-code

2Вручную: положить файлы

~/.claude/skills/gke-ai-troubleshooting-tpu-slice-mig-stuck-updating/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/gke-ai-troubleshooting-tpu-slice-mig-stuck-updating/

Из того же набора172

Весь набор →
bigquery-basics официальный google Управляет ресурсами BigQuery и запускает SQL-запросы. Подходит для создания датасетов, таблиц, представлений и базовой загрузки данных. Claude Code Gemini CLI CX Codex 17 678установок cloud-run-basics официальный google Скилл помогает управлять Cloud Run: разворачивать HTTP-сервисы, запускать задачи по событию или расписанию и вести фоновые worker pools. Claude Code Gemini CLI CX Codex 17 532установок gemini-api официальный google Подключает Gemini API из Agent Platform Google Cloud к агенту. Даёт доступ к моделям Gemini, мультимодальному вводу, вызову функций и кешированию контекста. Claude Code Gemini CLI CX Codex 17 116установок google-cloud-recipe-auth официальный Google LLC Скилл объясняет аутентификацию и права доступа в Google Cloud. Пригодится для настройки IAM, ADC и сервисных аккаунтов в разработке и продакшене. Claude Code Gemini CLI CX Codex 15 450установок google-cloud-recipe-onboarding официальный Google LLC Проводит разработчика через старт в Google Cloud: проверяет CLI, вход, проект и биллинг. Подходит для первого личного проекта. Claude Code Gemini CLI CX Codex 15 390установок cloud-sql-basics официальный google Скилл помогает создавать и объяснять Cloud SQL для MySQL, PostgreSQL и SQL Server. Пригодится при настройке базы в Google Cloud. Claude Code Gemini CLI CX Codex 14 679установок google-cloud-waf-security официальный google Скилл оценивает безопасность рабочих нагрузок в Google Cloud и предлагает меры для IAM, сетевой защиты, данных и операционной безопасности. Claude Code Gemini CLI CX Codex 14 620установок google-cloud-waf-cost-optimization официальный google Проверяет расходы Google Cloud по pillar Cost Optimization из Well-Architected Framework. Нужен для поиска простаивающих ресурсов, выбора скидок и правки размеров сервисов. Claude Code Gemini CLI CX Codex 14 266установок

Похожие

engineering-advanced-skills Alireza Rezvani Индекс из 37 инженерных скиллов для архитектуры, автоматизации, надёжности и платформенных задач. Пригодится, когда проекту нужны отдельные рабочие сценарии. Claude Code 2 019установок report Alireza Rezvani Запускает тесты Playwright, собирает статистику падений и отправляет сводку в Slack, TestRail или Markdown. Пригодится для быстрой проверки статуса прогона. Claude Code 1 639установок wizard Matt Pocock Скилл создаёт интерактивный bash-скрипт для ручных шагов: настройки сервисов, секретов CI и разовых миграций. Claude Code 553 369установок hyperframes-cli heygen-com Управляет проектами HyperFrames через терминал: собирает таймлайн, проверяет контраст кадров, запускает предпросмотр и рендерит видео локально или в облаке. Claude Code CX Codex Cursor +1 1 200 000установок setup-pre-commit Matt Pocock Скилл настраивает pre-commit для JavaScript-репозитория: Husky запускает форматирование, проверку типов и тесты перед коммитом. Claude Code 489 289установок using-git-worktrees Jesse Vincent Готовит изолированное рабочее дерево перед доработкой или выполнением плана. Проверяет текущий репозиторий, выбирает нативные средства платформы либо Git. Claude Code CX Codex 217 153установок finishing-a-development-branch Jesse Vincent Скилл проверяет тесты и помогает выбрать, как завершить работу в ветке: слить её, открыть Pull Request или оставить как есть. Claude Code CX Codex 214 439установок orca-cli stablyai Скилл даёт агенту доступ к worktree, терминалам, артефактам и встроенному браузеру Orca через CLI. Пригодится, когда работа идёт в окружении Orca. Claude Code CX Codex Cursor +1 353 000установок

Вопросы о gke-ai-troubleshooting-tpu-slice-mig-stuck-updating

Как установить gke-ai-troubleshooting-tpu-slice-mig-stuck-updating в Codex?

Выполните npx skills add google/skills --skill gke-ai-troubleshooting-tpu-slice-mig-stuck-updating -a codex. Файл скилла появится по пути .agents/skills/gke-ai-troubleshooting-tpu-slice-mig-stuck-updating/SKILL.md.

Что делает gke-ai-troubleshooting-tpu-slice-mig-stuck-updating?

Скилл диагностирует сбои создания GKE TPU Dynamic Slice и задержки JobSet, вызванные нестабильной или обновляемой MIG, которая обслуживает TPU node pool.

Что нужно для работы скилла?

Нужны Google Cloud SDK, kubectl, активный Cloud Billing и включённые API GKE, Compute Engine и Cloud Logging. Для проверок требуются роли Logs Viewer, Compute Viewer и Kubernetes Engine Viewer.

Исходный текст

SKILL.md · Apache-2.0
---
name: gke-ai-troubleshooting-tpu-slice-mig-stuck-updating
description: >-
  Diagnose and resolve GKE TPU Dynamic Slice creation and JobSet scheduling
  failures blocked by underlying Compute Engine managed instance groups (MIGs)
  stuck in an updating or unstable state (isStable=False). Use when TPU slice
  creation fails with a SliceCreationFailed status reason, when JobSets remain
  stuck in pending, or when MIG status reflects isStable=False or
  versionTarget.isReached=False during TPU slice formation. Don't use for
  SliceCreationFailed causes unrelated to MIG stability (use
  gke-ai-troubleshooting-tpu-dynamic-slices-monitoring) or general pod
  scheduling failures unrelated to TPU slices.
metadata:
  version: "1.0.1"
  category: Containers
---

# Troubleshoot GKE TPU slice creation blocked by an unstable MIG

This skill helps diagnose GKE TPU Dynamic Slice creation failures and JobSet
scheduling delays when the Compute Engine managed instance groups (MIGs) that
back the TPU node pool aren't stable (`status.isStable: false`).

A `SliceCreationFailed` status reason means that slice creation failed because
prerequisites weren't met (for example, required Compute Engine resources are
missing) or preflight checks failed (see
[Use dynamic slicing with a custom scheduler](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/create-dynamic-slices.md.txt)).
A MIG that is still creating, updating, or repairing instances is one cause to
check. This skill checks the slice status first, then the stability of the
backing MIGs.

## Attribution

**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you
MUST read [Usage Attribution](references/attribution.md). For commands executed
directly in the terminal (never in generated scripts, Terraform, or user code),
prefix `gcloud` with
`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:gke-ai-troubleshooting-tpu-slice-mig-stuck-updating)"`
and append `agent-skills/1.0 (skill:gke-ai-troubleshooting-tpu-slice-mig-stuck-updating)` to `User-Agent` headers.

## Prerequisites

- **Google Cloud SDK & Tools**:
  - For installing and initializing `gcloud` (project selection and
    authentication) and enabling the GKE API, follow
    [Before you begin](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/create-dynamic-slices.md.txt).
  - For installing `kubectl` and configuring cluster credentials, follow the
    "Install kubectl", "Install required plugins", and "Store cluster
    information for kubectl" sections of
    [Install kubectl and configure cluster access](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/cluster-access-for-kubectl.md.txt).
- **API Enablement & Billing**:
  - Verify that the project has an active Cloud Billing account.
  - Enable APIs: `container.googleapis.com`, `compute.googleapis.com`, and
    `logging.googleapis.com`.
- **Required IAM Roles**:
  - Logs Viewer (`roles/logging.viewer`): Inspect Cloud Audit Logs for MIG
    errors.
  - Compute Viewer (`roles/compute.viewer`): Check MIG stability (`isStable`)
    and instance progress.
  - Kubernetes Engine Viewer (`roles/container.viewer`): Inspect Slice custom
    resources (`slices.accelerator.gke.io`), nodes, and cluster operations.
- **Documentation**:
  - [Use dynamic slicing with a custom scheduler](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/create-dynamic-slices.md.txt)
    (Sections: "Before you begin", "Create a Slice custom resource", "Monitor
    the status of the Slice custom resource", "Verify the status of the nodes
    and the partitions", "Upgrade your node pools")
  - [Install kubectl and configure cluster access](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/cluster-access-for-kubectl.md.txt)
    (Sections: "Install kubectl", "Install required plugins", "Store cluster
    information for kubectl")
  - [Add and manage node pools](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/node-pools.md.txt)
    (Sections: "View node pools in a Standard cluster")
  - [View information about MIGs and managed instances](https://docs.cloud.google.com/compute/docs/instance-groups/getting-info-about-migs.md.txt)
    (Sections: "Check whether a MIG is stable", "Check the status of managed
    instances", "List instance errors")
  - [Automatically apply VM configuration updates in a MIG](https://docs.cloud.google.com/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups.md.txt)
    (Sections: "Verify whether an update rollout is complete")
  - [Manually upgrade a cluster's control plane or node pools](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/upgrading-a-cluster.md.txt)
    (Sections: "Check node pool upgrade status", "Cancel a node pool upgrade",
    "Resume a node pool upgrade", "Roll back a node pool upgrade")
  - [Auto-repair nodes](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair.md.txt)
    (Sections: "Get information about recent automated repair events")
  - [Troubleshoot GKE Standard node pools](https://docs.cloud.google.com/kubernetes-engine/docs/troubleshooting/node-pools.md.txt)
    (Sections: "Issue: Node pool creation fails due to insufficient resources")
  - [Troubleshoot TPUs in GKE](https://docs.cloud.google.com/kubernetes-engine/docs/troubleshooting/tpus.md.txt)
    (Sections: "Insufficient quota to satisfy the TPU request", "Insufficient
    TPU resources to satisfy the TPU request")
  - [REST Resource: projects.locations.clusters.nodePools](https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools.md.txt)
    (Sections: "Resource: NodePool")
  - [Schedule dynamic slices with Kueue and TAS](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/use-gke-dynamic-slicing.md.txt)
    (Sections: "Monitor the status of the slice")
  - [About TPUs in GKE](https://docs.cloud.google.com/kubernetes-engine/docs/concepts/tpus.md.txt)
  - [Get support](https://docs.cloud.google.com/kubernetes-engine/docs/getting-support.md.txt)
    (Sections: "Before you contact support")

> **Read-only rule**: Run read-only diagnostic commands only. Never drain,
> delete, or re-create nodes, or run any other command that changes the cluster.
> Give the user any fix to apply themselves.

When you recommend a fix, link the doc section that describes it.

---

## Diagnostic workflow

### Step 0: Collect context and set the investigation window `[Low Risk]`

Collect the necessary contextual parameters from the user prompt or environment:
- `{project_id}`, `{cluster_name}`, `{location}`, `{nodepool_name}`, and
  `{issue_time}`.
- `{mig_name}` and `{zone}`: Name and zone of the managed instance group that
  backs `{nodepool_name}`, from the node pool's `instanceGroupUrls` field (see
  [View node pools in a Standard cluster](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/node-pools.md.txt)
  and
  [Resource: NodePool](https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools.md.txt)).
  If `{nodepool_name}` or `{mig_name}` isn't already known from a failing
  `Slice`, find the affected partition, nodes, and backing MIG by following
  [Verify the status of the nodes and the partitions](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/create-dynamic-slices.md.txt).
- **Time window**: By default, query a 60-minute window `[{issue_time} - 30m,
  {issue_time} + 30m]` (`{start_time}` to `{end_time}`).

---

### Step 1: Detect slice creation failures and MIG errors `[Low Risk]`

1. **Inspect Slice status and partition nodes**: Check the `Slice` custom
   resource `Status.Conditions` for a `SliceCreationFailed` status reason and
   identify the affected partitions, nodes, and `{mig_name}` by following the
   "Monitor the status of the Slice custom resource" and "Verify the status of
   the nodes and the partitions" sections of
   [Use dynamic slicing with a custom scheduler](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/create-dynamic-slices.md.txt),
   and
   [Monitor the status of the slice](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/use-gke-dynamic-slicing.md.txt).
2. **Query Cloud Logging for MIG errors**: Once `{mig_name}` is identified (or
   by narrowing the results to `{mig_name}` once known), run this Cloud Logging
   query to detect errors on the backing instance group manager across
   `[{start_time}, {end_time}]`:
   ```
   resource.type="gce_instance_group_manager"
   resource.labels.instance_group_manager_name="{mig_name}"
   severity>=ERROR
   timestamp >= "{start_time}" AND timestamp <= "{end_time}"
   ```
- **Findings**:
  - If the `Slice` status reports `SliceCreationFailed` or the logs show
    instance group errors, proceed to Step 2.
  - If no error logs match and the TPU `Slice` status is `ACTIVE`, rule out MIG
    instability and check workload configuration.

---

### Step 2: Check MIG stability (`status.isStable`) `[Low Risk]`

Follow
[Check whether a MIG is stable](https://docs.cloud.google.com/compute/docs/instance-groups/getting-info-about-migs.md.txt)
to inspect the stability (`status.isStable`) and version target status
(`status.versionTarget.isReached`) of `{mig_name}`:

- **What the fields mean**:
  - `status.isStable: false`: Changes are active or pending, or the MIG itself
    is being modified. Proceed to Step 3.
  - `status.versionTarget.isReached: false`: At least one instance isn't running
    the target version yet (see
    [Automatically apply VM configuration updates in a MIG](https://docs.cloud.google.com/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups.md.txt)).
    Proceed to Step 3.
  - `status.isStable: true` and `status.versionTarget.isReached: true`: No
    instances are undergoing or scheduled for changes (`currentAction` is `NONE`
    for all instances), and the MIG itself isn't being modified. This rules out
    MIG instability. If the `Slice` is still in `SliceCreationFailed`, hand off
    to `gke-ai-troubleshooting-tpu-dynamic-slices-monitoring`, or follow the
    "Create a Slice custom resource" and "Verify the status of the nodes and the
    partitions" sections of
    [Use dynamic slicing with a custom scheduler](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/create-dynamic-slices.md.txt).

---

### Step 3: Find failed or stalled instance operations `[Low Risk]`

Direct the user to the "Check the status of managed instances" and "List
instance errors" sections of
[View information about MIGs and managed instances](https://docs.cloud.google.com/compute/docs/instance-groups/getting-info-about-migs.md.txt)
(include both section names and the document title) to inspect individual
instance states (`currentAction` and `instanceStatus`) and list the most recent
errors in `{mig_name}`:

- If the errors show capacity or quota failures such as
  `ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS` or `QUOTA_EXCEEDED`, go to Step 5,
  item 2.
- Otherwise, proceed to Step 4 to check for node pool upgrade or auto-repair
  operations.

---

### Step 4: Check node pool operations `[Low Risk]`

A MIG that is still changing instances can be the result of a node pool upgrade
or repair:

1. **Check node pool upgrades**: Follow
   [Check node pool upgrade status](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/upgrading-a-cluster.md.txt)
   to list the cluster operations and find upgrade operations targeting
   `{nodepool_name}` in `[{start_time}, {end_time}]`. Also review
   [Upgrade your node pools](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/create-dynamic-slices.md.txt)
   for dynamic slicing upgrade requirements (required surge settings and
   deleting active super-slices before upgrading).
   - If an upgrade operation is still running, go to Step 5, item 1 or item 3.
   - If an upgrade operation was cancelled, failed, or is incomplete, go to Step
     5, item 4.
2. **Check automated node repairs**: Follow
   [Get information about recent automated repair events](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair.md.txt)
   to check for repair operations on `{nodepool_name}`.
   - If a node auto-repair operation is running, go to Step 5, item 1.
3. **If no operation or error explains the unstable MIG**: Go to Step 5, item 5
   to contact Cloud Customer Care.

---

### Step 5: Resolution `[High Risk]`

> **Guardrail**: Don't modify GKE-managed instance groups or VMs directly
> through Compute Engine. Manage node pools through GKE.

1. **Wait for an ongoing update or auto-repair to finish**: If a node pool
   upgrade or automated repair is still making progress, the user can wait until
   the MIG is stable (`status.isStable: true`) by following
   [Check whether a MIG is stable](https://docs.cloud.google.com/compute/docs/instance-groups/getting-info-about-migs.md.txt).
2. **Resolve capacity or quota errors**: When Step 3 shows
   `ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS` or `QUOTA_EXCEEDED`, rolling back
   an upgrade won't resolve the shortage. Follow
   [Issue: Node pool creation fails due to insufficient resources](https://docs.cloud.google.com/kubernetes-engine/docs/troubleshooting/node-pools.md.txt)
   and the "Insufficient quota to satisfy the TPU request" and "Insufficient TPU
   resources to satisfy the TPU request" sections of
   [Troubleshoot TPUs in GKE](https://docs.cloud.google.com/kubernetes-engine/docs/troubleshooting/tpus.md.txt).
3. **Cancel an in-progress node pool upgrade**: If the user wants to stop an
   upgrade that is still running, follow
   [Cancel a node pool upgrade](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/upgrading-a-cluster.md.txt).
   For dynamic slicing node pools, also check
   [Upgrade your node pools](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/create-dynamic-slices.md.txt)
   for the required surge settings and deleting active super-slices before
   upgrading.
4. **Resume or roll back a cancelled, failed, or incomplete node pool upgrade**:
   - Follow the "Resume a node pool upgrade" or "Roll back a node pool upgrade"
     sections of
     [Manually upgrade a cluster's control plane or node pools](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/upgrading-a-cluster.md.txt).
     As documented there, rollback applies if an in-progress upgrade was
     cancelled, the upgrade failed, or the upgrade is incomplete due to a
     maintenance window timing out (you can't roll back node pools once they
     have been successfully upgraded); alternatively, a cancelled or failed,
     partially completed upgrade can be resumed.
   - Afterwards, verify that the MIG is stable by following
     [Check whether a MIG is stable](https://docs.cloud.google.com/compute/docs/instance-groups/getting-info-about-migs.md.txt).
5. **Escalate unexplained MIG instability**: If no node pool upgrade, repair
   operation, or capacity/quota error explains why `{mig_name}` remains
   unstable, direct the user to Cloud Customer Care by following
   [Get support](https://docs.cloud.google.com/kubernetes-engine/docs/getting-support.md.txt).
6. **Verify node pool and slice recovery**: After the instance group is stable
   (`status.isStable: true`), follow the "Monitor the status of the Slice custom
   resource" and "Create a Slice custom resource" sections of
   [Use dynamic slicing with a custom scheduler](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/create-dynamic-slices.md.txt)
   to verify that the `Slice` reaches the `ACTIVE` state. If the `Slice` stays
   in `SliceCreationFailed` after the MIG stabilizes, check whether the retry
   annotation documented in "Create a Slice custom resource" is set on the
   `Slice`.

© google · Apache-2.0 · google/skills

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой