Yoga version -ERROR neutron_lib.utils.runtime [-] Error loading class by alias: stevedore.exception.NoMatches: No 'neutron.core_plugins' driver found, looking for 'vmware_nsx.plugin.NsxDvsPlugin'

Bug #1980164 reported by Palanivenkatesan Murugan
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
vmware-nsx
New
Undecided
Unassigned

Bug Description

Hi,

Deployed OpenStack "Yoga" version not able to bring up the Neutron service due to below errors.

Using VMware DVS( Distributed vSwitch Plugin) vmware_nsx.plugin.NsxDvsPlugin. This works ok with Xena version.

Neutron Version-

***********************************************************************************************
root@controller3:/var/log/neutron# dpkg -l | grep neutron
ii neutron-common 2:20.1.0-0ubuntu2~cloud0 all Neutron is a virtual network service for Openstack - common
ii neutron-fwaas-common 1:16.0.0+git2022033113.de8a4d4cf-0ubuntu1~cloud0 all Firewall-as-a-Service driver for OpenStack Neutron
ii neutron-server 2:20.1.0-0ubuntu2~cloud0 all Neutron is a virtual network service for Openstack - server
ii neutron-vpnaas-common 2:20.0.0-0ubuntu1~cloud0 all VPN-as-a-Service driver for OpenStack Neutron
ii python3-neutron 2:20.1.0-0ubuntu2~cloud0 all Neutron is a virtual network service for Openstack - Python library
ii python3-neutron-dynamic-routing 2:20.0.0-0ubuntu1~cloud0 all OpenStack Neutron Dynamic Routing - Python 3 library
ii python3-neutron-fwaas 1:16.0.0+git2022033113.de8a4d4cf-0ubuntu1~cloud0 all Firewall-as-a-Service driver for OpenStack Neutron
ii python3-neutron-lib 2.20.0-0ubuntu1~cloud0 all Neutron shared routines and utilities - Python 3.x
ii python3-neutron-vpnaas 2:20.0.0-0ubuntu1~cloud0 all VPN-as-a-Service driver for OpenStack Neutron
ii python3-neutronclient 1:7.8.0-0ubuntu1~cloud0 all client API library for Neutron - Python 3.x

******************************************************************************
VMware NSX plugin

root@controller3:/var/log/neutron# dpkg -l | grep vmware
ii nova-compute-vmware 3:25.0.0-0ubuntu1~cloud0 all OpenStack Compute - compute node (VMware)
ii python3-oslo.vmware 3.10.0-0ubuntu1~cloud0 all VMware library for OpenStack projects - Python 3.x
ii python3-vmware-nsx 17.0.0+git2021120910.0253265f7-0ubuntu1~cloud0 all OpenStack virtual network service - Python 3 VMWare NSX plugin
ii python3-vmware-nsxlib 17.4.0-0ubuntu1~cloud0 all A common library that interfaces with VMware NSX (Python 3)
ii vmware-nsx-common 17.0.0+git2021120910.0253265f7-0ubuntu1~cloud0 all OpenStack virtual network service - VMWare NSX plugin config files

Neutron error log:
********************************************************************************

2022-06-29 00:11:19.009 953336 ERROR neutron_lib.utils.runtime
2022-06-29 00:11:19.012 953336 ERROR neutron.manager [-] Plugin 'vmware_nsx.plugin.NsxDvsPlugin' not found.
2022-06-29 00:11:19.012 953336 ERROR neutron.service [-] Unrecoverable error: please check log for details.: ImportError: Class not found.
2022-06-29 00:11:19.012 953336 ERROR neutron.service Traceback (most recent call last):
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/neutron_lib/utils/runtime.py", line 113, in load_class_by_alias_or_classname
2022-06-29 00:11:19.012 953336 ERROR neutron.service mgr = driver.DriverManager(
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/stevedore/driver.py", line 54, in __init__
2022-06-29 00:11:19.012 953336 ERROR neutron.service super(DriverManager, self).__init__(
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/stevedore/named.py", line 89, in __init__
2022-06-29 00:11:19.012 953336 ERROR neutron.service self._init_plugins(extensions)
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/stevedore/driver.py", line 113, in _init_plugins
2022-06-29 00:11:19.012 953336 ERROR neutron.service raise NoMatches('No %r driver found, looking for %r' %
2022-06-29 00:11:19.012 953336 ERROR neutron.service stevedore.exception.NoMatches: No 'neutron.core_plugins' driver found, looking for 'vmware_nsx.plugin.NsxDvsPlugin'
2022-06-29 00:11:19.012 953336 ERROR neutron.service
2022-06-29 00:11:19.012 953336 ERROR neutron.service During handling of the above exception, another exception occurred:
2022-06-29 00:11:19.012 953336 ERROR neutron.service
2022-06-29 00:11:19.012 953336 ERROR neutron.service Traceback (most recent call last):
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/neutron_lib/utils/runtime.py", line 120, in load_class_by_alias_or_classname
2022-06-29 00:11:19.012 953336 ERROR neutron.service class_to_load = importutils.import_class(name)
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/oslo_utils/importutils.py", line 30, in import_class
2022-06-29 00:11:19.012 953336 ERROR neutron.service __import__(mod_str)
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/vmware_nsx/plugin.py", line 23, in <module>
2022-06-29 00:11:19.012 953336 ERROR neutron.service from vmware_nsx.plugins.dvs import plugin as dvs
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/vmware_nsx/plugins/dvs/plugin.py", line 46, in <module>
2022-06-29 00:11:19.012 953336 ERROR neutron.service from neutron.db import portbindings_db
2022-06-29 00:11:19.012 953336 ERROR neutron.service ImportError: cannot import name 'portbindings_db' from 'neutron.db' (/usr/lib/python3/dist-packages/neutron/db/__init__.py)
2022-06-29 00:11:19.012 953336 ERROR neutron.service
2022-06-29 00:11:19.012 953336 ERROR neutron.service The above exception was the direct cause of the following exception:
2022-06-29 00:11:19.012 953336 ERROR neutron.service
2022-06-29 00:11:19.012 953336 ERROR neutron.service Traceback (most recent call last):
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/neutron/service.py", line 88, in serve_wsgi
2022-06-29 00:11:19.012 953336 ERROR neutron.service service.start()
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/neutron/service.py", line 64, in start
2022-06-29 00:11:19.012 953336 ERROR neutron.service self.wsgi_app = _run_wsgi(self.app_name)
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/neutron/service.py", line 321, in _run_wsgi
2022-06-29 00:11:19.012 953336 ERROR neutron.service app = config.load_paste_app(app_name)
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/neutron/common/config.py", line 134, in load_paste_app
2022-06-29 00:11:19.012 953336 ERROR neutron.service app = loader.load_app(app_name)
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/oslo_service/wsgi.py", line 351, in load_app
2022-06-29 00:11:19.012 953336 ERROR neutron.service return deploy.loadapp("config:%s" % self.config_path, name=name)
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py", line 253, in loadapp
2022-06-29 00:11:19.012 953336 ERROR neutron.service return loadobj(APP, uri, name=name, **kw)
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py", line 278, in loadobj
2022-06-29 00:11:19.012 953336 ERROR neutron.service return context.create()
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py", line 715, in create
2022-06-29 00:11:19.012 953336 ERROR neutron.service return self.object_type.invoke(self)
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py", line 148, in invoke
2022-06-29 00:11:19.012 953336 ERROR neutron.service return fix_call(context.object,
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/paste/deploy/util.py", line 55, in fix_call
2022-06-29 00:11:19.012 953336 ERROR neutron.service val = callable(*args, **kw)
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/paste/urlmap.py", line 31, in urlmap_factory
2022-06-29 00:11:19.012 953336 ERROR neutron.service app = loader.get_app(app_name, global_conf=global_conf)
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py", line 355, in get_app
2022-06-29 00:11:19.012 953336 ERROR neutron.service return self.app_context(
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py", line 715, in create
2022-06-29 00:11:19.012 953336 ERROR neutron.service return self.object_type.invoke(self)
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py", line 148, in invoke
2022-06-29 00:11:19.012 953336 ERROR neutron.service return fix_call(context.object,
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/paste/deploy/util.py", line 55, in fix_call
2022-06-29 00:11:19.012 953336 ERROR neutron.service val = callable(*args, **kw)
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/neutron/auth.py", line 62, in pipeline_factory
2022-06-29 00:11:19.012 953336 ERROR neutron.service app = loader.get_app(pipeline[-1])
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py", line 355, in get_app
2022-06-29 00:11:19.012 953336 ERROR neutron.service return self.app_context(
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py", line 715, in create
2022-06-29 00:11:19.012 953336 ERROR neutron.service return self.object_type.invoke(self)
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py", line 152, in invoke
2022-06-29 00:11:19.012 953336 ERROR neutron.service return fix_call(context.object, context.global_conf, **context.local_conf)
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/paste/deploy/util.py", line 55, in fix_call
2022-06-29 00:11:19.012 953336 ERROR neutron.service val = callable(*args, **kw)
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/neutron/api/v2/router.py", line 25, in _factory
2022-06-29 00:11:19.012 953336 ERROR neutron.service return pecan_app.v2_factory(global_config, **local_config)
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/neutron/pecan_wsgi/app.py", line 47, in v2_factory
2022-06-29 00:11:19.012 953336 ERROR neutron.service startup.initialize_all()
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/neutron/pecan_wsgi/startup.py", line 39, in initialize_all
2022-06-29 00:11:19.012 953336 ERROR neutron.service manager.init()
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/neutron/manager.py", line 301, in init
2022-06-29 00:11:19.012 953336 ERROR neutron.service NeutronManager.get_instance()
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/neutron/manager.py", line 252, in get_instance
2022-06-29 00:11:19.012 953336 ERROR neutron.service cls._create_instance()
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/oslo_concurrency/lockutils.py", line 391, in inner
2022-06-29 00:11:19.012 953336 ERROR neutron.service return f(*args, **kwargs)
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/neutron/manager.py", line 238, in _create_instance
2022-06-29 00:11:19.012 953336 ERROR neutron.service cls._instance = cls()
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/neutron/manager.py", line 126, in __init__
2022-06-29 00:11:19.012 953336 ERROR neutron.service plugin = self._get_plugin_instance(CORE_PLUGINS_NAMESPACE,
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/neutron/manager.py", line 159, in _get_plugin_instance
2022-06-29 00:11:19.012 953336 ERROR neutron.service plugin_class = self._get_plugin_class(namespace, plugin_provider)
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/neutron/manager.py", line 156, in _get_plugin_class
2022-06-29 00:11:19.012 953336 ERROR neutron.service return self.load_class_for_provider(namespace, plugin_provider)
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/neutron/manager.py", line 153, in load_class_for_provider
2022-06-29 00:11:19.012 953336 ERROR neutron.service LOG.error("Plugin '%s' not found.", plugin_provider)
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 227, in __exit__
2022-06-29 00:11:19.012 953336 ERROR neutron.service self.force_reraise()
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 200, in force_reraise
2022-06-29 00:11:19.012 953336 ERROR neutron.service raise self.value
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/neutron/manager.py", line 149, in load_class_for_provider
2022-06-29 00:11:19.012 953336 ERROR neutron.service return runtime.load_class_by_alias_or_classname(namespace,
2022-06-29 00:11:19.012 953336 ERROR neutron.service File "/usr/lib/python3/dist-packages/neutron_lib/utils/runtime.py", line 126, in load_class_by_alias_or_classname
2022-06-29 00:11:19.012 953336 ERROR neutron.service raise ImportError(_("Class not found.")) from e
2022-06-29 00:11:19.012 953336 ERROR neutron.service ImportError: Class not found.
2022-06-29 00:11:19.012 953336 ERROR neutron.service
2022-06-29 00:11:19.015 953336 CRITICAL neutron [-] Unhandled error: ImportError: Class not found.
2022-06-29 00:11:19.015 953336 ERROR neutron Traceback (most recent call last):
2022-06-29 00:11:19.015 953336 ERROR neutron File "/usr/lib/python3/dist-packages/neutron_lib/utils/runtime.py", line 113, in load_class_by_alias_or_classname
2022-06-29 00:11:19.015 953336 ERROR neutron mgr = driver.DriverManager(
2022-06-29 00:11:19.015 953336 ERROR neutron File "/usr/lib/python3/dist-packages/stevedore/driver.py", line 54, in __init__
2022-06-29 00:11:19.015 953336 ERROR neutron super(DriverManager, self).__init__(
2022-06-29 00:11:19.015 953336 ERROR neutron File "/usr/lib/python3/dist-packages/stevedore/named.py", line 89, in __init__
2022-06-29 00:11:19.015 953336 ERROR neutron self._init_plugins(extensions)
2022-06-29 00:11:19.015 953336 ERROR neutron File "/usr/lib/python3/dist-packages/stevedore/driver.py", line 113, in _init_plugins
2022-06-29 00:11:19.015 953336 ERROR neutron raise NoMatches('No %r driver found, looking for %r' %
2022-06-29 00:11:19.015 953336 ERROR neutron stevedore.exception.NoMatches: No 'neutron.core_plugins' driver found, looking for 'vmware_nsx.plugin.NsxDvsPlugin'
2022-06-29 00:11:19.015 953336 ERROR neutron
2022-06-29 00:11:19.015 953336 ERROR neutron During handling of the above exception, another exception occurred:
2022-06-29 00:11:19.015 953336 ERROR neutron
2022-06-29 00:11:19.015 953336 ERROR neutron Traceback (most recent call last):
2022-06-29 00:11:19.015 953336 ERROR neutron File "/usr/lib/python3/dist-packages/neutron_lib/utils/runtime.py", line 120, in load_class_by_alias_or_classname
2022-06-29 00:11:19.015 953336 ERROR neutron class_to_load = importutils.import_class(name)
2022-06-29 00:11:19.015 953336 ERROR neutron File "/usr/lib/python3/dist-packages/oslo_utils/importutils.py", line 30, in import_class
2022-06-29 00:11:19.015 953336 ERROR neutron __import__(mod_str)
2022-06-29 00:11:19.015 953336 ERROR neutron File "/usr/lib/python3/dist-packages/vmware_nsx/plugin.py", line 23, in <module>
2022-06-29 00:11:19.015 953336 ERROR neutron from vmware_nsx.plugins.dvs import plugin as dvs
2022-06-29 00:11:19.015 953336 ERROR neutron File "/usr/lib/python3/dist-packages/vmware_nsx/plugins/dvs/plugin.py", line 46, in <module>
2022-06-29 00:11:19.015 953336 ERROR neutron from neutron.db import portbindings_db
2022-06-29 00:11:19.015 953336 ERROR neutron ImportError: cannot import name 'portbindings_db' from 'neutron.db' (/usr/lib/python3/dist-packages/neutron/db/__init__.py)
2022-06-29 00:11:19.015 953336 ERROR neutron
2022-06-29 00:11:19.015 953336 ERROR neutron The above exception was the direct cause of the following exception:
2022-06-29 00:11:19.015 953336 ERROR neutron
2022-06-29 00:11:19.015 953336 ERROR neutron Traceback (most recent call last):
2022-06-29 00:11:19.015 953336 ERROR neutron File "/usr/bin/neutron-server", line 10, in <module>
2022-06-29 00:11:19.015 953336 ERROR neutron sys.exit(main())

affects: openstack-manuals → neutron
Revision history for this message
Mamatisa Nurmatov (isabek) wrote :

Hi!

portbinding_db was removed in yoga [1]
Please see bug [2]

1) https://review.opendev.org/c/openstack/neutron/+/824009
2) https://bugs.launchpad.net/neutron/+bug/1956980

Revision history for this message
Akihiro Motoki (amotoki) wrote :

Moving the bug from "neutron" to "vmware-nsx" launchpad where bugs on vmware-nsx plugin are tracked.

Looking at the vmware-nsx plugin repository https://opendev.org/x/vmware-nsx, there is no commit in these seven months. I am not sure how it is maintained now though.

affects: neutron → vmware-nsx
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.