gke-ai-troubleshooting-tpu-slice-mig-stuck-updating
What it does
This skill helps an AI agent work out why TPU slices and JobSets are stuck when the backing Compute Engine instance groups are not stable. It is for engineers who run TPU slices on GKE.
When to use it
- ✓When TPU slice creation fails with SliceCreationFailed and an unstable instance group may be the cause.
- ✓When a JobSet stays pending and its instance group shows isStable false.
- ✓When an instance group has not reached its target version yet.
Skill link
https://github.com/google/skills/blob/main/skills/cloud/gke-ai-troubleshooting-tpu-slice-mig-stuck-updating/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“My TPU JobSet has been pending for an hour and the instance group says it is not stable. What should I check?”
5 new skills a week. 1 minute to read.
How it works
The agent checks the slice status first, then looks at whether the backing instance groups are stable and have reached their target versions.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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).
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. 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. - For installing
kubectland configuring cluster credentials, follow the "Install kubectl", "Install required plugins", and "Store cluster information for kubectl" sections of Install kubectl and configure cluster access.
- For installing and initializing
- API Enablement & Billing:
- Verify that the project has an active Cloud Billing account.
- Enable APIs:
container.googleapis.com,compute.googleapis.com, andlogging.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.
- Logs Viewer (
- Documentation:
- Use dynamic slicing with a custom scheduler (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 (Sections: "Install kubectl", "Install required plugins", "Store cluster information for kubectl")
- Add and manage node pools (Sections: "View node pools in a Standard cluster")
- View information about MIGs and managed instances (Sections: "Check whether a MIG is stable", "Check the status of managed instances", "List instance errors")
- Automatically apply VM configuration updates in a MIG (Sections: "Verify whether an update rollout is complete")
- Manually upgrade a cluster's control plane or node pools (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 (Sections: "Get information about recent automated repair events")
- Troubleshoot GKE Standard node pools (Sections: "Issue: Node pool creation fails due to insufficient resources")
- [Troubleshoot TPUs in GKE
FAQ
What does isStable false mean?
It means the instance group is still creating, updating or repairing instances, so it is not stable yet.
Which check comes first?
The skill checks the slice status first, then the instance groups behind it.
Does it need access to my project?
Yes. It uses gcloud and GKE tools, so you need access to the project and cluster.
Details
Original description by the author
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
repo: google/skills
Popularity
- GitHub stars
- 22k
- Ranking position
- #10273
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
finding-google-skills
22kHelps your agent find the right Google guides for a setup task, such as hosting, databases, storage, sign-in or AI model serving.
gcloud
22kHelps your agent write and check Google Cloud gcloud commands, looking up exact syntax before it runs anything so it does not guess flags.
google-cloud-recipe-auth
22kGuides your agent through Google Cloud identity and access, including how people and services sign in and which permissions they get.
google-cloud-recipe-onboarding
22kWalks a new developer through first steps on Google Cloud, including choosing a project, linking billing, and deploying a first resource.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.