Editing/creating a cluster interface can cause an internal server error if cluster disconnected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Gavin Panella |
Bug Description
The following exceptions were seen in the log after doing the following:
- Installing MAAS with a fresh database
- Importing boot images
- Adding a chassis with 2 nodes
- Attempting commissioning (which fails since the cluster is unmanaged)
*** At this point, I think a network has automatically been created,
*** and the two nodes have been added to it
- Editing the cluster interface to provide dynamic and static ranges,
and change it to DNS+DHCP managed
2015-04-01 19:04:17 [-] 127.0.0.1 - - [02/Apr/
/MAAS/
HTTP/1.1" 200 2804
"http://
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/
2015-04-01 19:04:29 [maas] WARNING: Failed to create Network when
adding/editing cluster interface maas-eth0 with error [{'ip':
[u'Network with this Ip already exists.'], 'name': [u'Network with
this Name already exists.']}]. This is OK if it already exists.
2015-04-01 19:04:29 [HTTPChannel,
/MAAS/
Traceback (most recent call last):
File ".../twisted/
appIterator = self.applicatio
File ".../django/
response = self.get_
File ".../maasserver
response = get_response(
File ".../maasserver
request, get_resolver(None), sys.exc_info())
--- <exception caught here> ---
File ".../maasserver
return django_
File ".../maasserver
self.fire()
File ".../provisioni
return func(*args, **kwargs)
File ".../maasserver
self.
File ".../crochet/
result.
File "<string>", line 2, in raiseException
This causes a generic "Internal server error" to be seen when saving the
cluster interface configuration.
Related branches
- Blake Rouse (community): Approve
-
Diff: 475 lines (+204/-39)4 files modifiedsrc/maasserver/dhcp.py (+31/-12)
src/maasserver/rpc/regionservice.py (+35/-3)
src/maasserver/rpc/tests/test_regionservice.py (+76/-0)
src/maasserver/tests/test_dhcp.py (+62/-24)
Changed in maas: | |
importance: | Undecided → High |
description: | updated |
Changed in maas: | |
status: | New → Incomplete |
Changed in maas: | |
status: | New → Triaged |
assignee: | nobody → Gavin Panella (allenap) |
status: | Triaged → In Progress |
description: | updated |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
This is a crash, it should be critical.