yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #26224
[Bug 1373238] Re: load extension lead to error calling 'volumes': 'NoneType' object has no attribute 'controller' for v3 api
** Changed in: nova
Status: Fix Committed => Fix Released
** Changed in: nova
Milestone: None => kilo-1
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1373238
Title:
load extension lead to error calling 'volumes': 'NoneType' object has
no attribute 'controller' for v3 api
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
Add a new plugin lead to following error, the root cause is servers was loaded after volumes
so the inherits.controller is None
if resource.inherits:
inherits = self.resources.get(resource.inherits)
if not resource.controller:
resource.controller = inherits.controller
ERROR [stevedore.extension] error calling 'volumes': 'NoneType' object has no attribute 'controller'
ERROR [stevedore.extension] 'NoneType' object has no attribute 'controller'
Traceback (most recent call last):
File "/home/jichen/git/nova/.venv/local/lib/python2.7/site-packages/stevedore/extension.py", line 248, in _invoke_one_plugin
response_callback(func(e, *args, **kwds))
File "/home/jichen/git/nova/nova/api/openstack/__init__.py", line 376, in _register_resources
resource.controller = inherits.controller
AttributeError: 'NoneType' object has no attribute 'controller'
DEBUG [nova.api.openstack] Running _register_resources on <nova.api.openstack.compute.plugins.v3.servers.Servers object at 0xb484d6c>
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1373238/+subscriptions
References