Skip to content

dhcp: add bridge teardown DHCPRELEASE reproducer - #1323

Open
maiqueb wants to merge 1 commit into
containernetworking:mainfrom
maiqueb:fix-bridge+dhcp-ipam-iprelease
Open

maiqueb wants to merge 1 commit into
containernetworking:mainfrom
maiqueb:fix-bridge+dhcp-ipam-iprelease

Conversation

@maiqueb

@maiqueb maiqueb commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

The bridge plugin tears down the container interface before invoking IPAM DEL. The DHCP daemon's release path then cannot create an nclient4 client - the interface and its leased address are already gone - so no DHCPRELEASE is sent when a bridge network is deleted.

Add an end-to-end test that drives the real bridge plugin against the DHCP daemon and dnsmasq (with --log-dhcp), and asserts the server observes a DHCPRELEASE after bridge DEL. Against the current code the daemon logs "failed to release DHCP lease", so the suite is marked XDescribe until the bridge teardown ordering is fixed.

The bridge plugin tears down the container interface before invoking
IPAM DEL.  The DHCP daemon's release path then cannot create an nclient4
client - the interface and its leased address are already gone - so no
DHCPRELEASE is sent when a bridge network is deleted.

Add an end-to-end test that drives the real bridge plugin against the
DHCP daemon and dnsmasq (with --log-dhcp), and asserts the server
observes a DHCPRELEASE after bridge DEL.  Against the current code the
daemon logs "failed to release DHCP lease", so the suite is marked
XDescribe until the bridge teardown ordering is fixed.

Signed-off-by: Miguel Duarte Barroso <mdbarroso@redhat.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant