"invalidProperty = <VM group>" error when editing DRS rules or groups on cluster.
book
Article ID: 367005
calendar_today
Updated On:
Products
VMware vCenter ServerVMware vSphere ESXi
Issue/Introduction
When attempting to change any DRS rule group or cluster level settings like DRS, the tasks fails with an error: invalidProperty = "VM Group"
Environment
vCenter Server 7.x vCenter Server 8.x
Cause
A DRS rule is still configured which references a host or VM group that is no longer present in the vCenter Server. The error appears since DRS rules cannot point to a null value.
Resolution
Note: Before proceeding, ensure to take a snapshot for the vCenter VM. If there are vCenter Servers in Enhanced Linked Mode, please take offline snapshots for all the vCenter VMs.
To remove every DRS rule in vCenter from every cluster:
SSH to vCenter Server as root.
Stop the VPXD service service-control --stop vpxd
Access the vCenter Server database: /opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres
Remove every DRS rule in vCenter from every cluster: update VPX_COMPUTE_RESOURCE set RULES_INFO ='';
Exit the vCenter Server database: /q
Start the VPXD service and any other dependent services service-control --start --all