When attempting to add an additional disk to a virtual machine (VM) in VMware Cloud Director, the operation fails with a storage placement error. The system is unable to locate a valid storage container that satisfies the required storage policy and datastore configuration.
This issue occurs when the VM's current storage policy is mismatched or unsupported across available storage containers, or when the required datastore is not part of the eligible list during provisioning.
The UI or API throws an error referencing missing required storage containers and rejected resource groups.
The following messages are observed in the /opt/vmware/vcloud-director/container-debug.log file:
VMware cloud Director 10.5.x
VMware cloud Director 10.6.x
This issue typically occurs when the VM home directory and the associated virtual disks (VMDKs) are assigned to different storage policies. In scenarios where multiple hard disks exist, if even one of them is not aligned with the VM's configured storage policy, Cloud Director's placement engine fails to identify a valid storage container during operations such as adding a new disk.
To ensure successful provisioning, all components of the VM must conform to a consistent and compatible storage policy and datastore configuration.
To resolve this issue, ensure that all virtual disks of the VM are aligned with a consistent and compatible storage policy. This can be achieved by updating the disk storage policies to match the VM's default policy, and then modifying the VM's storage policy to the desired one.
Please follow the steps below:
Navigate to the affected VM in the VMware Cloud Director UI.
Locate the "Hardware" section of the VM's details page.
Under "Hard Disks", click "Edit".
For each listed disk, select the appropriate storage policy from the dropdown menu.
Tip: To ensure consistency, select the VM's current default policy.
Click "Save" to apply the changes.
Once all disks are aligned under the same storage policy, you may proceed to update the VM's storage policy as needed.