Error loading interface driver 'neutron.agent.linux.interface.Bri dgeInterfaceDriver'

Bug #1773551 reported by LittleMice
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Invalid
Undecided
Unassigned

Bug Description

ERROR message below:

2018-05-27 00:00:59.541 11767 ERROR neutron_lib.utils.runtime [-] Error loading class by alias: NoMatches: No 'neutron.interface_dri vers' driver found, looking for 'neutron.agent.linux.interface.BridgeInterfaceDriver'

2018-05-27 00:00:59.541 11767 ERROR neutron_lib.utils.runtime Traceback (most recent call last):

2018-05-27 00:00:59.541 11767 ERROR neutron_lib.utils.runtime File "/usr/lib/python2.7/dist-packages/neutron_lib/utils/runtime.py" , line 46, in load_class_by_alias_or_classname

2018-05-27 00:00:59.541 11767 ERROR neutron_lib.utils.runtime namespace, name, warn_on_missing_entrypoint=False)

2018-05-27 00:00:59.541 11767 ERROR neutron_lib.utils.runtime File "/usr/lib/python2.7/dist-packages/stevedore/driver.py", line 61 , in __init__

2018-05-27 00:00:59.541 11767 ERROR neutron_lib.utils.runtime warn_on_missing_entrypoint=warn_on_missing_entrypoint

2018-05-27 00:00:59.541 11767 ERROR neutron_lib.utils.runtime File "/usr/lib/python2.7/dist-packages/stevedore/named.py", line 89, in __init__

2018-05-27 00:00:59.541 11767 ERROR neutron_lib.utils.runtime self._init_plugins(extensions)

2018-05-27 00:00:59.541 11767 ERROR neutron_lib.utils.runtime File "/usr/lib/python2.7/dist-packages/stevedore/driver.py", line 11 3, in _init_plugins

2018-05-27 00:00:59.541 11767 ERROR neutron_lib.utils.runtime (self.namespace, name))

2018-05-27 00:00:59.541 11767 ERROR neutron_lib.utils.runtime NoMatches: No 'neutron.interface_drivers' driver found, looking for 'n eutron.agent.linux.interface.BridgeInterfaceDriver'

2018-05-27 00:00:59.541 11767 ERROR neutron_lib.utils.runtime

2018-05-27 00:00:59.542 11767 ERROR neutron_lib.utils.runtime [-] Error loading class by class name: ImportError: Class BridgeInterf aceDriver cannot be found (['Traceback (most recent call last):\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo_utils/impor tutils.py", line 32, in import_class\n return getattr(sys.modules[mod_str], class_str)\n', "AttributeError: 'module' object has n o attribute 'BridgeInterfaceDriver'\n"])

2018-05-27 00:00:59.542 11767 ERROR neutron_lib.utils.runtime Traceback (most recent call last):

2018-05-27 00:00:59.542 11767 ERROR neutron_lib.utils.runtime File "/usr/lib/python2.7/dist-packages/neutron_lib/utils/runtime.py" , line 52, in load_class_by_alias_or_classname 2018-05-27 00:00:59.542 11767 ERROR neutron_lib.utils.runtime class_to_load = importutils.import_class(name) 2018-05-27 00:00:59.542 11767 ERROR neutron_lib.utils.runtime File "/usr/local/lib/python2.7/dist-packages/oslo_utils/importutils. py", line 36, in import_class

2018-05-27 00:00:59.542 11767 ERROR neutron_lib.utils.runtime traceback.format_exception(*sys.exc_info())))

2018-05-27 00:00:59.542 11767 ERROR neutron_lib.utils.runtime ImportError: Class BridgeInterfaceDriver cannot be found (['Traceback (most recent call last):\n', ' File "/usr/local/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 32, in import_class\n return getattr(sys.modules[mod_str], class_str)\n', "AttributeError: 'module' object has no attribute 'BridgeInterfaceDriver'\n"] )

2018-05-27 00:00:59.542 11767 ERROR neutron_lib.utils.runtime

2018-05-27 00:00:59.542 11767 ERROR neutron.agent.common.utils [-] Error loading interface driver 'neutron.agent.linux.interface.Bri dgeInterfaceDriver'

I has worked well a long time after the first install. When i do a system update action ,this issue appear。

I hava check the source as well,which is correct.

I do a test like below ,and it work well:

# python
Python 2.7.12 (default, Dec 4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import_str = "neutron.agent.linux.interface.BridgeInterfaceDriver"
>>> mod_str, _sep, class_str = import_str.rpartition('.')
>>> mod_str
'neutron.agent.linux.interface'
>>> class_str
'BridgeInterfaceDriver'
>>> __import__(mod_str)
<module 'neutron' from '/usr/lib/python2.7/dist-packages/neutron/__init__.pyc'>
>>> import sys
>>> sys.modules[mod_str]
<module 'neutron.agent.linux.interface' from '/usr/lib/python2.7/dist-packages/neutron/agent/linux/interface.pyc'>
>>> a=getattr(sys.modules[mod_str],class_str)
>>> a
<class 'neutron.agent.linux.interface.BridgeInterfaceDriver'>
>>> exit()

Why this issue happend ? Any one can help me?

Tags: neutron
Revision history for this message
LittleMice (whscfan) wrote :

neutron package version list :
dpkg -l |grep neutron
ii neutron-common 2:12.0.1-0ubuntu1.1~cloud0 all Neutron is a virtual network service for Openstack - common
ii neutron-dhcp-agent 2:12.0.1-0ubuntu1.1~cloud0 all Neutron is a virtual network service for Openstack - DHCP agent
ii neutron-l3-agent 2:12.0.1-0ubuntu1.1~cloud0 all Neutron is a virtual network service for Openstack - l3 agent
ii neutron-linuxbridge-agent 2:12.0.1-0ubuntu1.1~cloud0 all Neutron is a virtual network service for Openstack - linuxbridge agent
ii neutron-metadata-agent 2:12.0.1-0ubuntu1.1~cloud0 all Neutron is a virtual network service for Openstack - metadata agent
ii neutron-plugin-ml2 2:12.0.1-0ubuntu1.1~cloud0 all Neutron is a virtual network service for Openstack - ML2 plugin
ii neutron-server 2:12.0.1-0ubuntu1.1~cloud0 all Neutron is a virtual network service for Openstack - server
ii python-neutron 2:12.0.1-0ubuntu1.1~cloud0 all Neutron is a virtual network service for Openstack - Python library
ii python-neutron-fwaas 1:12.0.0-0ubuntu1~cloud0 all Firewall-as-a-Service driver for OpenStack Neutron
ii python-neutron-lib 1.13.0-0ubuntu1~cloud0 all Neutron shared routines and utilities - Python 2.7
ii python-neutronclient 1:6.7.0-0ubuntu1~cloud0 all client API library for Neutron - Python 2.7

tags: added: neutron
Revision history for this message
Brian Haley (brian-haley) wrote :

I don't think anything has changed upstream, is this something specific to your distro?

What does the line in your ini file look like? Mine is like this and seems to work:

interface_driver=linuxbridge

Revision history for this message
LittleMice (whscfan) wrote :

With a long time to watch this issue,it will be ok after delete all network configure eg. route in openstack neturon .
After you delete this configure ,just restart the service ,and all will be right now .

Reply to Brian Haley : MIne configure is like as your.

Revision history for this message
prabha (shrudhavishal) wrote :

But when I encounter the same issue in my production network which is running with 100s of VM how could I delete the entire network and make the dhcp agent run.My entire setup is getting collapsed if I try to restart the dhcp agent????.It is not permitting to launch new VM unless I delete the entire network and VMs and start from first.Please guide to overcome this issue

Changed in neutron:
status: New → Invalid
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.