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

Bug #1640671 reported by Yoshi Kadokawa
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
maas (Ubuntu)
New
Undecided
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

Tags: patch
description: updated
Revision history for this message
Yoshi Kadokawa (yoshikadokawa) wrote :

It seems import_module was not enough, and could not call the specified method.
I have done a quick fix for this, and also added some stability fix when obtaining power query after commission of deploy.
I will add the diff later.

Revision history for this message
Yoshi Kadokawa (yoshikadokawa) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "fix-nova-ppowerdriver.diff" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Bruno Carvalho (brunowcs) wrote :
Download full text (8.0 KiB)

I´m with same problem in version MaaS 2.4 with Openstack newton.

Jul 30 20:10:03 uat-l-srv-90 maas.node: [warn] teste-nework-1: Could not change the power state. No rack controllers can access the BMC.
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: 2018-07-30 20:10:03 maasserver.websockets.handlers.machine: [critical] Failed to update power state of machine.
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011Traceback (most recent call last):
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 File "/usr/lib/python3/dist-packages/twisted/internet/asyncioreactor.py", line 267, in run
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 self._asyncioEventloop.run_forever()
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 File "/usr/lib/python3/dist-packages/twisted/internet/asyncioreactor.py", line 290, in run
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 f(*args, **kwargs)
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 500, in errback
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 self._startRunCallbacks(fail)
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 567, in _startRunCallbacks
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 self._runCallbacks()
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011--- <exception caught here> ---
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 653, in _runCallbacks
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 current.result = callback(current.result, *args, **kw)
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 File "/usr/lib/python3/dist-packages/maasserver/websockets/handlers/machine.py", line 862, in eb_unknown
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 failure.trap(UnknownPowerType, NotImplementedError)
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 359, in trap
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 self.raiseException()
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 385, in raiseException
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 raise self.value.with_traceback(self.tb)
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 250, in inContext
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 result = inContext.theWork()
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 266, in <lambda>
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 122, in callWithContext
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 return self.currentContext().callWithContext(ctx, func, *args, **kw)
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 85, in callWithContext
Jul 30 20:10:03 uat-l-srv-90 sh[1330]: #011 return func(*args,**kw)
Jul 30 20:10:03 ua...

Read more...

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.