Unable to add a new edge node. Expand Edge Cluster task is failing at the subtask "Update Anti Affinity Rule"
The following events are listed in the log file, /var/log/vmware/vcf/domainmanager/domainmanager.log :
YYYY-MM-DDTHH:MM:SS.397+0000 ERROR [vcf_dm,692###,####] [c.v.v.c.f.p.a.i.UpdateAntiAffinityRuleAction,dm-exec-15]
Desired spec {"vm":
[{"_type":"VirtualMachine","_value":"vm-1####","_serverGuid":"########-####-4a95-87c4-############"},
{"_type":"VirtualMachine","_value":"vm-2####","_serverGuid":"########-####-4a95-87c4-############"},
{"_type":"VirtualMachine","_value":"vm-3####","_serverGuid":"########-####-4a95-87c4-############"}],
"enabled":true,"ruleUuid":"########-c7e9-0ae5-663a-############"} does not exist in cluster domain-c####
YYYY-MM-DDTHH:MM:SS.403+0000 ERROR [vcf_dm,692###,####] [c.v.e.s.o.model.error.ErrorFactory,dm-exec-15] [Q1####] VSPHERE_VM_ANTIAFFINITY_RULE_CREATION_FAILED Failed to create VM-VM anti-affinity rule null in vCenter domain-c####
Unable to manually enable the affinity rule in vCenter Server. /var/log/vmware/vpxd/vpxd.log reports the following events:
YYYY-MM-DDTHH:MM:SS.161+11:00 info vpxd[49164] [Originator@6876 sub=drmLogger opID=####-auto-c] DRS automation level of cluster [vim.ClusterComputeResource:domain-c####,hce-fdc-mgt1] is fullyAutomated
YYYY-MM-DDTHH:MM:SS..161+11:00 info vpxd[49164] [Originator@6876 sub=drmLogger opID=####-auto-c] Editing rule VCF-edge_mgt-ec01_antiAffinity_#######-10aa-46f0-a8dd-###########. New rule's name is VCF-edge_mgt-ec01_antiAffinity_#######-10aa-46f0-a8dd-###########, isEnabled is true and isMandatory is <unset>
YYYY-MM-DDTHH:MM:SS..161+11:00 info vpxd[49164] [Originator@6876 sub=drmLogger opID=####-auto-c] New anti affinity rule is conflicting with other anti affinity rules
YYYY-MM-DDTHH:MM:SS..161+11:00 info vpxd[49164] [Originator@6876 sub=drmLogger opID=####-auto-c] Disabling anti affinity rule [N3Vim7Cluster20AntiAffinityRuleSpecE:0x00007f3c94083ab0] because of conflicts
VMware Cloud Foundation 5.2.x
Edge deployment subtask is failing as SDDC manager is unable to validate the affinity rule configuration in the vCenter Server Cluster where the edge VMs are running.
vpx_compute_resource table in the vCenter Server database for duplicates or entries with null values.
/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgresselect id,rules_info from vpx_compute_resource;id will be the moid of the cluster.rules_info, please engage Broadcom Support.