[1.8b1 devices] Can't add a device that has IP address that it is within the wider range MAAS manages, but not within Dynamic/Static range MAAS manages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Unassigned |
Bug Description
MAAS is configured to manage a network that's 10.245.0.10/18.
The Dynamic Range that MAAS manages is:
10.245.32.100 - 10.245.48.152
The Static Range that MAAS manages is:
10.245.0.152 - 10.245.4.255
I have a device that has a manually configured IP address of 10.245.0.150. When trying to add this device with this IP address, I'm not allow with 'Static IP' nor 'External IP'.
Given that 10.245.0.150 is part of the network that MAAS manages, I should be able to add a device and configured it with 'Static IP' address, specifying that the IP address I want to reserve is 10.245.0.150 and a hostmap should be automatically created. I think we need to validate that the IP address is not within the dynamic range, but rather, it is within the static range that MAAS manages, or the rest of the range.
Related branches
- Raphaël Badin (community): Approve
- Andres Rodriguez (community): Needs Information
-
Diff: 913 lines (+436/-103)13 files modifiedsrc/maasserver/api/ip_addresses.py (+5/-3)
src/maasserver/api/tests/test_ipaddresses.py (+22/-5)
src/maasserver/api/tests/test_node.py (+5/-3)
src/maasserver/models/macaddress.py (+3/-0)
src/maasserver/models/staticipaddress.py (+35/-16)
src/maasserver/models/tests/test_staticipaddress.py (+109/-45)
src/maasserver/static/js/angular/controllers/add_device.js (+9/-5)
src/maasserver/static/js/angular/controllers/tests/test_add_device.js (+13/-0)
src/maasserver/static/js/angular/services/tests/test_validation.js (+164/-15)
src/maasserver/static/js/angular/services/validation.js (+48/-1)
src/maasserver/tests/test_forms_nodegroupinterface.py (+3/-1)
src/maasserver/tests/test_forms_validate_new_static_ip_range.py (+18/-8)
src/maasserver/tests/test_node_action.py (+2/-1)
description: | updated |
Changed in maas: | |
importance: | Undecided → Critical |
status: | New → Triaged |
milestone: | none → 1.8.0 |
tags: | added: oil |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |