all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: pve-devel@lists.proxmox.com, Gabriel Goller <g.goller@proxmox.com>
Subject: Re: [PATCH network] sdn: dhcp: do not start dnsmasq for zones without a vnet with subnets
Date: Tue, 24 Nov 2026 10:22:26 +0100	[thread overview]
Message-ID: <179551200864.3536408.9967704513250177936.b4-ty@b4> (raw)
In-Reply-To: <20261123-sdn_dhcp_do-v1-1-4b55711e9620@proxmox.com>

On Mon, 23 Nov 2026 17:48:03 +0100, Gabriel Goller wrote:
> A zone with DHCP enabled but no vnet with a subnet still got a dnsmasq
> instance. The interface= line for a vnet is only written once the vnet
> has a subnet, so the instance config only has except-interface=lo. With
> bind-dynamic, dnsmasq then binds port 53 on every address of the host,
> including the vnets of other zones. Zones are configured in sorted
> order, so every DHCP zone after the empty one then fails to start:
> 
> [...]

Applied, thanks!

This caused a new case for guest start or vNIC hot-plug a vnet of a zone
that no longer gets a dnsmasq instance, as adding the IP mapping tried
to reload the stopped dnsmasq instance. So I applied a commit before
yours that only reloads dnsmasq and updates the lease if the instance is
actually enabled, and still writes the ethers entry otherwise. Please
double check that this fits how you want the DHCP code to work.

Also added a follow-up that configures dnsmasq with the applied subnets
instead of the pending ones.

FWIW, before_configure still writes the defaults, the D-Bus policy and
the VRF drop-in for the zones that are skipped now, but shouldn't really
hurt either, so I left it for now.

[1/1] sdn: dhcp: do not start dnsmasq for zones without a vnet with subnets
      commit: 9274b07d1f5f75c5008b25a90183782c8c8fa769




  reply	other threads:[~2026-11-24  9:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 16:48 [PATCH network] sdn: dhcp: do not start dnsmasq for zones without a vnet with subnets Gabriel Goller
2026-11-24  9:22 ` Thomas Lamprecht [this message]
2026-11-24  9:33   ` Stefan Hanreich
2026-11-24  9:28 ` Stefan Hanreich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179551200864.3536408.9967704513250177936.b4-ty@b4 \
    --to=t.lamprecht@proxmox.com \
    --cc=g.goller@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal