Open StyXman opened 2 years ago
This is basically adding custom DNS record support, as well as the ability to specify custom DNS servers for DHCP/IPv6 RA.
Adding support for custom DNS records would avoid the need to run a custom dnsmasq instance.
I wonder if we could also add custom DNS record support for bridge networks without having to resort to raw.dnsmasq
I was thinking of that, but it would likely need to be tied to network zones in some way to not have too many different solutions.
2. Or potentially connecting the Ansible container instance to each of the OVN networks so Ansible can reach them directly.
In our case, Ansible runs on the host, not in a container. Hence the need for the host to access the instances.
We're migrating from isolated LXD hosts running groups of instances (our product's cluster, but I'll keep calling them group of instances to differentiate from an LXD cluster) to a cluster of LXD hosts. We create and destroy these groups as part of our CI infra, so they're short lived, and dozens to hundreds are created and destroyed every day.
We decided to use OVN for networking because FAN imposes too many restrictions on IPs, and other solutions required configuring physical switches to dynamically create VLANs, which is another can of worms we didn't want to open.
With LXD bridges we were able to do the following:
dnsmasq
instance serving 'private DNS' with several arbitrary DNS names pointing to the instances. For that we used theraw.dnsmasq
option. This is because our product requires that the instances must have multiple network interfaces that are used for at least two logically different networks, backend and frontend. There's an extra interface connected to the LXD bridge from point 1.As you can see in https://discuss.linuxcontainers.org/t/serving-dns-over-ovn-networks-and-accessing-the-instances-from-the-hosts/13900/46 I'm trying to figure out how to do points 1-3 without hacking workarounds to issues I might be introducing myself, but the DNS part will require some extra work to have
dnsmasq
in there.If I manage to get points 1-3 natively (meaning no workarounds), the only missing piece is the DNS support. @tomponline suggested to replace this bridge with a small instance running
dnsmasq
, but I rather prefer for LXD to do something for me. Maybe it's just simpler to rundnsmasq
in the same network namespace as the rest of the instances, but I still don't know how OVN connects to the real world.