During the redundancy test, after the host was reset, the VMs restarted by HA on the other host. But the anti-affinity rule does not take effect. VMs are powered on the same host, which does not align with the anti-affinity rule.
Environment
7.x
Cause
There is an outage of the current HA master, which marks vCenter as unavailable, during this period due to the ongoing HA election. Because of this, the SPE Placement Engine is invoked for placement of VMs that do not honor anti-affinity rules.
HA master is lost
/var/log/vmware/vpxd/vpxd.log
exception occurred in heartbeat to master
state changes to dead
Lost connection to master
updating host fdm states to unknown
exception occurred in heartbeat to master
New HA master is promoted, vCenter marked as unavailable
/var/run/log/fdm.log
new host is elected as master
am now master
Marking VC as unavailable
Resolution
This is expected design when High Availability Master is lost