[2.0rc1, API/CLI] When adding a new machine and no rack controller can connect to the BMC, no error message is displayed.
Bug #1600328 reported by
Andres Rodriguez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Lee Trager |
Bug Description
ubuntu@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
<html xmlns="http://
<head>
<title>Error: Internal server error</title>
</head>
<body>
<h2>
Internal server error.
</h2>
</body>
</html>
Related branches
lp://staging/~ltrager/maas/lp1600328
- Gavin Panella (community): Approve
-
Diff: 145 lines (+72/-6)5 files modifiedsrc/maasserver/api/machines.py (+4/-1)
src/maasserver/api/tests/test_machines.py (+22/-0)
src/maasserver/models/node.py (+6/-3)
src/maasserver/models/tests/test_node.py (+36/-1)
src/maasserver/websockets/handlers/machine.py (+4/-1)
summary: |
- [2.0rc1] Traceback when adding a machine via the API, but it is added - nonetheless + [2.0rc1, API/CLI] When adding a new machine and no rack controller can + connect to the BMC, no error message is displayed. |
Changed in maas: | |
assignee: | nobody → Jeffrey C Jones (trapnine) |
Changed in maas: | |
milestone: | none → 2.1.0 |
assignee: | Jeffrey C Jones (trapnine) → nobody |
Changed in maas: | |
milestone: | 2.1.0 → 2.1.1 |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
assignee: | nobody → Lee Trager (ltrager) |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This is the reason:
2016-07-08 14:26:11 [HTTPChannel, 6372,127. 0.0.1] 500 Error - /MAAS/api/ 2.0/machines/ python3/ dist-packages/ twisted/ web/wsgi. py", line 496, in run
appIterato r = self.applicatio n(self. environ, self.startResponse) python3/ dist-packages/ django/ core/handlers/ wsgi.py" , line 189, in __call__
response = self.get_ response( request) python3/ dist-packages/ maasserver/ utils/views. py", line 227, in get_response
response = get_response( request) python3/ dist-packages/ maasserver/ utils/views. py", line 216, in get_response
request, get_resolver(None), sys.exc_info()) python3/ dist-packages/ maasserver/ utils/views. py", line 201, in get_response get_response( request) python3/ dist-packages/ maasserver/ utils/orm. py", line 479, in __exit__
self. fire() python3/ dist-packages/ provisioningser ver/utils/ twisted. py", line 205, in wrapper python3/ dist-packages/ maasserver/ utils/async. py", line 195, in fire
self. _fire_in_ reactor( hook).wait( LONGTIME) python3/ dist-packages/ crochet/ _eventloop. py", line 231, in wait
result. raiseException( ) python3/ dist-packages/ twisted/ python/ failure. py", line 368, in raiseException with_traceback( self.tb) python3/ dist-packages/ twisted/ python/ threadpool. py", line 246, in inContext python3/ dist-packages/ twisted/ python/ threadpool. py", line 262, in <lambda>
inContext. theWork = lambda: context.call(ctx, func, *args, **kw) python3/ dist-packages/ twisted/ python/ context. py", line 118, in callWithContext text(). callWithContext (ctx, func, *args, **kw) python3/ dist-packages/ twisted/ python/ context. py", line 81, in callWithContext python3/ dist-packages/ provisioningser ver/utils/ twisted. py", line 937, in callInContext python3/ dist-packages/ maasserver/ models/ node.py" , line 2822, in _get_bmc_ client_ connection_ info
self. hostname) )
maasserver. exceptions. PowerProblem: No rack controllers can access the BMC of node: baubas
Traceback (most recent call last):
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
--- <exception caught here> ---
File "/usr/lib/
return django_
File "/usr/lib/
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
raise self.value.
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/
Since no power parameters are being specified, this happens.