Cannot disable DHCP if you remove the subnet first ("Cannot configure DHCP: At least one dynamic range is required.")
Bug #1583392 reported by
Trent Lloyd
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Mike Pontillo |
Bug Description
You cannot disable DHCP on a VLAN which no longer has a subnet.
The following error occurs if you attempt to do so:
Cannot configure DHCP: At least one dynamic range is required
Steps to reproduce
(1) Install MAAS
(2) Setup DHCP on the default vlan/subnet
(3) Delete the subnet
(4) Optionally: Add the subnet under a new vlan, attempt to enable DHCP and notice that the rack controller cannot be selected
(5) Select "Disable DHCP" from the VLAN page
Related branches
lp://staging/~mpontillo/maas/subnet-restrictions-when-dhcp-enabled-bug-1583392
- Gavin Panella (community): Approve
-
Diff: 50 lines (+16/-2)3 files modifiedsrc/maasserver/models/subnet.py (+8/-0)
src/maasserver/models/tests/test_subnet.py (+5/-0)
src/maasserver/testing/factory.py (+3/-2)
Changed in maas: | |
milestone: | none → 2.0.0 |
importance: | Undecided → Critical |
Changed in maas: | |
status: | New → Triaged |
Changed in maas: | |
assignee: | nobody → Mike Pontillo (mpontillo) |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Version: xenial/main 2.0.0~beta3+ bzr4941- 0ubuntu1