← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1174132] Re: Only one instance of a DHCP agent is run per network

 

Hi,
By default the scheduler allocates one agent. You are then able to add additional ones.
Please see the example below:

openstack@openstack:~/devstack$ quantum dhcp-agent-list-hosting-net private
+--------------------------------------+----------------------------------+----------------+-------+
| id                                   | host                             | admin_state_up | alive |
+--------------------------------------+----------------------------------+----------------+-------+
| f10e63e1-ea10-4897-adc3-7c395b7bbb20 | openstack.eng.lab.tlv.redhat.com | True           | :-)   |
+--------------------------------------+----------------------------------+----------------+-------+
openstack@openstack:~/devstack$ quantum agent-list
+--------------------------------------+--------------------+-----------------------------------------+-------+----------------+
| id                                   | agent_type         | host                                    | alive | admin_state_up |
+--------------------------------------+--------------------+-----------------------------------------+-------+----------------+
| 18cf3f85-3879-497c-833e-0a5bfea38e71 | Open vSwitch agent | openstack.eng.lab.tlv.redhat.com        | :-)   | True           |
| dcc13a1d-9d3c-4b06-ae4c-2263ece97a59 | L3 agent           | openstack.eng.lab.tlv.redhat.com        | :-)   | True           |
| dd1a8201-9f24-4b59-be67-310668a6030d | DHCP agent         | gkotton-ubuntu12.eng.lab.tlv.redhat.com | :-)   | True           |
| f10e63e1-ea10-4897-adc3-7c395b7bbb20 | DHCP agent         | openstack.eng.lab.tlv.redhat.com        | :-)   | True           |
+--------------------------------------+--------------------+-----------------------------------------+-------+----------------+
openstack@openstack:~/devstack$ quantum dhcp-agent-network-add dd1a8201-9f24-4b59-be67-310668a6030d f10e63e1-ea10-4897-adc3-7c395b7bbb20
Unable to find network with name 'f10e63e1-ea10-4897-adc3-7c395b7bbb20'
openstack@openstack:~/devstack$ quantum dhcp-agent-network-add dd1a8201-9f24-4b59-be67-310668a6030d private
Added network private to DHCP agent
openstack@openstack:~/devstack$ quantum dhcp-agent-list-hosting-net private
+--------------------------------------+-----------------------------------------+----------------+-------+
| id                                   | host                                    | admin_state_up | alive |
+--------------------------------------+-----------------------------------------+----------------+-------+
| dd1a8201-9f24-4b59-be67-310668a6030d | gkotton-ubuntu12.eng.lab.tlv.redhat.com | True           | :-)   |
| f10e63e1-ea10-4897-adc3-7c395b7bbb20 | openstack.eng.lab.tlv.redhat.com        | True           | :-)   |
+--------------------------------------+-----------------------------------------+----------------+-------+

Does this suffice?

** Changed in: quantum
       Status: New => Opinion

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to quantum.
https://bugs.launchpad.net/bugs/1174132

Title:
  Only one instance of a DHCP agent is run per network

Status in OpenStack Quantum (virtual network service):
  Opinion
Status in tripleo - openstack on openstack:
  Triaged

Bug description:
  DHCP Agent's are stateless and can run HA, but the scheduler only
  schedules one instance - when a network node fails (or is rebooted /
  has maintenance done on it) this results in user visible downtime.

To manage notifications about this bug go to:
https://bugs.launchpad.net/quantum/+bug/1174132/+subscriptions