This is a known issue for environments that do not allow routing between the Management Network and the vSAN Network.
Prior to executing the Cloud Foundation Stretched Cluster Workflow, static routes will need to added to all hosts in AZ1 and AZ2 that will participate in the stretched cluster.
Example:
The vSAN network in AZ2 is 172.16.33.0/24.
- SSH to each ESXi host in AZ1 and view the routing table. In the example below the 172.16.33.0/24 network does not exist. Run the following command:
esxcfg-route -l
VMkernel Routes:
Network Netmask Gateway Interface
172.16.11.0 255.255.255.0 Local Subnet vmk0
172.16.13.0 255.255.255.0 Local Subnet vmk2
default 0.0.0.0 172.16.11.253 vmk0
- Manually add the static route to each ESXi host in AZ1 using the command below:
esxcli network ip route ipv4 add -n 172.16.33.0/24 -g 172.16.13.253
- Verify that the static route was created successfully. Run the following command:
esxcfg-route -l
VMkernel Routes:
Network Netmask Gateway Interface
172.16.11.0 255.255.255.0 Local Subnet vmk0
172.16.13.0 255.255.255.0 Local Subnet vmk2
172.16.33.0 255.255.255.0 172.16.13.253 vmk2
default 0.0.0.0 172.16.11.253 vmk0
Note: Be sure to complete the process for each ESXi host in AZ1 that is participating in the stretched cluster.
The vSAN network in AZ1 is 172.16.13.0/24
- SSH to each ESXi host in AZ1 and view the routing table. In the example below the 172.16.33.0/24 network does not exist. Run the following command:
esxcfg-route -l
VMkernel Routes:
Network Netmask Gateway Interface
172.16.31.0 255.255.255.0 Local Subnet vmk0
172.16.33.0 255.255.255.0 Local Subnet vmk2
default 0.0.0.0 172.16.31.253 vmk0
- Manually add the static route to each ESXi host in AZ1 using the command below:
esxcli network ip route ipv4 add -n 172.16.13.0/24 -g 172.16.13.253
- Verify that the static route was created successfully. Run the following command:
esxcfg-route -l
VMkernel Routes:
Network Netmask Gateway Interface
172.16.31.0 255.255.255.0 Local Subnet vmk0
172.16.33.0 255.255.255.0 Local Subnet vmk2
172.16.13.0 255.255.255.0 172.16.33.253 vmk2
default 0.0.0.0 172.16.11.253 vmk0
Once the static routes have been added retry the workflow.