[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
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Lee Trager

Bug Description

ubuntu@maas00:/etc/apt$ maas admin machines create architecture=amd64 subarchitecture=generic min_hwe_kernel= mac_addresses=2c:59:e5:47:f7:94 hostname=baubas power_type=ipmi
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>Error: Internal server error</title>
  </head>
  <body>
    <h2>
      Internal server error.
    </h2>
  </body>
</html>

Related branches

Revision history for this message
Andres Rodriguez (andreserl) wrote :

This is the reason:

2016-07-08 14:26:11 [HTTPChannel,6372,127.0.0.1] 500 Error - /MAAS/api/2.0/machines/
        Traceback (most recent call last):
          File "/usr/lib/python3/dist-packages/twisted/web/wsgi.py", line 496, in run
            appIterator = self.application(self.environ, self.startResponse)
          File "/usr/lib/python3/dist-packages/django/core/handlers/wsgi.py", line 189, in __call__
            response = self.get_response(request)
          File "/usr/lib/python3/dist-packages/maasserver/utils/views.py", line 227, in get_response
            response = get_response(request)
          File "/usr/lib/python3/dist-packages/maasserver/utils/views.py", line 216, in get_response
            request, get_resolver(None), sys.exc_info())
        --- <exception caught here> ---
          File "/usr/lib/python3/dist-packages/maasserver/utils/views.py", line 201, in get_response
            return django_get_response(request)
          File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 479, in __exit__
            self.fire()
          File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 205, in wrapper
            return func(*args, **kwargs)
          File "/usr/lib/python3/dist-packages/maasserver/utils/async.py", line 195, in fire
            self._fire_in_reactor(hook).wait(LONGTIME)
          File "/usr/lib/python3/dist-packages/crochet/_eventloop.py", line 231, in wait
            result.raiseException()
          File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 368, in raiseException
            raise self.value.with_traceback(self.tb)
          File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 246, in inContext
            result = inContext.theWork()
          File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 262, in <lambda>
            inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
          File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 118, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 81, in callWithContext
            return func(*args,**kw)
          File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 937, in callInContext
            return func(*args, **kwargs)
          File "/usr/lib/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

Since no power parameters are being specified, this happens.

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.
Revision history for this message
Mike Pontillo (mpontillo) wrote :

That error message seems misleading. We can't access the BMC because no power information had been provided, right?

Changed in maas:
status: New → Triaged
importance: Undecided → Medium
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 report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.