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>
Fix proposed to branch: master /review. openstack. org/123640
Review: https:/