Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)22k · #10309

google-cloud-filestore-log-troubleshooting

Skill này làm gì

Skill này chẩn đoán các vấn đề mount Filestore. Skill dành cho kỹ sư có ứng dụng không mount được chia sẻ file, hoặc khi mount bị timeout hay bị từ chối.

Khi nào nên dùng

  • ✓Khi một mount NFS bị treo hoặc thất bại từ VM, pod GKE, dịch vụ Cloud Run hoặc khối lượng công việc Vertex AI.
  • ✓Khi mount.nfs báo Connection timed out hoặc access denied by server.
  • ✓Khi bạn cần kiểm tra xem quy tắc tường lửa VPC hoặc tùy chọn export có chặn mount không.

Liên kết skill

https://github.com/google/skills/blob/main/skills/cloud/google-cloud-filestore-log-troubleshooting/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/google/skills/blob/main/skills/cloud/google-cloud-filestore-log-troubleshooting/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“VM của tôi không mount được chia sẻ Filestore và báo kết nối bị timeout. Tìm vì sao.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill kiểm tra quyền export của instance, quy tắc tường lửa VPC và nhật ký audit hoặc CSI, rồi xác định chính xác lớp nào bị lỗi. Skill đưa ra các bước khắc phục, như cập nhật quy tắc export hoặc tường lửa.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

<!-- disableFinding(LINE_OVER_80) -->

Filestore Log-Based Troubleshooting

Diagnoses, troubleshoots, and remediates Filestore client mount failures, permission errors (EACCES), and network timeouts (ETIMEDOUT) across projects.

Prerequisites & Quick Start

Required IAM roles on target project(s) (and Shared VPC host project if applicable):

  • Read: roles/file.viewer (instance & export ACLs), roles/compute.networkViewer (VPC firewall rules), roles/logging.viewer (Cloud Audit & GKE CSI logs), roles/mcp.toolUser (if using MCP tools).
  • Write (Remediation only): roles/file.editor (export ACL updates), roles/compute.securityAdmin (firewall rule creation).

Authenticate, verify billing/APIs, and configure your environment:

gcloud auth login && gcloud auth application-default login
gcloud billing projects describe {project_id} --format="value(billingEnabled)"
gcloud services enable file.googleapis.com compute.googleapis.com logging.googleapis.com --quiet
gcloud config set project {project_id} && gcloud config set compute/region {region}

Attribution

Prefix every gcloud command provided or executed with the skill metrics environment:

CLOUDSDK_METRICS_ENVIRONMENT="gcs-skills gcs-skills/1.0 (skill:google-cloud-filestore-log-troubleshooting)" \
gcloud filestore instances describe ...

On direct REST API calls, append HTTP header: User-Agent: gcs-skills/1.0 (skill:google-cloud-filestore-log-troubleshooting).

Conceptual & Informational Queries (CRITICAL)

For purely conceptual, architectural, or educational questions (e.g., "What causes EACCES on Filestore?", "Why does GKE Node IP appear instead of Pod IP?", "What ports does Filestore require?", "Explain root squash"):

  • Rule: Answer immediately using pre-trained knowledge and the workflow rules below. Answering directly minimizes tool latency and token usage when the user only seeks architectural guidance.
  • Constraint: Do not execute external tool calls or API requests for basic knowledge questions.

Handling "No-Command" Constraints (CRITICAL)

If the user prompt contains constraints like "Do not execute commands", "without executing", or "read-only":

  • Rule: Strictly avoid calling run_command to execute any shell, Python, or gcloud commands.
  • Discovery:
    1. First, check if Filestore MCP tools (get_instance, list_instances) are available and use them (API calls, not command executions).
    2. If MCP tools are unavailable, read references/mock-fleet-data.md only if the requested instance matches one of the evaluation scenarios (finance-share, shared-nfs, ml-data, data-hub, prod-share). Never report mock data as live production state. If the instance is not listed there, state that live access is required and provide the exact commands for the user to run.
    3. Fast-Path Stop Rule: Once you locate the target instance in references/mock-fleet-data.md, stop reading additional files immediately and formulate your response. Do NOT read scripts/quick_diagnose.py, scripts/diagnose_lib.py, _internal/quick_diagnose_test.py, or EVAL.* files when command execution is disabled, as inspecting code/test files wastes turns and triggers timeouts.
    4. Explain the required diagnostic steps and output the exact attributed commands for manual execution.
  • Mandatory User Confirmation Requirement: Even when command execution is disabled or the user asks only for recommendations, your response MUST STILL end with a clear question prompting the user for explicit confirmation before applying any remediation (e.g., "Would you like me to proceed with creating the VPC ingress firewall rule [rule_name]? Please confirm to proceed.").

Multi-Runtime Execution Options

Option 1: Bundled Python CLI Script (Recommended for CLI / Terminal Agents)

# Single instance diagnosis
python3 scripts/quick_diagnose.py --instance="<INSTANCE_ID>" --location="<LOCATION_OR_ZONE>" \
    [--project="<PROJECT_ID>"] [--client-ip="<CLIENT_IP>"] [--client-subnet="<CLIENT_SUBNET_CIDR>"]

# Bulk project-wide fleet diagnosis
python3 scripts/quick_diagnose.py --all --project="<PROJECT_ID>" [--json]
Flag Purpose
--instance, --location Filestore instance ID and region/zone (--zone is a legacy alias). Required unless --all.
--project GCP project ID (defaults to active gcloud project).
`--cli
Câu hỏi thường gặp

Skill xử lý những lỗi nào?

Lỗi quyền như EACCES và lỗi mạng timeout như ETIMEDOUT.

Skill có cần vai trò đặc biệt không?

Vai trò viewer cho Filestore, mạng và log, cùng vai trò editor chỉ khi khắc phục.

Skill có bao gồm Shared VPC không?

Có. Khi có liên quan đến dự án host Shared VPC, skill cũng kiểm tra dự án đó.

Chi tiết

Mô tả gốc của tác giả

Diagnoses and resolves Filestore client mount failures on Google Cloud, permission errors (EACCES), and network timeouts (ETIMEDOUT). Use when an NFS mount hangs or fails from a Compute Engine VM, GKE pod, Cloud Run service, or Vertex AI workload, when `mount.nfs` reports "Connection timed out" or "access denied by server", when checking whether VPC ingress firewall rules or `nfsExportOptions` allow a client IP, or when a previously working Filestore share suddenly stops mounting after an administrative change. Don't use for Cloud Storage (GCS) buckets, Persistent Disk, or Cloud NetApp Volumes

repo: google/skills

Độ phổ biến

Sao GitHub
22k
Vị trí xếp hạng
#10309
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự