Hi Bekei Park, On 11/19/26 2:48 AM, Bekei Park wrote: > A logical switch with at least one non-empty DNS record gets a > datapath-wide "udp.dst == 53" flow that applies dns_lookup(). All its > UDP DNS queries are then sent to ovn-controller, whatever DNS server > they are addressed to and whether or not OVN knows the name. > > The only way to turn this off is to leave the DNS records of the > logical switch empty [0]. That is not possible when the CMS does not > own all the records of the logical switch, or cannot stop the entity > that writes them. OpenStack Neutron, for instance, writes the DNS > records of a network again whenever one of its ports is updated, and > can only be told to stop for the whole deployment [1]. > > A deployment that runs its own resolver for the workloads of such a > logical switch has two problems. The queries for a name that is in the > DNS records never reach that resolver: OVN answers them, over UDP only, > with its own record types and TTL. All the other queries still go > through ovn-controller, a cost that was measured in [1] and reported on > ovs-discuss (Gavin McKee, 2024-10-04; Piotr Misiak, 2025-02-14). > > Add the logical switch option other_config:dns_lookup. When it is set > to false, ovn-northd does not add to that logical switch the DNS lookup > and response flows, nor the flow that lets the DNS replies built by > ovn-controller skip the egress ACLs. The DNS records are not changed > and are still synced to the Southbound database, so setting the option > back restores the lookup at once. The default is true: nothing changes > for a logical switch that does not set the option. >
I'm nacking this change. It is weird to have an option to disable a feature that can simply be disabled by not configuring it in the first place. It sounds to me that you need to bring it up with the CMS and find a way to fix it there. > A change of Logical_Switch.other_config already makes ovn-northd > recompute, so there is no incremental processing change. > > Narrowing the lookup, instead of disabling it, was proposed in [2] > (queries addressed to one IP) and in the patch "northd: Skip DNS lookup > for packets entering through router ports." posted to ovs-dev on > 2026-11-17. This change does not depend on them: it covers the case in > which OVN must not answer any query of the logical switch. > > [0] https://bugzilla.redhat.com/show_bug.cgi?id=2104568#c1 > [1] https://bugs.launchpad.net/neutron/+bug/2172741 > [2] https://github.com/ovn-org/ovn/pull/307 OVN development happens primarily on the mailing list. GitHub PR get best-effort attention at most. For the best results please use the mailing lists (ovs-discuss for discussions and ovs-dev for patches/rfcs). > > Assisted-by: Claude Fable 5.2, Claude Code > Signed-off-by: Bekei Park <[email protected]> > --- Regards, Dumitru _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
