On a VCF instance where the management cluster has been converted to a vSAN stretched cluster via the SDDC Manager Stretch Cluster workflow, VCF Services Runtime platform component VMs deployed or scaled out after the initial bring-up may be placed on secondary-site (AZ2) hosts, even though the cluster already has a DRS VM-Host affinity rule pinning management VMs to the primary site (AZ1).
Observed symptoms:
sddc-manager_VMs should be on Primary Site) that pins the core management VMs present at that time to the primary-site host group (AZ1 hosts).fullyAutomated mode, is then free to place the new VM(s) anywhere in the cluster, including on secondary-site (AZ2) hosts.You may also recognize this issue by these symptoms:
The DRS VM-Host affinity rule created by the Stretch Cluster workflow pins only the management VMs that exist on the cluster at the time the rule is created to the primary-site (AZ1) VM group. Platform component VMs that are deployed or scaled out afterward — through a Day-N deployment, an LCM action, or a cluster scale-out — are not automatically added as members of that VM group. Because DRS, running in fullyAutomated mode, places any VM that is not covered by an affinity rule wherever it sees fit, these newer VMs can be scheduled onto secondary-site (AZ2) hosts.
This violates the VCF validated design, which requires management workloads to run on the primary site (AZ1) with no active workload on AZ2 during normal operations. If the secondary site fails, any unprotected platform VMs on AZ2 go down along with it — undermining the resilience the stretched-cluster design is meant to provide.
Do not wait for a site failure to find out whether you are exposed. Run this check any time, and always after a Day-N deployment, LCM action, or scale-out on a stretched management cluster, since the condition can recur with every such event:
This patches the vsphere provider configuration on the root vsp component's package deployment (PD) through the VCF Services Runtime platform API, setting a vmGroup. This is the single component that governs where VCF Services Runtime places all of its own infrastructure VMs on vSphere (cluster, folder, network, resource pool, datastores, and now the VM group). Once applied, VCF Services Runtime moves its VMs into that VM group, which brings them under the existing Primary Site DRS affinity rule — this is a one-time change per cluster, not a per-component or per-VM operation.
Important:
Step 1: Identify the primary-site (AZ1) VM group name
In the vSphere Client:
sddc-manager_VMs should be on Primary Site (created by the Stretch Cluster workflow).
Step 2: Copy the remediation script to the control-plane node
To remediate the issue at hand, we require direct access to a control-plane node of the VCF Management Services Runtime cluster.
Follow the steps here to enable SSH access to the cluster: https://techdocs.broadcom.com/us/en/vmware-cis/vcf/vcf-9-0-and-later/9-1/fleet-management/configuring-management-components/enable-ssh-access-to-the-vcf-services-runtime-cluster.html
set-primary-az-vmgroup.sh.vmware-system-user.scp set-primary-az-vmgroup.sh vmware-system-user@<node-ip>:
Step 3: Connect to the control-plane node and run the script
vmware-system-user and elevate to root using the steps in the documentation above.chmod +x /home/vmware-system-user/set-primary-az-vmgroup.sh[email protected] password and performs the remaining steps: setting the kubeconfig, looking up the VSP Component ID, authenticating, reviewing the current vsphere provider configuration, applying the vmGroup change, and polling the apply task until it succeeds./home/vmware-system-user/set-primary-az-vmgroup.sh --vm-group "<Cluster VM Group>" --platform-fqdn "<PLATFORM_FQDN>"
Step 4: Verify VM placement
kubectl get co -l component.vmsp.vmware.com/type=vsp# PHASE column should show Running