{"data":{"slug":"github-google-skills-skills-cloud-gke-ai-troubleshooting-tpu-vm-repair-stuck-98cd4d231f51","title":"Diagnose and Resolve GKE TPU VM Repair Issues","summary":"Identify and resolve GKE TPU VM instances stuck in REPAIRING state due to host errors, maintenance events, or faulty hosts. Provide the user with actionable fixes to apply themselves.","url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-gke-ai-troubleshooting-tpu-vm-repair-stuck-98cd4d231f51","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-google-skills-skills-cloud-gke-ai-troubleshooting-tpu-vm-repair-stuck-98cd4d231f51","markdown_url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-gke-ai-troubleshooting-tpu-vm-repair-stuck-98cd4d231f51.md","download_url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-gke-ai-troubleshooting-tpu-vm-repair-stuck-98cd4d231f51\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before executing any `gcloud`, REST API, or MCP command, you MUST read [Usage Attribution](references\/attribution.md). For terminal commands, 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. Run only read-only diagnostic commands.","instructions":"---\nname: gke-ai-troubleshooting-tpu-vm-repair-stuck\ndescription: >-\n  Diagnose GKE TPU VM instances stuck in Compute Engine repair (REPAIRING state)\n  after host errors, maintenance events, or faulty host reports in single-host,\n  multi-host, dynamic slicing, and TPU All Capacity mode node pools. Use when\n  TPU instances in a slice node pool remain in REPAIRING, host error events\n  appear in audit logs, or TPU slices are unschedulable due to a VM in repair.\n  Don't use for nodes reporting Ready: Unknown when no VM is in REPAIRING (use\n  gke-ai-troubleshooting-node-unresponsive-timeout), other NotReady nodes when\n  no VM is in REPAIRING (use gke-node-notready), Pending Pods when all nodes are\n  Ready (use gke-workload-troubleshooting), JobSet preemption events (use\n  gke-ai-troubleshooting-jobset-interruption), or Slice custom resource\n  lifecycle failures (use gke-ai-troubleshooting-tpu-dynamic-slices-monitoring).\nmetadata:\n  version: \"1.0.1\"\n  category: Containers\n---\n\n# Troubleshoot GKE TPU VMs stuck in Compute Engine repair (`REPAIRING`)\n\nThis skill checks the VM status, the host events, and the GKE repair status, and\nroutes recovery through GKE instead of direct Compute Engine changes.\n\n## Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read [Usage Attribution](references\/attribution.md). For commands executed\ndirectly in the terminal (never in generated scripts, Terraform, or user code),\nprefix `gcloud` with\n`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\/1.0 (skill:gke-ai-troubleshooting-tpu-vm-repair-stuck)\"`\nand append `agent-skills\/1.0 (skill:gke-ai-troubleshooting-tpu-vm-repair-stuck)` to `User-Agent` headers.\n\n## Prerequisites\n\n- **Tools**:\n  - For installing and initializing `gcloud` (which covers authentication and\n    project selection), follow\n    [Before you begin](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/tpus.md.txt).\n  - For installing `kubectl` and required plugins, follow\n    [Install kubectl](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/cluster-access-for-kubectl.md.txt)\n    and\n    [Install required plugins](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/cluster-access-for-kubectl.md.txt).\n- **Cloud Billing & Project Configuration**: Ensure the project has an active\n  Cloud Billing account. Follow\n  [Before you begin](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/tpus.md.txt)\n  to initialize `gcloud` and enable the Google Kubernetes Engine API\n  (`container.googleapis.com`), ensure the Compute Engine API\n  (`compute.googleapis.com`) and Cloud Logging API (`logging.googleapis.com`)\n  are enabled, and follow\n  [Store cluster information for kubectl](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/cluster-access-for-kubectl.md.txt)\n  to configure `kubectl` cluster credentials.\n- **Required IAM Roles**:\n  - Kubernetes Engine Viewer (`roles\/container.viewer`)\n  - Compute Viewer (`roles\/compute.viewer`)\n  - Logs Viewer (`roles\/logging.viewer`)\n  - For the user who enables node auto-repair in Step 5, item 1: Kubernetes\n    Engine Cluster Admin (`roles\/container.clusterAdmin`)\n- **Documentation**:\n  - [View information about MIGs and managed instances](https:\/\/docs.cloud.google.com\/compute\/docs\/instance-groups\/getting-info-about-migs.md.txt)\n    (Sections: \"List MIGs\", \"Check the status of managed instances\")\n  - [Compute Engine instance lifecycle](https:\/\/docs.cloud.google.com\/compute\/docs\/instances\/instance-lifecycle.md.txt)\n    (Sections: \"`REPAIRING` state\")\n  - [Troubleshooting VM shutdowns and reboots](https:\/\/docs.cloud.google.com\/compute\/docs\/troubleshooting\/troubleshooting-reboots.md.txt)\n    (Sections: \"Querying Cloud Audit Logs\", \"Reviewing Cloud Audit Logs\")\n  - [Configure cluster access for kubectl](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/cluster-access-for-kubectl.md.txt)\n    (Sections: \"Install kubectl\", \"Install required plugins\", \"Store cluster\n    information for kubectl\")\n  - [Add and manage node pools](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/node-pools.md.txt)\n    (Sections: \"View node pools in a Standard cluster\", \"Deploy a Pod to a\n    specific node pool\")\n  - [Troubleshoot NodeNotReady state](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/troubleshooting\/node-notready.md.txt)\n    (Sections: \"Check the node's status and conditions\", \"Confirm node\n    preemption\")\n  - [About TPUs in GKE](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/concepts\/tpus.md.txt)\n    (Sections: \"Multi-host TPU slice node pools\")\n  - [Use dynamic slicing with a custom scheduler](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/create-dynamic-slices.md.txt)\n    (Sections: \"Requirements\", \"Verify the status of the nodes and the\n    partitions\", \"Monitor the status of the Slice custom resource\", \"Hardware\n    maintenance and failures\")\n  - [About GKE dynamic slicing](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/concepts\/dynamic-slicing.md.txt)\n    (Sections: \"Key characteristics of dynamic slicing configurations\")\n  - [Deploy TPUs in All Capacity mode in GKE](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/tpu-all-capacity-mode.md.txt)\n    (Sections: \"Manage node failures\", \"Node failure and recovery\")\n  - [Report and repair faulty TPU hosts in All Capacity mode](https:\/\/docs.cloud.google.com\/tpu\/docs\/all-capacity-report-faulty-hosts.md.txt)\n    (Sections: \"Understand the faulty host report process\", \"Review report\n    faulty host operations\")\n  - [Auto-repair nodes](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/node-auto-repair.md.txt)\n    (Sections: \"Settings for Autopilot and Standard\", \"Repair criteria\",\n    \"Node repair process\", \"Verify node auto-repair is enabled for a Standard\n    node pool\", \"Enable auto-repair for an existing Standard node pool\", \"Get\n    information about recent automated repair events\", \"Node auto repair in TPU\n    slice nodes\")\n  - [Deploy TPU workloads in GKE Standard](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/tpus.md.txt)\n    (Sections: \"Before you begin\", \"Configure auto repair for TPU slice nodes\")\n  - [Get support](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/getting-support.md.txt)\n    (Sections: \"Before you contact support\", \"Recommendations for efficient\n    support\")\n  - [REST Resource: projects.locations.clusters.nodePools](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/reference\/rest\/v1\/projects.locations.clusters.nodePools.md.txt)\n    (Sections: \"Resource: NodePool\")\n\n> **Read-only rule**: Run read-only diagnostic commands only. Never drain,\n> delete, or re-create nodes, or run any other command that changes the cluster.\n> Give the user any fix to apply themselves.\n\nWhen you recommend a fix, link the doc section that describes it.\n\n---\n\n## Diagnostic workflow\n\n### Step 0: Collect context `[Low Risk]`\n\nCollect the target parameters:\n\n- `{project_id}`: Google Cloud project ID\n- `{cluster_name}`: GKE cluster name\n- `{location}`: Cluster region or zone\n- `{cluster_mode}`: Cluster mode (`Autopilot` or `Standard`)\n- `{tpu_version}`: TPU version (such as Ironwood `tpu7x`, TPU v6e, v5p, v5e, or\n  v4) and whether the node pool is a single-host or multi-host TPU slice node\n  pool\n- `{nodepool_name}`: TPU node pool name\n- `{group_name}` and `{zone}`: Name and zone of the managed instance group (MIG)\n  that backs the node pool:\n  - In a **Standard** cluster, follow\n    [View node pools in a Standard cluster](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/node-pools.md.txt)\n    to describe `{nodepool_name}` and read its `instanceGroupUrls` field (see\n    [Resource: NodePool](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/reference\/rest\/v1\/projects.locations.clusters.nodePools.md.txt)).\n  - In an **Autopilot** cluster (or if `{nodepool_name}` isn't known), follow\n    [List MIGs](https:\/\/docs.cloud.google.com\/compute\/docs\/instance-groups\/getting-info-about-migs.md.txt)\n    to list the managed instance groups in `{project_id}` and find\n    `{group_name}` and `{zone}`.\n- `{instance_name}`: Affected TPU VM name, if known. If the user doesn't know\n  `{instance_name}`, Step 1 finds the instances in `REPAIRING`.\n- `{issue_time}`: Incident timestamp in RFC3339 UTC, if known\n\n---\n\n### Step 1: Check the VM status in the managed instance group `[Low Risk]`\n\nTo list the instances in `{group_name}` with their status (`STATUS` \/\n`instanceStatus`) and current action (`ACTION` \/ `currentAction`), follow the\ninstructions in\n[Check the status of managed instances](https:\/\/docs.cloud.google.com\/compute\/docs\/instance-groups\/getting-info-about-migs.md.txt).\n\n- **Analysis**:\n  - **`STATUS` (`instanceStatus`) is `REPAIRING`**: Compute Engine is repairing\n    the VM because it encountered an internal error or its host server is\n    unavailable due to maintenance. The VM can't be used during the repair. See\n    [`REPAIRING` state](https:\/\/docs.cloud.google.com\/compute\/docs\/instances\/instance-lifecycle.md.txt).\n    Record `{instance_name}` and proceed to Step 2.\n  - **No instance is in `REPAIRING`** (every instance reports `RUNNING` with\n    `ACTION` `NONE`, or an instance reports another status or action such as\n    `ACTION` `RECREATING`, which means \"The instance is being replaced\" per\n    [Check the status of managed instances](https:\/\/docs.cloud.google.com\/compute\/docs\/instance-groups\/getting-info-about-migs.md.txt)):\n    Check each node's status and conditions following\n    [Check the node's status and conditions](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/troubleshooting\/node-notready.md.txt)\n    and hand off to the matching sibling skill:\n    - If a node's `Ready` condition is `Unknown` (`NodeStatusUnknown`), hand off\n      to `gke-ai-troubleshooting-node-unresponsive-timeout`.\n    - If a node isn't `Ready` for another reason, hand off to\n      `gke-node-notready`.\n    - If every node is `Ready` (per\n      [Repair criteria](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/node-auto-repair.md.txt),\n      \"A node reporting a Ready status is considered healthy\") but the\n      workload's Pods are still `Pending`, hand off to\n      `gke-workload-troubleshooting`.\n\n---\n\n### Step 2: Check Compute Engine system events `[Low Risk]`\n\nTo list the system events for `{instance_name}` around `{issue_time}`, follow\nthe instructions in the section\n[Querying Cloud Audit Logs](https:\/\/docs.cloud.google.com\/compute\/docs\/troubleshooting\/troubleshooting-reboots.md.txt).\nCompare the `method` field with the table in the\n[Reviewing Cloud Audit Logs](https:\/\/docs.cloud.google.com\/compute\/docs\/troubleshooting\/troubleshooting-reboots.md.txt)\nsection of the same document:\n\n- **`compute.instances.hostError`,\n  `compute.instances.terminateOnHostMaintenance`, or\n  `compute.instances.automaticRestart`**: Record the matching system event log\n  entries and timestamps, and continue to Steps 3 and 4.\n- **`compute.instances.preempted`**: Compute Engine preempted a Spot VM or\n  preemptible VM. If the affected workload is a `JobSet`, hand off to\n  `gke-ai-troubleshooting-jobset-interruption`. Otherwise, follow\n  [Confirm node preemption](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/troubleshooting\/node-notready.md.txt).\n- **No method from the table, or another method**: Per the note in\n  [Reviewing Cloud Audit Logs](https:\/\/docs.cloud.google.com\/compute\/docs\/troubleshooting\/troubleshooting-reboots.md.txt),\n  if a VM rebooted and none of the listed methods appears in the query results,\n  the reboot likely happened because the VM's operating system initiated it. If\n  the VM is still in `REPAIRING` in Step 1 (or a method such as\n  `compute.instances.reportHostAsFaulty` appears), continue to Steps 3 and 4.\n\n---\n\n### Step 3: Check the node status and slice impact `[Low Risk]`\n\nFollow\n[Check the node's status and conditions](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/troubleshooting\/node-notready.md.txt)\nto check the status and conditions of the nodes in the cluster and match\n`{instance_name}` using the node's `ProviderID` field. To filter nodes to\n`{nodepool_name}`, use the `cloud.google.com\/gke-nodepool` node label documented\nin\n[Deploy a Pod to a specific node pool](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/node-pools.md.txt).\n\n- If the node for `{instance_name}` reports `Ready` (per\n  [Repair criteria](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/node-auto-repair.md.txt),\n  \"A node reporting a Ready status is considered healthy\") and the VM is no\n  longer in `REPAIRING`, proceed to Step 5, item 4.\n- Otherwise, determine how the unhealthy node affects the node pool based on\n  the node pool configuration:\n  - **Single-host TPU slice node pool**: Per\n    [Configure auto repair for TPU slice nodes](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/tpus.md.txt),\n    \"In a single-host TPU slice node pool, only the unhealthy TPU node is\n    auto-repaired.\"\n  - **Dynamic slicing node pool**: To check whether `{nodepool_name}` uses\n    dynamic slicing, see\n    [Requirements](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/create-dynamic-slices.md.txt):\n    dynamic slicing requires a Standard cluster, Ironwood (`tpu7x`), and All\n    Capacity mode reservations. For a Standard cluster with Ironwood (`tpu7x`),\n    check whether the node has `cloud.google.com\/gke-accelerator-topology-mode:\n    PROVISION_ONLY` as shown in step 2 of\n    [Verify the status of the nodes and the partitions](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/create-dynamic-slices.md.txt)\n    (per\n    [Key characteristics of dynamic slicing configurations](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/concepts\/dynamic-slicing.md.txt),\n    \"dynamic slicing uses incremental provisioning\"). Per\n    [Hardware maintenance and failures](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/create-dynamic-slices.md.txt),\n    \"If you trigger customer-initiated maintenance or if a hardware failover\n    occurs, only the targeted nodes are affected rather than the entire node\n    pool.\" For an active dynamic sub-slice, the `Slice` custom resource\n    transitions to `FAILED` and the scheduler attempts to re-create the slice on\n    other available healthy nodes. Check the `Slice` status following\n    [Monitor the status of the Slice custom resource](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/create-dynamic-slices.md.txt);\n    if the `Slice` custom resource is in `FAILED` or another non-active state,\n    hand off `Slice` troubleshooting to\n    `gke-ai-troubleshooting-tpu-dynamic-slices-monitoring` alongside checking\n    the VM repair in Step 4.\n  - **TPU All Capacity mode node pool**: Per\n    [Manage node failures](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/tpu-all-capacity-mode.md.txt)\n    and\n    [Node failure and recovery](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/tpu-all-capacity-mode.md.txt),\n    in TPU All Capacity mode, if a VM fails due to issues like hardware\n    failure, Google Cloud \"attempts to recover the VM on the same host\n    (in-place repair)\", failed nodes have a status of `NotReady`, and the node\n    pool's status doesn't change to `ERROR`.\n  - **Multi-host TPU slice node pool (without dynamic slicing or All Capacity\n    mode)**: Per the section\n    [Multi-host TPU slice node pools](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/concepts\/tpus.md.txt),\n    the VMs in a multi-host TPU slice node pool are treated as a single atomic\n    unit. When a node in the slice requires repairing, GKE shuts down all VMs in\n    the TPU slice, forcing eviction of all the Kubernetes Pods in the workload,\n    and the Pods can be scheduled again only after all VMs in the slice are up\n    and running.\n\n---\n\n### Step 4: Check node auto-repair status and faulty host reports `[Low Risk]`\n\nFind out whether GKE or Compute Engine is repairing the node:\n\n1. **Check whether node auto-repair is enabled**:\n   - **Autopilot clusters**: Autopilot always repairs nodes, and you can't turn\n     this off (see\n     [Settings for Autopilot and Standard](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/node-auto-repair.md.txt)).\n   - **Standard clusters**: Follow\n     [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)\n     to check whether `autoRepair` is enabled on `{nodepool_name}`.\n2. **Check the GKE repair operation history**: Per\n   [Configure auto repair for TPU slice nodes](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/tpus.md.txt),\n   check the repair status, including any failure reason, in the operation\n   history described in\n   [Get information about recent automated repair events](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/node-auto-repair.md.txt):\n   - If a repair operation failed because of insufficient quota, tell the user\n     to contact their Google Cloud account representative to increase the quota.\n   - If `autoRepair` is enabled and no repair operation has appeared yet, check\n     how long the node has been unhealthy (from `{issue_time}` or the `Ready`\n     condition's `LastTransitionTime` in Step 3). Per\n     [Repair criteria](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/node-auto-repair.md.txt),\n     GKE initiates a repair when a node reports a `NotReady` status, or doesn't\n     report any status at all, over a given time threshold of approximately 10\n     minutes. If the node has reported `NotReady` (or no status) for less than\n     approximately 10 minutes, check the operation history again after that\n     threshold has passed. If it has been longer than approximately 10 minutes\n     and there is still no repair operation (and no All Capacity mode faulty\n     host report in item 3), escalate in Step 5, item 3.\n3. **For TPU All Capacity mode node pools, check for a faulty host report**:\n   Per\n   [Understand the faulty host report process](https:\/\/docs.cloud.google.com\/tpu\/docs\/all-capacity-report-faulty-hosts.md.txt),\n   after a user reports a faulty host, the TPU VM is stopped, its state changes\n   to `REPAIRING`, and \"The host repair process can take between 3 and 14 days,\n   or longer.\" Before escalating a VM in `REPAIRING` in an All Capacity mode\n   reservation, follow\n   [Review report faulty host operations](https:\/\/docs.cloud.google.com\/tpu\/docs\/all-capacity-report-faulty-hosts.md.txt)\n   to check for a `compute.instances.reportHostAsFaulty` operation on\n   `{instance_name}`.\n\n---\n\n### Step 5: Resolution `[High Risk]`\n\n> **Guardrails**:\n> - **Never** change GKE-managed instance groups or VMs directly through Compute\n>   Engine, for example with `gcloud compute instances delete` or `gcloud\n>   compute instance-groups managed` commands that change the group. Manage the\n>   node pool through GKE.\n> - **Never** run `kubectl delete node` on nodes in the node pool. Per\n>   [Settings for Autopilot and Standard](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/node-auto-repair.md.txt),\n>   if you use `kubectl` to delete an unhealthy node when auto-repair is\n>   disabled, the underlying VM might become orphaned from the cluster, and you\n>   would continue to be billed for it.\n\n1. **Enable node auto-repair (Standard clusters only)**:\n   - Autopilot clusters always auto-repair nodes, so skip this step.\n   - Before the user enables auto-repair on a multi-host TPU slice node pool\n     that doesn't use dynamic slicing or All Capacity mode, tell them that GKE\n     re-creates the entire node pool when a node in it needs repair (see item 2\n     of this step).\n   - If `autoRepair` is disabled on `{nodepool_name}`, link the user (who needs\n     the `Kubernetes Engine Cluster Admin` role, `roles\/container.clusterAdmin`)\n     to\n     [Enable auto-repair for an existing Standard node pool](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/node-auto-repair.md.txt)\n     and\n     [Configure auto repair for TPU slice nodes](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/tpus.md.txt)\n     so they can apply the change themselves.\n2. **Let GKE or All Capacity mode repair the node or slice**:\n   - **Single-host TPU slice node pool**: Per\n     [Configure auto repair for TPU slice nodes](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/tpus.md.txt),\n     \"In a single-host TPU slice node pool, only the unhealthy TPU node is\n     auto-repaired.\" Per\n     [Node repair process](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/node-auto-repair.md.txt),\n     for a single node repair, GKE drains the node and waits one hour for the\n     drain to complete; if the drain doesn't complete, GKE shuts the node down\n     and creates a new node.\n   - **Multi-host TPU slice node pool (without dynamic slicing or All Capacity\n     mode)**: Per\n     [Node auto repair in TPU slice nodes](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/node-auto-repair.md.txt)\n     and\n     [Configure auto repair for TPU slice nodes](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/tpus.md.txt),\n     if a TPU slice node in a multi-host TPU slice node pool is unhealthy and\n     requires auto repair, the entire node pool is re-created.\n   - **Dynamic slicing node pool**: Per\n     [Hardware maintenance and failures](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/create-dynamic-slices.md.txt),\n     only the targeted nodes are affected rather than the entire node pool, and\n     for dynamic sub-slicing the scheduler attempts to re-create failed slices\n     on other available healthy nodes. If `Slice` custom resources fail to form\n     or remain `FAILED`, hand off to\n     `gke-ai-troubleshooting-tpu-dynamic-slices-monitoring`.\n   - **TPU All Capacity mode with a faulty host report**: If Step 4, item 3\n     found a `compute.instances.reportHostAsFaulty` operation for\n     `{instance_name}` (tracked via\n     [Review report faulty host operations](https:\/\/docs.cloud.google.com\/tpu\/docs\/all-capacity-report-faulty-hosts.md.txt)),\n     do not escalate the VM as stuck. Tell the user that per\n     [Understand the faulty host report process](https:\/\/docs.cloud.google.com\/tpu\/docs\/all-capacity-report-faulty-hosts.md.txt),\n     the VM stops during the repair and restarts on the same host after the\n     repair is complete, and \"The host repair process can take between 3 and 14\n     days, or longer.\"\n3. **Contact Cloud Customer Care if the repair doesn't start or complete**:\n   - If the VM stays in `REPAIRING` (and isn't waiting on a 3-to-14-day All\n     Capacity mode faulty host repair), if the node has been `NotReady` (or\n     reported no status) for longer than the ~10-minute threshold in\n     [Repair criteria](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/how-to\/node-auto-repair.md.txt)\n     with `autoRepair` enabled and no repair operation in Step 4, or if the\n     operation history shows a failed repair that isn't caused by quota, direct\n     the user to\n     [Before you contact support](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/getting-support.md.txt)\n     and\n     [Recommendations for efficient support](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/getting-support.md.txt)\n     to contact Cloud Customer Care. In addition to the details listed in\n     [Recommendations for efficient support](https:\/\/docs.cloud.google.com\/kubernetes-engine\/docs\/getting-support.md.txt),\n     include the node pool name, instance name, the system event log entries\n     from Step 2, and the repair operation name from Step 4.\n4. **Verify recovery**:\n   - Repeat Step 1 and Step 3. When recovery is complete, every instance in\n     `{group_name}` reports `RUNNING` with action `NONE`, and every node in\n     `{nodepool_name}` is `Ready`.\n   - If the instances report `RUNNING` with action `NONE` (or another status or\n     action) and a node still isn't `Ready`, follow the handoffs in Step 1\n     (`gke-ai-troubleshooting-node-unresponsive-timeout` or\n     `gke-node-notready`) or escalate to Cloud Customer Care in item 3 of this\n     step.\n","use_cases":["TPU instances in a slice node pool remain in REPAIRING state","Host error events appear in audit logs","TPU slices are unschedulable due to a VM in repair"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/google\/skills\/blob\/e3c591afe426ea585e4c21799e5199d6d47cd1be\/skills\/cloud\/gke-ai-troubleshooting-tpu-vm-repair-stuck\/SKILL.md","source_commit":"e3c591afe426ea585e4c21799e5199d6d47cd1be","license":null,"version":null,"listing_approved_at":"2026-11-17","created_at":"2026-11-16T15:28:19.000000Z","updated_at":"2026-11-17T10:20:00.000000Z","seo_title":"Diagnose GKE TPU VM Repair Issues","seo_description":"Troubleshoot GKE TPU VM instances stuck in REPAIRING state. Resolve host errors, maintenance events, and faulty hosts in TPU node pools.","seo_keywords":["GKE TPU VM repair troubleshooting","GKE TPU node pool repair","TPU VM stuck in repair","GKE TPU host error resolution"]}}