Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

attachVolume fails with HTTP 500 from vCenter datastore

Abierto
#13,249 7 comentarios 0 reacciones 1 asignado Ver en GitHub

@DaanHoogland ya está trabajando en esto.

Desde el 3/8/2026.

  • #13773 de @DaanHoogland — abierto

Evaluación

Este issue todavía no se ha evaluado.

Descripción

component:vmware
problem

AttachVolume fails with HTTP 500 from vCenter datastore browser when
attaching a detached volume on a PreSetup (DatastoreCluster) storage pool
to a Running VMware VM.

ERROR: Failed to attach volume!
java.io.IOException: Server returned HTTP response code: 500 for URL:
https://vcenter.../folder/i-2422-79-VM%2Fcaa1f96c...vmdk?dcPath=XXXXX&dsName=OShit-BigVol

CloudStack calls VirtualMachineMO.attachDisk() → getVmdkFileInfo() which
does an HTTP GET via vCenter datastore browser. vCenter routes this to a
non-owner ESXi host which cannot serve the locked file of the running VM.

EXPECTED RESULT:
Volume attaches successfully. CloudStack should use the vSphere API
(ReconfigVM_Task with VirtualDiskSpec) directly instead of going through
the vCenter HTTP datastore browser to validate the VMDK.

WORKAROUND:
Power off the VM, attach the volume, power it back on.
Reference: Related issue #10626

versions

COMPONENT NAME: Storage / VMware
CLOUDSTACK VERSION: 4.22.0

The steps to reproduce the bug
  1. Create a volume on a PreSetup/DatastoreCluster-type primary storage pool
  2. Migrate the volume (migrateVolume API) to BIGVOL (DatastoreCluster)
  3. Volume lands correctly on ESXi host VMFS under i-XXXX-XX-VM/ folder
  4. Attempt attachVolume to a Running VM on the same cluster
What to do about it?

No response

Lenguaje dominante
Java
Estrellas
3.1k
Forks
1.4k
Merge medio
6 d 20 h
PR fusionados (30 d)
27

Guía de contribución

Abrir la 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 apache/cloudstack

Todos los issues de apache/cloudstack

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.