Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Devstack with GBP and Cisco ACI : neutron.common.config KeyError

I am following (or trying at least) : https://wiki.openstack.org/wiki/GroupBasedPolicy/InstallCiscoACI

Which is for DevStack Juno + GBP + Cisco ACI on Ubuntu 14.04

I get mostly past stack.sh, but when it comes to the moment of truth (neutron coming up) I get the following error:

2016-03-09 12:06:24.097 27529 TRACE neutron.common.config     self.extensions = [self[n] for n in self._names]
2016-03-09 12:06:24.097 27529 TRACE neutron.common.config   File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 283, in __getitem__
2016-03-09 12:06:24.097 27529 TRACE neutron.common.config     return self._extensions_by_name[name]
2016-03-09 12:06:24.097 27529 TRACE neutron.common.config KeyError: 'apic'
2016-03-09 12:06:24.097 27529 TRACE neutron.common.config
2016-03-09 12:06:24.100 27529 ERROR neutron.service [-] Unrecoverable error: please check log for details.
2016-03-09 12:06:24.100 27529 TRACE neutron.service Traceback (most recent call last):
2016-03-09 12:06:24.100 27529 TRACE neutron.service   File "/opt/stack/neutron/neutron/service.py", line 102, in serve_wsgi
2016-03-09 12:06:24.100 27529 TRACE neutron.service     service.start()
2016-03-09 12:06:24.100 27529 TRACE neutron.service   File "/opt/stack/neutron/neutron/service.py", line 73, in start
2016-03-09 12:06:24.100 27529 TRACE neutron.service     self.wsgi_app = _run_wsgi(self.app_name)
2016-03-09 12:06:24.100 27529 TRACE neutron.service   File "/opt/stack/neutron/neutron/service.py", line 168, in _run_wsgi
2016-03-09 12:06:24.100 27529 TRACE neutron.service     app = config.load_paste_app(app_name)
2016-03-09 12:06:24.100 27529 TRACE neutron.service   File "/opt/stack/neutron/neutron/common/config.py", line 190, in load_paste_app
2016-03-09 12:06:24.100 27529 TRACE neutron.service     raise RuntimeError(msg)
2016-03-09 12:06:24.100 27529 TRACE neutron.service RuntimeError: Unable to load neutron from configuration file /etc/neutron/api-paste.ini.
2016-03-09 12:06:24.100 27529 TRACE neutron.service
ERROR: Unable to load neutron from configuration file /etc/neutron/api-paste.ini.
q-svc failed to start

Notably: TRACE neutron.common.config KeyError: 'apic'

As per the instructions, my local.conf has has the following lines:

[[post-config|/etc/neutron/neutron.conf]] [group_policy] policy_drivers=implicit_policy,apic extension_drivers=proxy_group

And is actually the only occurrence of the term "apic" in my configs.

Does anyone have any ideas on how to trace this back any further? Ie, how does the [group_policy] section work, where can I check what it's looking for?

Devstack with GBP and Cisco ACI : neutron.common.config KeyError

I am following (or trying at least) : https://wiki.openstack.org/wiki/GroupBasedPolicy/InstallCiscoACI

Which is for DevStack Juno + GBP + Cisco ACI on Ubuntu 14.04

I get mostly past stack.sh, but when it comes to the moment of truth (neutron coming up) I get the following error:

2016-03-09 12:06:24.097 27529 TRACE neutron.common.config     self.extensions = [self[n] for n in self._names]
2016-03-09 12:06:24.097 27529 TRACE neutron.common.config   File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 283, in __getitem__
2016-03-09 12:06:24.097 27529 TRACE neutron.common.config     return self._extensions_by_name[name]
2016-03-09 12:06:24.097 27529 TRACE neutron.common.config KeyError: 'apic'
2016-03-09 12:06:24.097 27529 TRACE neutron.common.config
2016-03-09 12:06:24.100 27529 ERROR neutron.service [-] Unrecoverable error: please check log for details.
2016-03-09 12:06:24.100 27529 TRACE neutron.service Traceback (most recent call last):
2016-03-09 12:06:24.100 27529 TRACE neutron.service   File "/opt/stack/neutron/neutron/service.py", line 102, in serve_wsgi
2016-03-09 12:06:24.100 27529 TRACE neutron.service     service.start()
2016-03-09 12:06:24.100 27529 TRACE neutron.service   File "/opt/stack/neutron/neutron/service.py", line 73, in start
2016-03-09 12:06:24.100 27529 TRACE neutron.service     self.wsgi_app = _run_wsgi(self.app_name)
2016-03-09 12:06:24.100 27529 TRACE neutron.service   File "/opt/stack/neutron/neutron/service.py", line 168, in _run_wsgi
2016-03-09 12:06:24.100 27529 TRACE neutron.service     app = config.load_paste_app(app_name)
2016-03-09 12:06:24.100 27529 TRACE neutron.service   File "/opt/stack/neutron/neutron/common/config.py", line 190, in load_paste_app
2016-03-09 12:06:24.100 27529 TRACE neutron.service     raise RuntimeError(msg)
2016-03-09 12:06:24.100 27529 TRACE neutron.service RuntimeError: Unable to load neutron from configuration file /etc/neutron/api-paste.ini.
2016-03-09 12:06:24.100 27529 TRACE neutron.service
ERROR: Unable to load neutron from configuration file /etc/neutron/api-paste.ini.
q-svc failed to start

Notably: TRACE neutron.common.config KeyError: 'apic'

As per the instructions, my local.conf has has the following lines:

[[post-config|/etc/neutron/neutron.conf]] [group_policy] policy_drivers=implicit_policy,apic extension_drivers=proxy_group

And is actually the only occurrence of the term "apic" in my configs.

Does anyone have any ideas on how to trace this back any further? Ie, how does the [group_policy] section work, where can I check what it's looking for?

Update: From what I've been able to read-up on, the apic group policy is (should be?) native to Juno...