DHCP leases are not released at the end of commissioning and possibly enlistment
Bug #1386517 reported by
Julian Edwards
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Julian Edwards |
Bug Description
After a node finishes commissioning, an active lease is still present for the NIC on which it booted. This is also present in the web UI on the node page.
This is rather wasteful of leases if not many IPs are available.
There's two options:
1. Add a curtin late_command to dhclient -r
2. Force a lease expiration using Omshell.
#2 is probably more of a robust solution here.
Related branches
lp:~julian-edwards/maas/release-lease-after-ephemeral-boot-bug-1386517
- Graham Binns (community): Approve
-
Diff: 136 lines (+53/-7)4 files modifiedsrc/metadataserver/api.py (+6/-0)
src/metadataserver/tests/test_api.py (+23/-1)
src/provisioningserver/rpc/dhcp.py (+8/-0)
src/provisioningserver/rpc/tests/test_dhcp.py (+16/-6)
description: | updated |
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → next |
tags: | added: dhcp |
Changed in maas: | |
milestone: | next → 1.7.1 |
Changed in maas: | |
assignee: | nobody → Julian Edwards (julian-edwards) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Our original plan was to issue a dhclient -r; are you concerned that crashes mid-stream will leave the lease active?
What happens if we run out of active leases? ISTR that the old behaviour was that MAAS just gave out any lease back; I guess that's something we want to avoid?