Dhcp agent scheduling

Asked by chandan dutta chowdhury

Hi,

I am trying to understand the dhcp agent scheduling in quantum.
I want to determine which network node/dhcp-agent is hosting the dhcp server for a given L2 network.

Also is it possible that more than one active dhcp-agent is hosting DHCP service at the same time for a given L2 network ?

Thanks
Chandan

Question information

Language:
English Edit question
Status:
Solved
For:
neutron Edit question
Assignee:
No assignee Edit question
Solved by:
Eugene Nikanorov
Solved:
Last query:
Last reply:
Revision history for this message
Best Eugene Nikanorov (enikanorov) said :
#1

1. You may look at quantum database:
- "agents" table contains information about l3 and dhcp agents: at which host do they run, how many networks do they serve, etc.
- "networkdhcpagentbindings " table defines which dhcp agent serves a given l2 network.

2. No, currently only one dhcp agent serves a given l2 network.
See quantum/scheduler/dhcp_agent_scheduler.py:L47

Revision history for this message
chandan dutta chowdhury (chandanc) said :
#2

Thanks Eugene Nikanorov, that solved my question.

Revision history for this message
yong sheng gong (gongysh) said :
#3

In fact, we can have many active dhcp agents hosting one network.
by quantum dhcp-agent-network-add dhcpagent-id network-id

Revision history for this message
chandan dutta chowdhury (chandanc) said :
#4

yes i realized that and have some a question related to this
https://answers.launchpad.net/quantum/+question/225078