Persistent disk mount issue with Nitro instances

オープン
#429 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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 ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cloudfoundry/bosh-agent のほかの issue

cloudfoundry/bosh-agent の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。