"No rack controllers can access the BMC of node: <node name>" when using OpenStack nova power driver

Bug #1662404 reported by Yoshi Kadokawa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Unassigned
2.1
Won't Fix
Medium
Unassigned

Bug Description

Testing MAAS on OpenStack environment, but got Power error from the first node.
Found the following error in /var/log/maas/regiond.log

2016-11-10 12:41:38 [-] Failed to update power state of machine.
        Traceback (most recent call last):
          File "/usr/lib/python3/dist-packages/twisted/internet/base.py", line 1203, in mainLoop
            self.runUntilCurrent()
          File "/usr/lib/python3/dist-packages/twisted/internet/base.py", line 798, in runUntilCurrent
            f(*a, **kw)
          File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 434, in errback
            self._startRunCallbacks(fail)
          File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 501, in _startRunCallbacks
            self._runCallbacks()
        --- <exception caught here> ---
          File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 588, in _runCallbacks
            current.result = callback(current.result, *args, **kw)
          File "/usr/lib/python3/dist-packages/maasserver/websockets/handlers/machine.py", line 799, in eb_unknown
            failure.trap(UnknownPowerType, NotImplementedError)
          File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 342, in trap
            self.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 2897, in _get_bmc_client_connection_info
            self.hostname))
        maasserver.exceptions.PowerProblem: No rack controllers can access the BMC of node: test

Related branches

Revision history for this message
Yoshi Kadokawa (yoshikadokawa) wrote :

I have attached a possible fix for this.

Revision history for this message
Blake Rouse (blake-rouse) wrote :

Did this fix solve your issue?

If so, please propose a branch with your fix and unit tests so we can land it.

Changed in maas:
milestone: none → 2.2.0
importance: Undecided → Medium
status: New → Triaged
Changed in maas:
status: Triaged → 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.