vsan_fault_domain

vSAN fault domain configuration (SOAP).

Fault domains group hosts that share a failure boundary (rack, power domain, blade chassis). vSAN places replica copies across FDs so the loss of an entire FD doesn’t take data offline. Fault domains are mandatory in stretched-cluster topologies.

Reconfigured via the cluster vSAN reconfig API with a vim.cluster.VsanFaultDomainsConfigSpec containing a list of vim.cluster.VsanFaultDomainSpec (name + member hosts).

saltext.vcf.clients.vsan_fault_domain.list_(opts, cluster, profile=None)[source]

Return current fault-domain assignments for cluster.

Each ESXi host carries its own faultDomainInfo on host.configManager.vsanSystem.config. VCF 9.x’s VsanClusterGetConfig does not return the per-host array, so we iterate the cluster’s member hosts directly.

Output: a list of {"host", "host_id", "fault_domain", "node_uuid"} dicts — one per host in the cluster. fault_domain is None when the host is not in any FD.

saltext.vcf.clients.vsan_fault_domain.assign(opts, cluster, mapping, profile=None)[source]

Assign hosts to fault domains.

mapping is a dict {host_id_or_name: fault_domain_name}. Hosts referenced by name OR MoId are resolved against the cluster’s member list. Hosts not present in the cluster are silently ignored.

Returns the vim.Task moId.