To resolve this issue after 7.5 HF20 or 7.6 HF12 is applied:
- Re-register catalog types on IaaS machine by running this in command prompt and wait for completion:
"C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\Cafe\Vcac-Config.exe" RegisterCatalogTypes -v
This rewrites the vSphere Machine schema in vRA.
- Create a vRO action "calculateStorageGB" for calculating the Storage GB value.
Inputs (In this example, the machine 'disks' field has been used, you can add other inputs and bind them in the form depending on your use-case):
- diskEntries (Array/Properties)
Return Type: number
SCRIPT:
var acc = 0;
if (diskEntries && diskEntries.length > 0) {
for(var i=0; i < diskEntries.length; i++) {
acc = acc + parseInt(diskEntries[i].get('capacity'));
}
}
return acc;
- Remove and re-drag the VM in the Blueprint Editor. This will remove the Storage GB read-only constraint from schema in the vRA Database.
- Edit the Custom Form and drag the Storage GB on the canvas and configure it.
- Go to Default Value and set to External Source and select the "calculateStorageGB" action.
- For "diskEntries", the input parameter bind the disk field (or other parameters which you have included).
- Set ReadOnly to Yes, so the user will not be able to edit the Storage GB.
- Request the Custom Form:
- If Approval Policy is applied, ensure to have more Storage than the limit in Approval Policy.
- Ensure the Storage GB is submitted and showing correctly in the Deployment Request History.