dhcp_agents_per_network is set to 1 when deploying multiple nodes running the NeutronDhcpAgent service.
I'm doing a deployment with 3 controllers and 2 networker nodes running the Neutron agents including the dhcp agent. The deployed configuration ends up with dhcp_agents_per_network=1 and I'd expect it to be equal to the number of nodes that run the NeutronDhcpAgent service.
export THT=/usr/share/openstack-tripleo-heat-templates/
openstack overcloud deploy --templates $THT \
-r ~/openstack_deployment/roles/roles_data.yaml \
-e $THT/environments/network-isolation.yaml \
-e $THT/environments/network-management.yaml \
-e $THT/environments/storage-environment.yaml \
-e $THT/environments/puppet-pacemaker.yaml \
-e ~/openstack_deployment/environments/nodes.yaml \
-e ~/openstack_deployment/environments/network-environment.yaml \
-e ~/openstack_deployment/environments/disk-layout.yaml \
-e ~/openstack_deployment/environments/neutron-settings.yaml
Environment files:
http://paste.openstack.org/show/585459/
There is currently logic[1] in the client code to set this. It's odd that it was set to 1 with 3 controllers, but IIUC it should have been set to 5? This may need to set in THT now, instead of by the client, as the client isn't aware of the other node types.
1. https:/ /github. com/openstack/ python- tripleoclient/ blob/master/ tripleoclient/ v1/overcloud_ deploy. py#L103- L110