ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
Advanced networking
Multiple subnets for management cidr (172.30.34.* and 172.30.36.*)
OS / ENVIRONMENT
Ubuntu 16 hosts
SUMMARY
The console for a vm timeouts when there are multiple subnets configured.
If we try to access the console of the vm which is running on the host with primary subnet then everything works fine.
If we try to open the console of the vm which is running on the host with second subnet then the console hangs
Looks like console proxy creates a static route for the second subnet which breaks the connection
Moving the vm back to the hypervisor which has the primary subnet, fixes the issue.
This issue was not present in cloudstack 4.7 version but the issues exists in 4.14 onwards. It probably might exist in 4.11 also
STEPS TO REPRODUCE
1. Configure multiple subnets for the management cidr (172.30.34.* and 172.30.26.*)
2. In our case few hypervisors had 172.30.34* subnet configured and few others had 172.30.36.*
3. Here 172.30.34.* is the main subnet and 172.30.26.* is second subnet
4. Deploy a VM on host with 172.30.34* and 172.30.36.* subnets
5. open the console for the console proxy vm
6. Now try to open the console for the vm running on host with subnet 172.30.34.* This works fine
7. Now open the console for the vm running on the host with 172.30.36.* as the subnet
8. The console hangs
Below is the routing table
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 37.48.69.14 0.0.0.0 UG 0 0 0 eth2
10.0.0.0 172.30.34.254 255.0.0.0 UG 0 0 0 eth1
37.48.69.0 0.0.0.0 255.255.255.240 U 0 0 0 eth2
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
172.16.0.0 172.30.34.254 255.240.0.0 UG 0 0 0 eth1
172.30.34.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
172.30.36.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
172.30.36.3 172.30.34.254 255.255.255.255 UGH 0 0 0 eth1
172.30.36.25 172.30.34.254 255.255.255.255 UGH 0 0 0 eth1
172.30.36.37 172.30.34.254 255.255.255.255 UGH 0 0 0 eth1
172.30.36.42 172.30.34.254 255.255.255.255 UGH 0 0 0 eth1
172.30.36.56 172.30.34.254 255.255.255.255 UGH 0 0 0 eth1
192.168.0.0 172.30.34.254 255.255.0.0 UG 0 0 0 eth1
Below are the Ip address of the hosts where vm is running and these routes are created the moment we tried to access console of that vm.
So these routes should not be created. When we delete this route manually, it works fine.
If we do a refresh, these routes are added again and it breaks
172.30.36.3 172.30.34.254 255.255.255.255 UGH 0 0 0 eth1
172.30.36.25 172.30.34.254 255.255.255.255 UGH 0 0 0 eth1
172.30.36.37 172.30.34.254 255.255.255.255 UGH 0 0 0 eth1
172.30.36.42 172.30.34.254 255.255.255.255 UGH 0 0 0 eth1
172.30.36.56 172.30.34.254 255.255.255.255 UGH 0 0 0 eth1
EXPECTED RESULTS
The console for all vm's running on all hosts should work fine without any timeout
ACTUAL RESULTS
The console for the vm's running on the hosts with secondary subnet timeouts/hangs
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
Advanced networking
Multiple subnets for management cidr (172.30.34.* and 172.30.36.*)
OS / ENVIRONMENT
Ubuntu 16 hosts
SUMMARY
The console for a vm timeouts when there are multiple subnets configured.
If we try to access the console of the vm which is running on the host with primary subnet then everything works fine.
If we try to open the console of the vm which is running on the host with second subnet then the console hangs
Looks like console proxy creates a static route for the second subnet which breaks the connection
Moving the vm back to the hypervisor which has the primary subnet, fixes the issue.
This issue was not present in cloudstack 4.7 version but the issues exists in 4.14 onwards. It probably might exist in 4.11 also
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS