From my last tests, if we try to use dhclient in the preseed files to release the IPs after an enlistment/commission, the DHCP server will still keep the lease set to 'active' and not 'free' until the 10 min lease time expires. Regarding the "Observed" state: when the lease is released/expired, it's removed from the "Used" list via maas-dhcp-helper. But in the release case, the lease is still active in the DHCP server until the expiration time hits, rendering it unusable for other machines until then.
So, in short, a lease can't be re-used until it expires (10 mins).
Is it possible to shorten this time by reducing the timeout or forcing the server to release the IP?
From my last tests, if we try to use dhclient in the preseed files to release the IPs after an enlistment/ commission, the DHCP server will still keep the lease set to 'active' and not 'free' until the 10 min lease time expires. Regarding the "Observed" state: when the lease is released/expired, it's removed from the "Used" list via maas-dhcp-helper. But in the release case, the lease is still active in the DHCP server until the expiration time hits, rendering it unusable for other machines until then.
So, in short, a lease can't be re-used until it expires (10 mins).
Is it possible to shorten this time by reducing the timeout or forcing the server to release the IP?