OVN and DHCP: A minimal example · The Odd Bit
Introduction A long time ago, I wrote an article all about OpenStack Neutron (which at that time was called Quantum). That served as an excellent reference for a number of years, but if you've deployed a recent version of OpenStack you may have noticed that the network architecture looks completely different. The network namespaces previously used to implement routers and dhcp servers are gone (along with iptables rules and other features), and have been replaced by OVN (“Open Virtual Network”).
I would like to offer a small contribution for folks interested in trying
If that interests you, see:
And a couple of comments to make this page even more awesome:
I'm not sure about the difference between the ovs version you used the one
I think the way you used the command 'ovn-nbctl dhcp-options-create' is not doing
ovn-nbctl list dhcp_options command should list the options under 'options' and not 'external_ids'.
As you do below, you can instead set it straight into the NB db with the command
I am a bit of a lazy typer, so I used that command to grab the uuid of the row dhcp_options.
I see a tiny little discrepancy on the mac you gave to port1 in your page. I think you
Another nit: There is no 's' in the logical_switch_ports table. So the command should be
Lastly, since vm has eth0 reserved for mgmt access, the command to configure the
Thanks for the comments!
Yeah, good catch; that was just a typo. My running environment actually has the protocol and port.
I actually used the
I've updated the post to just use what you suggested.
Yeah, I've fixed those, too.
Thanks for taking a look and correcting things!
Sorry, me again. :^) I came across a good read on how OVN implements the DHCP functionality and thought of sharing it here: https://blogs.rdoproject.org/2016/08/native-dhcp-support-in-ovn/ Enjoy!