본문으로 건너뛰기
cccskills
Google 공식무료GitHub에 공개

gke-ai-troubleshooting-tpu-slice-mig-stuck-updating

Diagnose GKE TPU slice creation failures and pending JobSets caused by unstable managed instance groups, the underlying VM groups. Read-only checks examine logs, instance status, upgrades, and repairs to identify causes and suggest user-applied fixes.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

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.

연동 도구Kubernetes

실행 점수 미검증

설치 방법 보기

이럴 때 유용합니다

  • Investigating TPU SliceCreationFailed errors
  • Checking whether pending JobSets relate to MIG instability
  • Tracing stalled node pool upgrades or repairs
  • Distinguishing TPU capacity shortages from quota errors

포함된 파일(2)

  • SKILL.md15.4 KB
  • references/attribution.md2.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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

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 and Resource: NodePool). 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.
  • 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, and Monitor the status of the slice.
  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 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). 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.

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 (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 to list the cluster operations and find upgrade operations targeting {nodepool_name} in [{start_time}, {end_time}]. Also review Upgrade your node pools 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 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.
  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 and the "Insufficient quota to satisfy the TPU request" and "Insufficient TPU resources to satisfy the TPU request" sections of Troubleshoot TPUs in GKE.
  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. For dynamic slicing node pools, also check Upgrade your node pools 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. 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.
  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.
  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 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.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Create Terraform files that define alerts for AI agent latency, errors, token use, safety, security, and response quality. Check telemetry and existing policies first, then validate the generated configuration. Quality alerts require Vertex AI.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Configure alerts for agent latency and error rates
  • Monitor rapid increases in token usage
  • Monitor safety triggers and permission denials
google/skills2.2만2026년 10월 24일 업데이트

agent-platform-deploy

Google 공식무료

Deploy Model Garden models to Agent Platform endpoints, the addresses used for model requests. Check supported hardware and estimated hourly costs, inspect deployment progress, test predictions, and remove deployed resources after use.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Choose a deployable model and supported hardware
  • Estimate hourly deployment costs before approval
  • Check deployment progress and test predictions
google/skills2.2만2026년 10월 24일 업데이트

Manages Agent Platform endpoints, the stable URLs used to serve online model predictions. It supports listing, inspecting, creating, updating, and deleting endpoints, plus troubleshooting permission errors, quota limits, and resources that are busy.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Listing endpoints and checking their configuration
  • Creating an endpoint before model deployment
  • Updating endpoint display names or labels
google/skills2.2만2026년 10월 24일 업데이트

agent-platform-eval-flywheel

Google 공식무료

Evaluate AI models and agents on Google Cloud using test datasets and scoring criteria. Generate simulated user scenarios, analyze failures, and compare results across changes to guide improvements to prompts and code.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Build evaluation datasets from conversation logs
  • Generate simulated user scenarios
  • Choose scoring criteria for responses and tool use
google/skills2.2만2026년 10월 24일 업데이트

agent-platform-inference

Google 공식무료

Call Gemini and OpenMaaS models such as Llama, DeepSeek, and Qwen through Google Cloud Agent Platform. Prepare authentication and SDK code, run prompts, configure connection endpoints, and troubleshoot common request errors.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Send a test prompt to Gemini
  • Call Llama or DeepSeek with the OpenAI SDK
  • Write code to call an existing custom endpoint
google/skills2.2만2026년 10월 24일 업데이트

Guides migration from Google AI Studio’s Gemini API to Gemini Enterprise Agent Platform on Google Cloud, covering billing, access permissions, authentication, and connection settings for SDKs and supported agent tools.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Moving a Gemini application to Google Cloud
  • Using Google Cloud credits for Gemini API calls
  • Unifying agent authentication and billing
google/skills2.2만2026년 10월 24일 업데이트

google의 스킬 모두 보기

이 스킬의 문제 신고