Skip to main content
skill Claude Code Gemini CLI CX Codex official · Google

gke-ai-troubleshooting-tpu-vm-repair-stuck — Claude Code skill

Diagnoses GKE TPU VMs stuck in REPAIRING after host errors or maintenance. Use it when a TPU slice cannot be scheduled because a VM remains in repair.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add google/skills --skill gke-ai-troubleshooting-tpu-vm-repair-stuck -a claude-code
Open on GitHub

What gke-ai-troubleshooting-tpu-vm-repair-stuck does

This skill checks the TPU VM state, host events, and GKE repair status. It covers single-host and multi-host TPU node pools, dynamic slicing, and TPU All Capacity mode. The checks help connect a stuck REPAIRING instance with host errors, maintenance events, or faulty-host reports.

The workflow uses GKE for recovery guidance and runs read-only diagnostics. It must not drain, delete, or recreate nodes; the user applies any recommended fix. You need gcloud, kubectl with the required plugins, cluster credentials, an active Cloud Billing account, and enabled GKE, Compute Engine, and Cloud Logging APIs. Read access requires Kubernetes Engine Viewer, Compute Viewer, and Logs Viewer. Enabling auto-repair requires Kubernetes Engine Cluster Admin.

Install it when a VM is actually in REPAIRING. Ready: Unknown without a repairing VM, other NotReady nodes, Pending Pods, and Slice lifecycle failures belong to different troubleshooting skills.

What it helps with

  • locate a TPU VM stuck in REPAIRING
  • match host failures with Cloud Audit Logs events
  • explain why a TPU slice is unschedulable
  • check GKE repair status for a TPU node
  • separate VM repair from other GKE failures

Example prompts for the agent

  • Check the GKE TPU VM that has remained in `REPAIRING` and identify the host event behind it.
  • Run a read-only diagnosis of the TPU slice: inspect the VM, audit events, and GKE repair status.
  • Tell me whether this is a `gke-ai-troubleshooting-tpu-vm-repair-stuck` case or a different NotReady issue.

How to install gke-ai-troubleshooting-tpu-vm-repair-stuck

1Skills CLI (Vercel)

npx skills add google/skills --skill gke-ai-troubleshooting-tpu-vm-repair-stuck -a claude-code

2Manually: put the files in place

~/.claude/skills/gke-ai-troubleshooting-tpu-vm-repair-stuck/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/gke-ai-troubleshooting-tpu-vm-repair-stuck/

From the same set172

The whole set →
bigquery-basics official google Manages BigQuery resources and runs SQL queries. Use it to create datasets, tables and views, or handle basic data ingestion and analysis. Claude Code Gemini CLI CX Codex 17,678installs cloud-run-basics official google This skill helps an agent manage Cloud Run services, jobs, and worker pools when a project needs HTTP deployment, scheduled work, or pull-based background processing. Claude Code Gemini CLI CX Codex 17,532installs gemini-api official google Connects Gemini API from Google Cloud Agent Platform to the agent. Gives access to Gemini models, multimodal input, function calling, and context caching. Claude Code Gemini CLI CX Codex 17,116installs google-cloud-recipe-auth official Google LLC This skill explains Google Cloud authentication and permissions. Use it when setting up IAM, ADC, or service accounts for local code and production workloads. Claude Code Gemini CLI CX Codex 15,450installs google-cloud-recipe-onboarding official Google LLC Guides a developer through a first Google Cloud project: CLI checks, sign-in, project setup and billing. It fits a personal first project. Claude Code Gemini CLI CX Codex 15,390installs cloud-sql-basics official google This skill helps create and explain Cloud SQL resources for MySQL, PostgreSQL, and SQL Server. Use it when setting up a database in Google Cloud. Claude Code Gemini CLI CX Codex 14,679installs google-cloud-waf-security official google This skill reviews Google Cloud workloads against the security pillar of the Well-Architected Framework and suggests actions for IAM, networks, data, and operations. Claude Code Gemini CLI CX Codex 14,620installs google-cloud-waf-cost-optimization official google Reviews Google Cloud workloads through the Well-Architected Cost Optimization pillar. Use it to inspect spending, resize resources, assess discounts, or find idle capacity. Claude Code Gemini CLI CX Codex 14,266installs

Similar

engineering-advanced-skills Alireza Rezvani An index of 37 engineering skills for architecture, automation, reliability, and platform work. Use it when a project needs task-specific engineering workflows. Claude Code 2,019installs report Alireza Rezvani Runs Playwright tests, parses JSON outputs, and sends test summaries to Slack, TestRail, or Markdown. Helpful when you need quick test feedback. Claude Code 1,639installs wizard Matt Pocock This skill creates an interactive bash wizard for manual setup steps, CI secrets, third-party dashboards, and one-off migrations. Claude Code 553,369installs hyperframes-cli heygen-com Controls HyperFrames video workflows from the CLI: audits layouts and contrast, edits timeline clips, captures snapshots, and renders locally or in cloud runtimes. Claude Code CX Codex Cursor +1 1,200,000installs setup-pre-commit Matt Pocock This skill configures pre-commit checks for a JavaScript repository, running Prettier, type checking, and tests before each commit. Claude Code 489,289installs using-git-worktrees Jesse Vincent Prepares an isolated workspace before feature work or plan execution. It checks the repository first, then uses native worktree support or Git. Claude Code CX Codex 217,153installs finishing-a-development-branch Jesse Vincent This skill checks the test suite and guides branch completion: merge locally, open a Pull Request, or leave the work in place. Claude Code CX Codex 214,439installs orca-cli stablyai The skill lets an agent manage Orca worktrees, terminals, artifacts and the built-in browser through the orca CLI. Useful when your work already runs inside Orca. Claude Code CX Codex Cursor +1 353,000installs

Questions about gke-ai-troubleshooting-tpu-vm-repair-stuck

How do I install gke-ai-troubleshooting-tpu-vm-repair-stuck in Claude Code?

Run npx skills add google/skills --skill gke-ai-troubleshooting-tpu-vm-repair-stuck -a claude-code. The skill file is placed at ~/.claude/skills/gke-ai-troubleshooting-tpu-vm-repair-stuck/SKILL.md.

What does gke-ai-troubleshooting-tpu-vm-repair-stuck do?

It checks the TPU VM state, host events, and GKE repair status when an instance is stuck in REPAIRING. The diagnostic workflow is read-only and does not modify the cluster.

What does this skill require?

You need gcloud, kubectl and its required plugins, configured cluster credentials, active Cloud Billing, and enabled GKE, Compute Engine, and Cloud Logging APIs. Reading the relevant resources requires Kubernetes Engine Viewer, Compute Viewer, and Logs Viewer.

Source text

SKILL.md · Apache-2.0
---
name: gke-ai-troubleshooting-tpu-vm-repair-stuck
description: >-
  Diagnose GKE TPU VM instances stuck in Compute Engine repair (REPAIRING state)
  after host errors, maintenance events, or faulty host reports in single-host,
  multi-host, dynamic slicing, and TPU All Capacity mode node pools. Use when
  TPU instances in a slice node pool remain in REPAIRING, host error events
  appear in audit logs, or TPU slices are unschedulable due to a VM in repair.
  Don't use for nodes reporting Ready: Unknown when no VM is in REPAIRING (use
  gke-ai-troubleshooting-node-unresponsive-timeout), other NotReady nodes when
  no VM is in REPAIRING (use gke-node-notready), Pending Pods when all nodes are
  Ready (use gke-workload-troubleshooting), JobSet preemption events (use
  gke-ai-troubleshooting-jobset-interruption), or Slice custom resource
  lifecycle failures (use gke-ai-troubleshooting-tpu-dynamic-slices-monitoring).
metadata:
  version: "1.0.1"
  category: Containers
---

# Troubleshoot GKE TPU VMs stuck in Compute Engine repair (`REPAIRING`)

This skill checks the VM status, the host events, and the GKE repair status, and
routes recovery through GKE instead of direct Compute Engine changes.

## 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-vm-repair-stuck)"`
and append `agent-skills/1.0 (skill:gke-ai-troubleshooting-tpu-vm-repair-stuck)` to `User-Agent` headers.

## Prerequisites

- **Tools**:
  - For installing and initializing `gcloud` (which covers authentication and
    project selection), follow
    [Before you begin](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/tpus.md.txt).
  - For installing `kubectl` and required plugins, follow
    [Install kubectl](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/cluster-access-for-kubectl.md.txt)
    and
    [Install required plugins](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/cluster-access-for-kubectl.md.txt).
- **Cloud Billing & Project Configuration**: Ensure the project has an active
  Cloud Billing account. Follow
  [Before you begin](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/tpus.md.txt)
  to initialize `gcloud` and enable the Google Kubernetes Engine API
  (`container.googleapis.com`), ensure the Compute Engine API
  (`compute.googleapis.com`) and Cloud Logging API (`logging.googleapis.com`)
  are enabled, and follow
  [Store cluster information for kubectl](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/cluster-access-for-kubectl.md.txt)
  to configure `kubectl` cluster credentials.
- **Required IAM Roles**:
  - Kubernetes Engine Viewer (`roles/container.viewer`)
  - Compute Viewer (`roles/compute.viewer`)
  - Logs Viewer (`roles/logging.viewer`)
  - For the user who enables node auto-repair in Step 5, item 1: Kubernetes
    Engine Cluster Admin (`roles/container.clusterAdmin`)
- **Documentation**:
  - [View information about MIGs and managed instances](https://docs.cloud.google.com/compute/docs/instance-groups/getting-info-about-migs.md.txt)
    (Sections: "List MIGs", "Check the status of managed instances")
  - [Compute Engine instance lifecycle](https://docs.cloud.google.com/compute/docs/instances/instance-lifecycle.md.txt)
    (Sections: "`REPAIRING` state")
  - [Troubleshooting VM shutdowns and reboots](https://docs.cloud.google.com/compute/docs/troubleshooting/troubleshooting-reboots.md.txt)
    (Sections: "Querying Cloud Audit Logs", "Reviewing Cloud Audit Logs")
  - [Configure cluster access for kubectl](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", "Deploy a Pod to a
    specific node pool")
  - [Troubleshoot NodeNotReady state](https://docs.cloud.google.com/kubernetes-engine/docs/troubleshooting/node-notready.md.txt)
    (Sections: "Check the node's status and conditions", "Confirm node
    preemption")
  - [About TPUs in GKE](https://docs.cloud.google.com/kubernetes-engine/docs/concepts/tpus.md.txt)
    (Sections: "Multi-host TPU slice node pools")
  - [Use dynamic slicing with a custom scheduler](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/create-dynamic-slices.md.txt)
    (Sections: "Requirements", "Verify the status of the nodes and the
    partitions", "Monitor the status of the Slice custom resource", "Hardware
    maintenance and failures")
  - [About GKE dynamic slicing](https://docs.cloud.google.com/kubernetes-engine/docs/concepts/dynamic-slicing.md.txt)
    (Sections: "Key characteristics of dynamic slicing configurations")
  - [Deploy TPUs in All Capacity mode in GKE](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/tpu-all-capacity-mode.md.txt)
    (Sections: "Manage node failures", "Node failure and recovery")
  - [Report and repair faulty TPU hosts in All Capacity mode](https://docs.cloud.google.com/tpu/docs/all-capacity-report-faulty-hosts.md.txt)
    (Sections: "Understand the faulty host report process", "Review report
    faulty host operations")
  - [Auto-repair nodes](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair.md.txt)
    (Sections: "Settings for Autopilot and Standard", "Repair criteria",
    "Node repair process", "Verify node auto-repair is enabled for a Standard
    node pool", "Enable auto-repair for an existing Standard node pool", "Get
    information about recent automated repair events", "Node auto repair in TPU
    slice nodes")
  - [Deploy TPU workloads in GKE Standard](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/tpus.md.txt)
    (Sections: "Before you begin", "Configure auto repair for TPU slice nodes")
  - [Get support](https://docs.cloud.google.com/kubernetes-engine/docs/getting-support.md.txt)
    (Sections: "Before you contact support", "Recommendations for efficient
    support")
  - [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")

> **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 `[Low Risk]`

Collect the target parameters:

- `{project_id}`: Google Cloud project ID
- `{cluster_name}`: GKE cluster name
- `{location}`: Cluster region or zone
- `{cluster_mode}`: Cluster mode (`Autopilot` or `Standard`)
- `{tpu_version}`: TPU version (such as Ironwood `tpu7x`, TPU v6e, v5p, v5e, or
  v4) and whether the node pool is a single-host or multi-host TPU slice node
  pool
- `{nodepool_name}`: TPU node pool name
- `{group_name}` and `{zone}`: Name and zone of the managed instance group (MIG)
  that backs the node pool:
  - In a **Standard** cluster, follow
    [View node pools in a Standard cluster](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/node-pools.md.txt)
    to describe `{nodepool_name}` and read its `instanceGroupUrls` field (see
    [Resource: NodePool](https://docs.cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools.md.txt)).
  - In an **Autopilot** cluster (or if `{nodepool_name}` isn't known), follow
    [List MIGs](https://docs.cloud.google.com/compute/docs/instance-groups/getting-info-about-migs.md.txt)
    to list the managed instance groups in `{project_id}` and find
    `{group_name}` and `{zone}`.
- `{instance_name}`: Affected TPU VM name, if known. If the user doesn't know
  `{instance_name}`, Step 1 finds the instances in `REPAIRING`.
- `{issue_time}`: Incident timestamp in RFC3339 UTC, if known

---

### Step 1: Check the VM status in the managed instance group `[Low Risk]`

To list the instances in `{group_name}` with their status (`STATUS` /
`instanceStatus`) and current action (`ACTION` / `currentAction`), follow the
instructions in
[Check the status of managed instances](https://docs.cloud.google.com/compute/docs/instance-groups/getting-info-about-migs.md.txt).

- **Analysis**:
  - **`STATUS` (`instanceStatus`) is `REPAIRING`**: Compute Engine is repairing
    the VM because it encountered an internal error or its host server is
    unavailable due to maintenance. The VM can't be used during the repair. See
    [`REPAIRING` state](https://docs.cloud.google.com/compute/docs/instances/instance-lifecycle.md.txt).
    Record `{instance_name}` and proceed to Step 2.
  - **No instance is in `REPAIRING`** (every instance reports `RUNNING` with
    `ACTION` `NONE`, or an instance reports another status or action such as
    `ACTION` `RECREATING`, which means "The instance is being replaced" per
    [Check the status of managed instances](https://docs.cloud.google.com/compute/docs/instance-groups/getting-info-about-migs.md.txt)):
    Check each node's status and conditions following
    [Check the node's status and conditions](https://docs.cloud.google.com/kubernetes-engine/docs/troubleshooting/node-notready.md.txt)
    and hand off to the matching sibling skill:
    - If a node's `Ready` condition is `Unknown` (`NodeStatusUnknown`), hand off
      to `gke-ai-troubleshooting-node-unresponsive-timeout`.
    - If a node isn't `Ready` for another reason, hand off to
      `gke-node-notready`.
    - If every node is `Ready` (per
      [Repair criteria](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair.md.txt),
      "A node reporting a Ready status is considered healthy") but the
      workload's Pods are still `Pending`, hand off to
      `gke-workload-troubleshooting`.

---

### Step 2: Check Compute Engine system events `[Low Risk]`

To list the system events for `{instance_name}` around `{issue_time}`, follow
the instructions in the section
[Querying Cloud Audit Logs](https://docs.cloud.google.com/compute/docs/troubleshooting/troubleshooting-reboots.md.txt).
Compare the `method` field with the table in the
[Reviewing Cloud Audit Logs](https://docs.cloud.google.com/compute/docs/troubleshooting/troubleshooting-reboots.md.txt)
section of the same document:

- **`compute.instances.hostError`,
  `compute.instances.terminateOnHostMaintenance`, or
  `compute.instances.automaticRestart`**: Record the matching system event log
  entries and timestamps, and continue to Steps 3 and 4.
- **`compute.instances.preempted`**: Compute Engine preempted a Spot VM or
  preemptible VM. If the affected workload is a `JobSet`, hand off to
  `gke-ai-troubleshooting-jobset-interruption`. Otherwise, follow
  [Confirm node preemption](https://docs.cloud.google.com/kubernetes-engine/docs/troubleshooting/node-notready.md.txt).
- **No method from the table, or another method**: Per the note in
  [Reviewing Cloud Audit Logs](https://docs.cloud.google.com/compute/docs/troubleshooting/troubleshooting-reboots.md.txt),
  if a VM rebooted and none of the listed methods appears in the query results,
  the reboot likely happened because the VM's operating system initiated it. If
  the VM is still in `REPAIRING` in Step 1 (or a method such as
  `compute.instances.reportHostAsFaulty` appears), continue to Steps 3 and 4.

---

### Step 3: Check the node status and slice impact `[Low Risk]`

Follow
[Check the node's status and conditions](https://docs.cloud.google.com/kubernetes-engine/docs/troubleshooting/node-notready.md.txt)
to check the status and conditions of the nodes in the cluster and match
`{instance_name}` using the node's `ProviderID` field. To filter nodes to
`{nodepool_name}`, use the `cloud.google.com/gke-nodepool` node label documented
in
[Deploy a Pod to a specific node pool](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/node-pools.md.txt).

- If the node for `{instance_name}` reports `Ready` (per
  [Repair criteria](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair.md.txt),
  "A node reporting a Ready status is considered healthy") and the VM is no
  longer in `REPAIRING`, proceed to Step 5, item 4.
- Otherwise, determine how the unhealthy node affects the node pool based on
  the node pool configuration:
  - **Single-host TPU slice node pool**: Per
    [Configure auto repair for TPU slice nodes](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/tpus.md.txt),
    "In a single-host TPU slice node pool, only the unhealthy TPU node is
    auto-repaired."
  - **Dynamic slicing node pool**: To check whether `{nodepool_name}` uses
    dynamic slicing, see
    [Requirements](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/create-dynamic-slices.md.txt):
    dynamic slicing requires a Standard cluster, Ironwood (`tpu7x`), and All
    Capacity mode reservations. For a Standard cluster with Ironwood (`tpu7x`),
    check whether the node has `cloud.google.com/gke-accelerator-topology-mode:
    PROVISION_ONLY` as shown in step 2 of
    [Verify the status of the nodes and the partitions](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/create-dynamic-slices.md.txt)
    (per
    [Key characteristics of dynamic slicing configurations](https://docs.cloud.google.com/kubernetes-engine/docs/concepts/dynamic-slicing.md.txt),
    "dynamic slicing uses incremental provisioning"). Per
    [Hardware maintenance and failures](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/create-dynamic-slices.md.txt),
    "If you trigger customer-initiated maintenance or if a hardware failover
    occurs, only the targeted nodes are affected rather than the entire node
    pool." For an active dynamic sub-slice, the `Slice` custom resource
    transitions to `FAILED` and the scheduler attempts to re-create the slice on
    other available healthy nodes. Check the `Slice` status following
    [Monitor the status of the Slice custom resource](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/create-dynamic-slices.md.txt);
    if the `Slice` custom resource is in `FAILED` or another non-active state,
    hand off `Slice` troubleshooting to
    `gke-ai-troubleshooting-tpu-dynamic-slices-monitoring` alongside checking
    the VM repair in Step 4.
  - **TPU All Capacity mode node pool**: Per
    [Manage node failures](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/tpu-all-capacity-mode.md.txt)
    and
    [Node failure and recovery](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/tpu-all-capacity-mode.md.txt),
    in TPU All Capacity mode, if a VM fails due to issues like hardware
    failure, Google Cloud "attempts to recover the VM on the same host
    (in-place repair)", failed nodes have a status of `NotReady`, and the node
    pool's status doesn't change to `ERROR`.
  - **Multi-host TPU slice node pool (without dynamic slicing or All Capacity
    mode)**: Per the section
    [Multi-host TPU slice node pools](https://docs.cloud.google.com/kubernetes-engine/docs/concepts/tpus.md.txt),
    the VMs in a multi-host TPU slice node pool are treated as a single atomic
    unit. When a node in the slice requires repairing, GKE shuts down all VMs in
    the TPU slice, forcing eviction of all the Kubernetes Pods in the workload,
    and the Pods can be scheduled again only after all VMs in the slice are up
    and running.

---

### Step 4: Check node auto-repair status and faulty host reports `[Low Risk]`

Find out whether GKE or Compute Engine is repairing the node:

1. **Check whether node auto-repair is enabled**:
   - **Autopilot clusters**: Autopilot always repairs nodes, and you can't turn
     this off (see
     [Settings for Autopilot and Standard](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair.md.txt)).
   - **Standard clusters**: Follow
     [Verify node auto-repair is enabled for a Standard node pool](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair.md.txt)
     to check whether `autoRepair` is enabled on `{nodepool_name}`.
2. **Check the GKE repair operation history**: Per
   [Configure auto repair for TPU slice nodes](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/tpus.md.txt),
   check the repair status, including any failure reason, in the operation
   history described in
   [Get information about recent automated repair events](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair.md.txt):
   - If a repair operation failed because of insufficient quota, tell the user
     to contact their Google Cloud account representative to increase the quota.
   - If `autoRepair` is enabled and no repair operation has appeared yet, check
     how long the node has been unhealthy (from `{issue_time}` or the `Ready`
     condition's `LastTransitionTime` in Step 3). Per
     [Repair criteria](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair.md.txt),
     GKE initiates a repair when a node reports a `NotReady` status, or doesn't
     report any status at all, over a given time threshold of approximately 10
     minutes. If the node has reported `NotReady` (or no status) for less than
     approximately 10 minutes, check the operation history again after that
     threshold has passed. If it has been longer than approximately 10 minutes
     and there is still no repair operation (and no All Capacity mode faulty
     host report in item 3), escalate in Step 5, item 3.
3. **For TPU All Capacity mode node pools, check for a faulty host report**:
   Per
   [Understand the faulty host report process](https://docs.cloud.google.com/tpu/docs/all-capacity-report-faulty-hosts.md.txt),
   after a user reports a faulty host, the TPU VM is stopped, its state changes
   to `REPAIRING`, and "The host repair process can take between 3 and 14 days,
   or longer." Before escalating a VM in `REPAIRING` in an All Capacity mode
   reservation, follow
   [Review report faulty host operations](https://docs.cloud.google.com/tpu/docs/all-capacity-report-faulty-hosts.md.txt)
   to check for a `compute.instances.reportHostAsFaulty` operation on
   `{instance_name}`.

---

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

> **Guardrails**:
> - **Never** change GKE-managed instance groups or VMs directly through Compute
>   Engine, for example with `gcloud compute instances delete` or `gcloud
>   compute instance-groups managed` commands that change the group. Manage the
>   node pool through GKE.
> - **Never** run `kubectl delete node` on nodes in the node pool. Per
>   [Settings for Autopilot and Standard](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair.md.txt),
>   if you use `kubectl` to delete an unhealthy node when auto-repair is
>   disabled, the underlying VM might become orphaned from the cluster, and you
>   would continue to be billed for it.

1. **Enable node auto-repair (Standard clusters only)**:
   - Autopilot clusters always auto-repair nodes, so skip this step.
   - Before the user enables auto-repair on a multi-host TPU slice node pool
     that doesn't use dynamic slicing or All Capacity mode, tell them that GKE
     re-creates the entire node pool when a node in it needs repair (see item 2
     of this step).
   - If `autoRepair` is disabled on `{nodepool_name}`, link the user (who needs
     the `Kubernetes Engine Cluster Admin` role, `roles/container.clusterAdmin`)
     to
     [Enable auto-repair for an existing Standard node pool](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair.md.txt)
     and
     [Configure auto repair for TPU slice nodes](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/tpus.md.txt)
     so they can apply the change themselves.
2. **Let GKE or All Capacity mode repair the node or slice**:
   - **Single-host TPU slice node pool**: Per
     [Configure auto repair for TPU slice nodes](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/tpus.md.txt),
     "In a single-host TPU slice node pool, only the unhealthy TPU node is
     auto-repaired." Per
     [Node repair process](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair.md.txt),
     for a single node repair, GKE drains the node and waits one hour for the
     drain to complete; if the drain doesn't complete, GKE shuts the node down
     and creates a new node.
   - **Multi-host TPU slice node pool (without dynamic slicing or All Capacity
     mode)**: Per
     [Node auto repair in TPU slice nodes](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair.md.txt)
     and
     [Configure auto repair for TPU slice nodes](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/tpus.md.txt),
     if a TPU slice node in a multi-host TPU slice node pool is unhealthy and
     requires auto repair, the entire node pool is re-created.
   - **Dynamic slicing node pool**: Per
     [Hardware maintenance and failures](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/create-dynamic-slices.md.txt),
     only the targeted nodes are affected rather than the entire node pool, and
     for dynamic sub-slicing the scheduler attempts to re-create failed slices
     on other available healthy nodes. If `Slice` custom resources fail to form
     or remain `FAILED`, hand off to
     `gke-ai-troubleshooting-tpu-dynamic-slices-monitoring`.
   - **TPU All Capacity mode with a faulty host report**: If Step 4, item 3
     found a `compute.instances.reportHostAsFaulty` operation for
     `{instance_name}` (tracked via
     [Review report faulty host operations](https://docs.cloud.google.com/tpu/docs/all-capacity-report-faulty-hosts.md.txt)),
     do not escalate the VM as stuck. Tell the user that per
     [Understand the faulty host report process](https://docs.cloud.google.com/tpu/docs/all-capacity-report-faulty-hosts.md.txt),
     the VM stops during the repair and restarts on the same host after the
     repair is complete, and "The host repair process can take between 3 and 14
     days, or longer."
3. **Contact Cloud Customer Care if the repair doesn't start or complete**:
   - If the VM stays in `REPAIRING` (and isn't waiting on a 3-to-14-day All
     Capacity mode faulty host repair), if the node has been `NotReady` (or
     reported no status) for longer than the ~10-minute threshold in
     [Repair criteria](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair.md.txt)
     with `autoRepair` enabled and no repair operation in Step 4, or if the
     operation history shows a failed repair that isn't caused by quota, direct
     the user to
     [Before you contact support](https://docs.cloud.google.com/kubernetes-engine/docs/getting-support.md.txt)
     and
     [Recommendations for efficient support](https://docs.cloud.google.com/kubernetes-engine/docs/getting-support.md.txt)
     to contact Cloud Customer Care. In addition to the details listed in
     [Recommendations for efficient support](https://docs.cloud.google.com/kubernetes-engine/docs/getting-support.md.txt),
     include the node pool name, instance name, the system event log entries
     from Step 2, and the repair operation name from Step 4.
4. **Verify recovery**:
   - Repeat Step 1 and Step 3. When recovery is complete, every instance in
     `{group_name}` reports `RUNNING` with action `NONE`, and every node in
     `{nodepool_name}` is `Ready`.
   - If the instances report `RUNNING` with action `NONE` (or another status or
     action) and a node still isn't `Ready`, follow the handoffs in Step 1
     (`gke-ai-troubleshooting-node-unresponsive-timeout` or
     `gke-node-notready`) or escalate to Cloud Customer Care in item 3 of this
     step.

© google · Apache-2.0 · google/skills

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor