Dont schedule Network, respecting network_auto_schedule config
Currently, if dhcp mapping from a network is removed, it is reassigned
to the network. This is because of the Network Scheduler's schedule
function, which considers balancing the networks with the agents, whether
enable_dhcp is set on its subnets or not. It does not take into account
the network_auto_schedule config option. This is particularly disturbing
when considering backends which have their provide their own DHCP.
With this patch, if network_auto_schedule is set to False, networks wont
be automatically scheduled to DHCP Agents. If DHCP is to be mapped to a
network, it can be mapped using the CLI itself.
While it may seem that this change is breaking what is already working,
but as mentioned earlier, if there are network backends which provide DHCP
support themselves, they wont need the automatic mapping, which the term
"network_auto_schedule" actually stands for.
Reviewed: https:/ /review. opendev. org/693645 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=139b496ef95 7364caee6861fd1 6676cdfb76a38b
Committed: https:/
Submitter: Zuul
Branch: master
commit 139b496ef957364 caee6861fd16676 cdfb76a38b
Author: Reedip <email address hidden>
Date: Mon Nov 11 10:54:42 2019 +0900
Dont schedule Network, respecting network_ auto_schedule config
Currently, if dhcp mapping from a network is removed, it is reassigned auto_schedule config option. This is particularly disturbing
to the network. This is because of the Network Scheduler's schedule
function, which considers balancing the networks with the agents, whether
enable_dhcp is set on its subnets or not. It does not take into account
the network_
when considering backends which have their provide their own DHCP.
With this patch, if network_ auto_schedule is set to False, networks wont
be automatically scheduled to DHCP Agents. If DHCP is to be mapped to a
network, it can be mapped using the CLI itself.
While it may seem that this change is breaking what is already working, auto_schedule" actually stands for.
but as mentioned earlier, if there are network backends which provide DHCP
support themselves, they wont need the automatic mapping, which the term
"network_
Closes-Bug: #1647421 37415efa2abce51 8722316a77b
Change-Id: If1a6a2a174d0f7