Saving domain target version failed. Validation failures occurred while trying to save the target version: Domain <name> or some of its components are not in active stateVMware Cloud Foundation (VCF) 9.1
This issue occurs when a target Workload Domain component, such as the NSX-T Edge Cluster, is stuck in an ERROR state in the SDDC Manager database. The upgrade pre-checks mandate that all domain components must reflect an ACTIVE status in the database before an upgrade can be planned or initiated.
To resolve this issue, manually update the status of the affected component in the SDDC Manager Platform database.
Prerequisites:
Important: Before making any direct modifications to the SDDC Manager database, take a snapshot of the SDDC Manager appliance.
vcf user, and then su to root./usr/pgsql/13/bin/psql -U postgres -h localhost -d platform
SELECT id, status FROM nsxt_edge_cluster WHERE status != 'ACTIVE';UPDATE nsxt_edge_cluster SET status = 'ACTIVE' WHERE id = '<ERROR state ID>';
/opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.sh