[2.2, trunk, UI] Unable to change device IP because 'subnet' is listed incorrectly on 'edit'.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
LaMont Jones |
Bug Description
I was trying to update the IP I gave to a device, and while doing so via the WebUI, I was unable to and no error was surfaced.
1. I added a device with IP 10.90.90.2.
2. I went to the device details page, interface section. And it lists:
MAC IP Assignment Subnet IP Address
aa:bb:cc:dd:ee:ff Static 10.90.90.0/24 10.90.90.2
3. I click on the interface to 'edit' it, and the following shows:
IP Assignment: Static
Subnet: 192.168.1.0/24
IP Address: 10.90.90.2
4. Obviously, I didn't notice that the 'Subnet' was automatically changed on edit, which caused the following error while trying to save. (I'll file a different bug for the lack of error surface).
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
return target()
File "/usr/lib/
task()
File "/usr/lib/
task()
--- <exception caught here> ---
File "/usr/lib/
result = inContext.theWork()
File "/usr/lib/
inContext.
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
return func_outside_
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwds)
File "/usr/lib/
self.
File "/usr/lib/
INTERFACE_
File "/usr/lib/
alloc_
File "/usr/lib/
"IP address is not in the given subnet '%s'." % subnet)
maasserver.
Related branches
- Andres Rodriguez (community): Approve
-
Diff: 157 lines (+50/-10)3 files modifiedsrc/maasserver/static/js/angular/controllers/node_details_networking.js (+12/-2)
src/maasserver/static/js/angular/controllers/tests/test_node_details_networking.js (+31/-1)
src/maasserver/static/partials/node-details.html (+7/-7)
summary: |
- [2.2, trunk] Changing the IP of a device results in error + [2.2, trunk] Unable to change device IP because 'subnet' is listed + incorrectly on 'edit'. |
description: | updated |
description: | updated |
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → LaMont Jones (lamont) |
milestone: | none → 2.2.0 |
summary: |
- [2.2, trunk] Unable to change device IP because 'subnet' is listed + [2.2, trunk, UI] Unable to change device IP because 'subnet' is listed incorrectly on 'edit'. |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |