Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

attachVolume fails with HTTP 500 from vCenter datastore

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

@DaanHoogland がすでに取り組んでいます。

2026年8月3日 から。

  • #13773 @DaanHoogland による — オープン

評価

この issue はまだ評価されていません。

説明

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

主要言語
Java
スター
3.1k
フォーク
1.4k
平均マージ
6日 20時間
マージ済み PR(30日)
27

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

apache/cloudstack のほかの issue

apache/cloudstack の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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