You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bridge + dhcp IPAM: CNI DEL never sends a DHCPRELEASE #1324
which requires the link to exist: client.go#L204 (net.InterfaceByName)
By step 7 the link is already gone, so the release fails and no DHCPRELEASE is sent. On current main, WithUnicast also tries to bind the leased IP, which is gone as well:
eth0: failed to release DHCP lease: unable to apply option:
unable to start listening UDP port: listen udp4 192.168.1.5:68:
bind: cannot assign requested address
The failure is only logged inside the daemon; DHCP.Release still returns success, so CNI DEL reports no error. This has been broken since #702.
Reproduction
bridge network with "ipam": {"type": "dhcp"} and a DHCP server reachable over the bridge
run dnsmasq with --log-dhcp
CNI ADD, then CNI DEL
result: DHCPACK is logged on ADD; on DEL the daemon logs the failure above and dnsmasq never logs DHCPRELEASE
I have a regression test that drives the real bridge and dhcp binaries and asserts on the dnsmasq log; please check PR #1323, and run the DHCP unit tests (remember to remove the skip from that test).
Activity