Persistent disk mount issue with Nitro instances

Abierto
#429 0 comentarios 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Tranquilo
Stack tecnológico
aws, go

Línea de trabajo

Comience con IDDevicePathResolver y el manejo de rutas de dispositivo de discos persistentes; después, compare el comportamiento con cloudfoundry/bosh-agent#407 y cloudfoundry/bosh-aws-cpi-release#196. Reproduzca el despliegue de la instancia Nitro descrito aquí y verifique que el disco adjunto se resuelva en el dispositivo NVMe correcto y se monte correctamente sin rollback.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Go
Estrellas
62
Forks
124
Merge medio
2 d 6 h
PR fusionados (30 d)
8

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de cloudfoundry/bosh-agent

Todos los issues de cloudfoundry/bosh-agent

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.