Fix lack of routes for neighbour IPv4 subnets
According to [1], when a network contains more that one IPv4 subnet, they are returned in the 'classless-static-routes' DHCP option, regardless of whether DHCP is enabled for them or not. However, the get_active_networks_info() method used for synchronizing networks after the dhcp agent restarts filters subnets with "enable_dhcp=True", which differs from the get_network_info() method. This will block VM access to other VMs in the dhcp disabled subnets, even though they are in the same network. This is visible by looking at the "opts" file before and after a restart. Change the dhcp agent to ask for all subnets in its get_active_networks_info() RPC call by adding an enable_dhcp_filter argument to toggle the behavior, with the default being True to not break backwards compatibility. Based on https://review.openstack.org/#/c/352530/ by Quan Tian. [1] https://review.openstack.org/#/c/125043/ Change-Id: I11ca1d1a603d02587f3b8d4a5a52a96b0587d61f Closes-Bug: #1652654changes/05/566405/3
parent
2b11c8a054
commit
2e34279ec3
Loading…
Reference in New Issue