Remove calculation for NeutronDhcpAgentsPerNetwork

This patch removes the calculation that set the
NeutronDhcpAgentsPerNetwork configuration based on the number of
"controllers" being deployed. With composable roles, this is incorrect
and the default, if required, should be determined by the number of
neutron dhcp agent services being deployed - not a role count.

Closes-Bug: #1632721
Depends-On: I06628764c4769d91bbc42efe1c722702d6574d02
Change-Id: If202a8255f8ad9f662f0d66a5f630f1b7ae60a26
This commit is contained in:
Brent Eagles 2017-02-27 12:06:48 -03:30
parent b6f42f2a3c
commit 1051880e92
3 changed files with 6 additions and 12 deletions

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Removed setting NeutronDhcpAgentsPerNetwork based on controller count.
If not overridden by the user, it should be calculated based on the
number of neutron DHCP agents that are actually deployed.

View File

@ -137,7 +137,6 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
'ExtraConfig': '{}',
'HypervisorNeutronPhysicalBridge': 'br-ex',
'HypervisorNeutronPublicInterface': 'nic1',
'NeutronDhcpAgentsPerNetwork': 1,
'NeutronDnsmasqOptions': 'dhcp-option-force=26,1400',
'NeutronFlatNetworks': 'datacentre',
'NeutronPublicInterface': 'nic1',
@ -261,7 +260,6 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
'ExtraConfig': '{}',
'HypervisorNeutronPhysicalBridge': 'br-ex',
'HypervisorNeutronPublicInterface': 'nic1',
'NeutronDhcpAgentsPerNetwork': 1,
'NeutronDnsmasqOptions': 'dhcp-option-force=26,1400',
'NeutronFlatNetworks': 'datacentre',
'NeutronNetworkType': 'gre',
@ -1192,7 +1190,6 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
'ExtraConfig': '{}',
'HypervisorNeutronPhysicalBridge': 'br-ex',
'HypervisorNeutronPublicInterface': 'nic1',
'NeutronDhcpAgentsPerNetwork': 3,
'NeutronDnsmasqOptions': 'dhcp-option-force=26,1400',
'NeutronFlatNetworks': 'datacentre',
'NeutronNetworkType': 'gre',

View File

@ -105,15 +105,6 @@ class DeployOvercloud(command.Command):
if getattr(args, arg, None) is not None:
parameters[param] = getattr(args, arg)
# Scaling needs extra parameters
number_controllers = int(parameters.get('ControllerCount', 0))
dhcp_agents_per_network = (min(number_controllers, 3) if
number_controllers else 1)
parameters.update({
'NeutronDhcpAgentsPerNetwork': dhcp_agents_per_network,
})
return parameters
def _create_registration_env(self, args):