Comment 4 for bug 1806770

Revision history for this message
Arjun Baindur (abaindur) wrote :

You wont see the DHCP release packets, because the agent is invoking dhcp_release utility within the namespace. So packet never ingresses or egresses the qdhcp namespace. Its received by dnsmasq. You can confirm this by:

1. Observing /var/log/messages - you will see a dnsmasq log for DHCPRELEASE for both the IP of VM you deleted and VM which has a lease w client ID

2. Checking the dnsmasq leases file for the network (to find its location, ps ax | grep <netuuid> and it will be one of the args to dnsmasq process). Confirm prior to deletion, an entry for vm0 is present and with a client ID. After deleting the other VM, dnsmasq will remove this entry from leases file. You should no longer see anything if you grep for its IP.

3. Add logs of your own to dhcp agent in the _release_unused_leases() function (enabling debug might be sufficient). You can confirm DHCP agent is exec'ing dhcp_release for the untouched VM's IP

Also, you only have 1 dhcp server right? on setup w multiple dhcp per network, only 1 server will actually have the lease.