MAAS returns HTTP/500 when adding a second managed interface to cluster controller
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Raphaël Badin | ||
1.2 |
Fix Released
|
Critical
|
Raphaël Badin | ||
1.3 |
Fix Released
|
Critical
|
Raphaël Badin |
Bug Description
1. Description of the problem:
Adding a second managed interface to a MAAS cluster controller is forbidden by design but permitted by interface.
2. Ubuntu release, software version, Release Number and Architecture of the selected components.
12.04.3 LTS
ii maas 1.2+bzr1373+
ii maas-cli 1.2+bzr1373+
ii maas-cluster-
ii maas-common 1.2+bzr1373+
ii maas-region-
ii python-django-maas 1.2+bzr1373+
ii python-maas-client 1.2+bzr1373+
ii python-
3. How reproducible is the problem?
every time
4. Steps to Reproduce:
4.1. Go on WebUI and click on the gears
4.2. Click on edit the cluster controller
4.3. Check that there is a managed interface
4.3. Click on add interface
4.4. Fill in all the details and choose managed interface
4.5. Click on save
a. Actual Results: HTTP error 500
b. Expected Results: MAAS UI not allow such configuration if it goes against the design/
5. Known Workaround:
None atm
6. Additional information:
Trace from maas log showing that validation failed:
ERROR 2013-10-03 18:15:49,465 django.request Internal Server Error: /MAAS/clusters/
Traceback (most recent call last):
File "/usr/lib/
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/
return view_func(request, *args, **kwargs)
File "/usr/lib/
return self.dispatch(
File "/usr/lib/
return handler(request, *args, **kwargs)
File "/usr/lib/
return super(BaseCreat
File "/usr/lib/
return self.form_
File "/usr/lib/
self.object = form.save(
File "/usr/lib/
interface.
File "/usr/lib/
self.
File "/usr/lib/
raise ValidationError
ValidationError: {u'management': [u'Another managed interface already exists for this cluster.']}
Related branches
- Jeroen T. Vermeulen (community): Approve
-
Diff: 129 lines (+31/-24)5 files modifiedsrc/maasserver/api.py (+3/-3)
src/maasserver/forms.py (+3/-10)
src/maasserver/tests/test_forms.py (+3/-10)
src/maasserver/tests/test_views_settings_clusters.py (+15/-0)
src/maasserver/views/settings_clusters.py (+7/-1)
- Raphaël Badin (community): Approve
-
Diff: 129 lines (+31/-24)5 files modifiedsrc/maasserver/api.py (+3/-3)
src/maasserver/forms.py (+3/-10)
src/maasserver/tests/test_forms.py (+3/-10)
src/maasserver/tests/test_views_settings_clusters.py (+15/-0)
src/maasserver/views/settings_clusters.py (+7/-1)
- Raphaël Badin (community): Approve
-
Diff: 129 lines (+31/-24)5 files modifiedsrc/maasserver/api.py (+3/-3)
src/maasserver/forms.py (+3/-10)
src/maasserver/tests/test_forms.py (+3/-10)
src/maasserver/tests/test_views_settings_clusters.py (+15/-0)
src/maasserver/views/settings_clusters.py (+7/-1)
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → Critical |
Changed in maas: | |
milestone: | none → 13.10 |
assignee: | nobody → Raphaël Badin (rvb) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | Fix Committed → Fix Released |