When performing an upgrade pre-check in SDDC Manager (upgrading from VCF 5.1.0 to 9.0), 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
VMware SDDC Manager 5.1.0
To proceed with the upgrade, use one of the following two options.
Option 1: Add a Host to the Cluster (Recommended) Expanding the cluster ensures there are enough resources and hosts 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, you can temporarily disable the specific rule mentioned in the error message (e.g., VI-1-anti-affinity-rule-nsxt) to allow the upgrade to proceed.
Steps to follow:
Configure tab.Configuration, select VM/Host Rules.Edit.Note: It is recommended to re-enable this rule after the upgrade process is complete to ensure the resiliency of your management components.