Persistent disk mount issue with Nitro instances
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
- 技術スタック
- aws, go
調査の方向性
まず IDDevicePathResolver と永続ディスクのデバイスパス処理から始め、cloudfoundry/bosh-agent#407 および cloudfoundry/bosh-aws-cpi-release#196 と動作を比較します。ここで説明されている Nitro インスタンスのデプロイを再現し、接続されたディスクが正しい NVMe デバイスとして解決され、ロールバックなしで正常にマウントされることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Summary
On AWS Nitro-based instances, attaching a persistent disk and deploying fails with:
mount /dev/nvme2n1p1 /var/vcap/store -> wrong fs type, bad superblock
BOSH then detaches the disk and rolls back. The VM is left with only root and ephemeral
disks.
Environment
- AWS Nitro-based instance
- Agent config at time of failure:
"disks": { "system": "/dev/xvda", "ephemeral": "/dev/sdb", "persistent": {} }
Observed behaviour
- Persistent disk is created and attached successfully by the CPI
- Agent resolves the device path and attempts to mount it
- Mount fails: wrong fs type, bad superblock
- BOSH detaches the disk and rolls back
Analysis
persistent is empty in the agent settings at mount time, meaning the agent resolves
the device path dynamically via IDDevicePathResolver. On Nitro instances, NVMe PCIe
enumeration order is non-deterministic. If the symlink in /dev/disk/by-id/ resolves to
the wrong NVMe device — one that is unformatted or has the wrong filesystem — the mount
fails with bad superblock.
The disk ID passed from the CPI may not match the symlink name, or there may be multiple
matching symlinks causing ambiguity.
Related
- cloudfoundry/bosh-agent#407 — fixes the same class of problem for NVMe instance
storage discovery - cloudfoundry/bosh-aws-cpi-release#196 — companion CPI-side change
Co-authored with Claude Code
- 主要言語
- Go
- スター
- 62
- フォーク
- 124
- 平均マージ
- 2日 6時間
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cloudfoundry/bosh-agent のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
cloudfoundry/bosh-agent#500 ·
メンテナーはふだん 1 日以内に返信
-
Move CI to CFF account再び着手できるかも @a-hassanin が 409 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
cloudfoundry/bosh-agent#367 · コメント 7 件 · リアクション 1 件 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
cloudfoundry/bosh-agent の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
github/github-mcp-server#3865 ·
メンテナーはふだん 2 日以内に返信
-
kind/features
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
TencentBlueKing/bk-nodemgr#4017 ·
メンテナーはふだん 1 日以内に返信
-
ssa: wait errors drop the kstatus message, so health check failures don't say why対応中かも @schdief が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
equinor/radix-operator#2066 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
microsoft/terraform-provider-msgraph#188 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信