Ask Your Question
0

Cannot start neutron-server if I set the mechanism_driver to arista

asked 2015-11-06 04:21:46 -0500

toby91 gravatar image

We want to use the Arista switches in our openstack infrastructure.

For the time being we have MLAG configuration in our two Arista switches. So basically we want to have those vlan/vxlan be automatically created to our Arista devices as well.

So setting the mechanism_driver to arista: sudo grep arista /etc/neutron/plugins/ml2/ml2_conf.ini mechanism_drivers =arista

neutron-server will not start and it crashes:

2015-11-05 23:49:52.061 277680 INFO neutron.common.config [-] Logging enabled!
2015-11-05 23:49:52.061 277680 INFO neutron.common.config [-] /usr/bin/neutron-server version 2015.1.1
2015-11-05 23:49:52.068 277680 WARNING oslo_config.cfg [-] Option "nova_region_name" from group "DEFAULT" is deprecated. Use option "region_name" from group "nova".

2015-11-05 23:49:52.069 277680 INFO neutron.common.config [-] Config paste file: /usr/share/neutron/api-paste.ini
2015-11-05 23:49:52.093 277680 INFO neutron.manager [-] Loading core plugin: ml2
2015-11-05 23:49:52.254 277680 INFO neutron.plugins.ml2.managers [-] Configured type driver names: ['vxlan', 'gre', 'flat', 'vlan', 'local']
2015-11-05 23:49:52.258 277680 INFO neutron.plugins.ml2.drivers.type_flat [-] Arbitrary flat physical_network names allowed
2015-11-05 23:49:52.264 277680 INFO neutron.plugins.ml2.drivers.type_vlan [-] Network VLAN ranges: {'bond2': [(100, 299)]}
2015-11-05 23:49:52.271 277680 INFO neutron.plugins.ml2.drivers.type_local [-] ML2 LocalTypeDriver initialization complete
2015-11-05 23:49:52.279 277680 INFO neutron.plugins.ml2.managers [-] Loaded type driver names: ['flat', 'vlan', 'gre', 'local', 'vxlan']
2015-11-05 23:49:52.280 277680 INFO neutron.plugins.ml2.managers [-] Registered types: ['flat', 'vlan', 'local', 'gre', 'vxlan']
2015-11-05 23:49:52.280 277680 INFO neutron.plugins.ml2.managers [-] Tenant network_types: ['vxlan', 'vlan']
2015-11-05 23:49:52.281 277680 INFO neutron.plugins.ml2.managers [-] Configured extension driver names: []
2015-11-05 23:49:52.281 277680 INFO neutron.plugins.ml2.managers [-] Loaded extension driver names: []
2015-11-05 23:49:52.282 277680 INFO neutron.plugins.ml2.managers [-] Registered extension drivers: []
2015-11-05 23:49:52.282 277680 INFO neutron.plugins.ml2.managers [-] Configured mechanism driver names: ['arista']
2015-11-05 23:49:52.300 277680 ERROR stevedore.extension [-] Could not load 'arista': No module named AristaDriver
2015-11-05 23:49:52.300 277680 ERROR stevedore.extension [-] No module named AristaDriver
2015-11-05 23:49:52.300 277680 TRACE stevedore.extension Traceback (most recent call last):
2015-11-05 23:49:52.300 277680 TRACE stevedore.extension   File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 162, in _load_plugins
2015-11-05 23:49:52.300 277680 TRACE stevedore.extension     verify_requirements,
2015-11-05 23:49:52.300 277680 TRACE stevedore.extension   File "/usr/lib/python2.7/site-packages/stevedore/named.py", line 123, in _load_one_plugin
2015-11-05 23:49:52.300 277680 TRACE stevedore.extension     verify_requirements,
2015-11-05 23:49:52.300 277680 TRACE stevedore.extension   File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 185, in _load_one_plugin
2015-11-05 23:49:52.300 277680 TRACE stevedore.extension     plugin = ep.load(require=verify_requirements)
2015-11-05 23:49:52.300 277680 TRACE stevedore.extension   File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
2015-11-05 23:49 ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-11-07 02:31:31 -0500

Obviously it's not installed, or not correctly. Start with https://wiki.openstack.org/wiki/Arist..., and also check out the Arista deployment guide.

edit flag offensive delete link more

Comments

Thanks for the comment, actually that's the link that I was using and followed what arista provided too. I'm wondering if your using arista as well in your openstack infrastructure.

toby91 gravatar imagetoby91 ( 2015-11-08 06:40:56 -0500 )edit
0

answered 2016-07-08 02:46:21 -0500

Jono gravatar image

Hi, I had exactly the same issue. I traced it to the file:-

/usr/lib/python2.7/site-packages/networking_arista-2015.1.5.egg-info/entry_points.txt

(The path to this might be different on your system)

It contained the line

arista = neutron.plugins.ml2.drivers.arista.mechanism_arista.AristaDriver

AristaDriver is a class located in the mechanism_arista module, so the last '.' should be a ':' so I changed it to:-

arista = neutron.plugins.ml2.drivers.arista.mechanism_arista:AristaDriver

This allows the module to load successfully, hope this helps.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-11-05 09:19:50 -0500

Seen: 344 times

Last updated: Nov 07 '15