Ask Your Question

how does dhcp-agent work?

asked 2013-01-05 06:34:12 -0500

kong gravatar image

Hi all:

in Folsom, when a port is created, I saw an ip address is allocated from subnet of the network(assume that there is only a subnet on the network) on which the port is created.

When an instance is created with this port, nova-compute driver(e.g. LibvertDriver) use its ip address directly to create *.xml for the instance, as below: " <interface type="bridge"> <mac address="fa:16:3e:ea:01:ed"/> <model type="virtio"/> <source bridge="qbre0a0b269-53"/> <filterref filter="nova-instance-instance-0000000d-fa163eea01ed"> <parameter name="IP" value=""/> <parameter name="DHCPSERVER" value=""/> <parameter name="PROJNET" value=""/> <parameter name="PROJMASK" value=""/> </filterref> </interface> "

what I want to know is how does the dhcp-agent work in creation process of instances? I cannot see there is any connection between the creation of instance and work of dhcp-agent.

Looking forward for answers, thanks!

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2013-01-05 09:25:00 -0500

kong gravatar image

Thanks yong sheng gong, that solved my question.

edit flag offensive delete link more

answered 2013-01-05 09:24:45 -0500

kong gravatar image

to gong yong sheng :

thanks very much, I got it!

edit flag offensive delete link more

answered 2013-01-05 08:01:51 -0500

gongysh gravatar image

read (

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-01-05 06:34:12 -0500

Seen: 25 times

Last updated: Jan 05 '13