When performing an upgrade pre-check in SDDC Manager, the validation fails with the following error message displayed in the SDDC Manager UI:
Entering maintenance mode would violate affinity rules: VI-1-anti-affinity-rule-nsxt
VMware Cloud Foundation 5.1.0 and later
VMware SDDC Manager 5.1.0 and later
To proceed with the upgrade, use one of the following two options.
Option 1: Remove any hosts that are currently in maintenance mode, or add a new host to the cluster (recommended). Expanding the cluster ensures there are enough resources to maintain high availability and satisfy anti-affinity rules during the upgrade maintenance cycle.
Option 2: Temporarily disable the anti-affinity rule. If adding a host is not immediately possible, disabling the specific rule mentioned in the error message (e.g., VI-1-anti-affinity-rule-nsxt) will allow the upgrade to proceed.
Steps to follow:
https://<vcenter_server_fqdn>/ui).Configure tab.Configuration, select VM/Host Rules.VI-1-anti-affinity-rule-nsxt).Edit.Note: It is recommended to re-enable this rule after the upgrade process is complete to ensure the resiliency of your management components.