[2.0b6, UI] Can't add a VLAN over the WebUI.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Blake Rouse |
Bug Description
[Description]
Adding a VLAN over the WebUI results in a nasty traceback in the logs, and an error in the WebUI.
[Reproduce]
1. Go to networks page
2. Add VLAN
3. Input name, VID, Select Fabric.
4. Click on Add
[Output]
You will see "Form requires either a instance or a fabric." in the UI.
And you will the logs has a traceback:
2016-06-06 12:21:13 [-] Error on request (65) vlan.create: Form requires either a instance or a fabric.
Traceback (most recent call last):
File "/usr/lib/
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/
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
File "/usr/lib/
return 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/
form = form_class(
File "/usr/lib/
raise ValueError("Form requires either a instance or a fabric.")
Related branches
- Mike Pontillo (community): Approve
-
Diff: 1825 lines (+544/-973)14 files modifiedsrc/maasserver/static/css/maas-styles.css (+1/-1)
src/maasserver/static/js/angular/controllers/networks_list.js (+60/-153)
src/maasserver/static/js/angular/controllers/tests/test_networks_list.js (+298/-224)
src/maasserver/static/js/angular/directives/maas_obj_form.js (+13/-5)
src/maasserver/static/js/angular/directives/model_field.js (+0/-159)
src/maasserver/static/js/angular/directives/tests/test_maas_obj_form.js (+37/-1)
src/maasserver/static/js/angular/directives/tests/test_model_field.js (+0/-331)
src/maasserver/static/partials/networks-list.html (+88/-89)
src/maasserver/static/partials/space-details.html (+2/-2)
src/maasserver/static/partials/subnet-details.html (+8/-6)
src/maasserver/static/scss/maas/components/_forms.scss (+4/-1)
src/maasserver/views/combo.py (+0/-1)
src/maasserver/websockets/handlers/tests/test_vlan.py (+20/-0)
src/maasserver/websockets/handlers/vlan.py (+13/-0)
Changed in maas: | |
importance: | Undecided → Critical |
milestone: | none → 2.0.0 |
Changed in maas: | |
assignee: | nobody → Blake Rouse (blake-rouse) |
status: | New → Triaged |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |