Persistent disk mount issue with Nitro instances

Aperta
#429 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
aws, go

Direzione di ricerca

Inizia con IDDevicePathResolver e la gestione dei percorsi dei dispositivi per i dischi persistenti, quindi confronta il comportamento con cloudfoundry/bosh-agent#407 e cloudfoundry/bosh-aws-cpi-release#196. Riproduci il deployment dell'istanza Nitro descritto qui e verifica che il disco collegato venga risolto nel dispositivo NVMe corretto e montato correttamente senza rollback.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Go
Stelle
62
Fork
124
Merge medio
2g 6h
PR unite (30g)
8

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cloudfoundry/bosh-agent

Tutte le issue di cloudfoundry/bosh-agent

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.