Persistent disk mount issue with Nitro instances
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 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 小时
- 30 天内合并 PR
- 8
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cloudfoundry/bosh-agent 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 30/100
cloudfoundry/bosh-agent#500 ·
维护者通常 1 天内回复
-
Move CI to CFF account可能重新可做 @a-hassanin 于 409 天前认领,目前没有进行中的 PR。 未关闭
cloudfoundry/bosh-agent#367 · 7 条评论 · 1 个 reaction · 已指派 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 个 reaction ·
维护者通常 1 天内回复