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:
parent
b6f42f2a3c
commit
1051880e92
@ -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.
|
@ -137,7 +137,6 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
|
|||||||
'ExtraConfig': '{}',
|
'ExtraConfig': '{}',
|
||||||
'HypervisorNeutronPhysicalBridge': 'br-ex',
|
'HypervisorNeutronPhysicalBridge': 'br-ex',
|
||||||
'HypervisorNeutronPublicInterface': 'nic1',
|
'HypervisorNeutronPublicInterface': 'nic1',
|
||||||
'NeutronDhcpAgentsPerNetwork': 1,
|
|
||||||
'NeutronDnsmasqOptions': 'dhcp-option-force=26,1400',
|
'NeutronDnsmasqOptions': 'dhcp-option-force=26,1400',
|
||||||
'NeutronFlatNetworks': 'datacentre',
|
'NeutronFlatNetworks': 'datacentre',
|
||||||
'NeutronPublicInterface': 'nic1',
|
'NeutronPublicInterface': 'nic1',
|
||||||
@ -261,7 +260,6 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
|
|||||||
'ExtraConfig': '{}',
|
'ExtraConfig': '{}',
|
||||||
'HypervisorNeutronPhysicalBridge': 'br-ex',
|
'HypervisorNeutronPhysicalBridge': 'br-ex',
|
||||||
'HypervisorNeutronPublicInterface': 'nic1',
|
'HypervisorNeutronPublicInterface': 'nic1',
|
||||||
'NeutronDhcpAgentsPerNetwork': 1,
|
|
||||||
'NeutronDnsmasqOptions': 'dhcp-option-force=26,1400',
|
'NeutronDnsmasqOptions': 'dhcp-option-force=26,1400',
|
||||||
'NeutronFlatNetworks': 'datacentre',
|
'NeutronFlatNetworks': 'datacentre',
|
||||||
'NeutronNetworkType': 'gre',
|
'NeutronNetworkType': 'gre',
|
||||||
@ -1192,7 +1190,6 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
|
|||||||
'ExtraConfig': '{}',
|
'ExtraConfig': '{}',
|
||||||
'HypervisorNeutronPhysicalBridge': 'br-ex',
|
'HypervisorNeutronPhysicalBridge': 'br-ex',
|
||||||
'HypervisorNeutronPublicInterface': 'nic1',
|
'HypervisorNeutronPublicInterface': 'nic1',
|
||||||
'NeutronDhcpAgentsPerNetwork': 3,
|
|
||||||
'NeutronDnsmasqOptions': 'dhcp-option-force=26,1400',
|
'NeutronDnsmasqOptions': 'dhcp-option-force=26,1400',
|
||||||
'NeutronFlatNetworks': 'datacentre',
|
'NeutronFlatNetworks': 'datacentre',
|
||||||
'NeutronNetworkType': 'gre',
|
'NeutronNetworkType': 'gre',
|
||||||
|
@ -105,15 +105,6 @@ class DeployOvercloud(command.Command):
|
|||||||
if getattr(args, arg, None) is not None:
|
if getattr(args, arg, None) is not None:
|
||||||
parameters[param] = getattr(args, arg)
|
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
|
return parameters
|
||||||
|
|
||||||
def _create_registration_env(self, args):
|
def _create_registration_env(self, args):
|
||||||
|
Loading…
Reference in New Issue
Block a user