yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #73043
[Bug 1773551] [NEW] Error loading interface driver 'neutron.agent.linux.interface.Bri dgeInterfaceDriver'
Public bug reported:
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?
** Affects: neutron
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1773551
Title:
Error loading interface driver 'neutron.agent.linux.interface.Bri
dgeInterfaceDriver'
Status in neutron:
New
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?
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1773551/+subscriptions
Follow ups