unit test: cannot load l3routerplugin

Bug #1648930 reported by Li Ma
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DragonFlow
Fix Released
Critical
Hong Hui Xiao

Bug Description

2016-12-10 03:10:31.991553 | dragonflow.tests.unit.test_l3_router_plugin.TestDFL3RouterPlugin.test_create_floatingip_failed_in_neutron
2016-12-10 03:10:31.991579 | ---------------------------------------------------------------------------------------------------------
2016-12-10 03:10:31.991584 |
2016-12-10 03:10:31.991593 | Captured traceback-1:
2016-12-10 03:10:31.991602 | ~~~~~~~~~~~~~~~~~~~~~
2016-12-10 03:10:31.991614 | Traceback (most recent call last):
2016-12-10 03:10:31.991650 | File "/home/jenkins/workspace/gate-dragonflow-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/fixtures/fixture.py", line 208, in setUp
2016-12-10 03:10:31.991661 | raise SetupError(details)
2016-12-10 03:10:31.991673 | fixtures.fixture.SetupError: {}
2016-12-10 03:10:31.991679 |
2016-12-10 03:10:31.991683 |
2016-12-10 03:10:31.991692 | Captured traceback:
2016-12-10 03:10:31.991700 | ~~~~~~~~~~~~~~~~~~~
2016-12-10 03:10:31.991712 | Traceback (most recent call last):
2016-12-10 03:10:31.991749 | File "/home/jenkins/workspace/gate-dragonflow-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/fixtures/fixture.py", line 197, in setUp
2016-12-10 03:10:31.991758 | self._setUp()
2016-12-10 03:10:31.991782 | File "/tmp/openstack/neutron/neutron/tests/unit/plugins/ml2/test_plugin.py", line 102, in _setUp
2016-12-10 03:10:31.991793 | self.parent_setup()
2016-12-10 03:10:31.991817 | File "/tmp/openstack/neutron/neutron/tests/unit/db/test_db_base_plugin_v2.py", line 133, in setUp
2016-12-10 03:10:31.991829 | self.api = router.APIRouter()
2016-12-10 03:10:31.991850 | File "/tmp/openstack/neutron/neutron/api/v2/router.py", line 77, in __init__
2016-12-10 03:10:31.991859 | manager.init()
2016-12-10 03:10:31.991878 | File "/tmp/openstack/neutron/neutron/manager.py", line 291, in init
2016-12-10 03:10:31.991891 | NeutronManager.get_instance()
2016-12-10 03:10:31.991911 | File "/tmp/openstack/neutron/neutron/manager.py", line 241, in get_instance
2016-12-10 03:10:31.991922 | cls._create_instance()
2016-12-10 03:10:31.991960 | File "/home/jenkins/workspace/gate-dragonflow-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 271, in inner
2016-12-10 03:10:31.991972 | return f(*args, **kwargs)
2016-12-10 03:10:31.991993 | File "/tmp/openstack/neutron/neutron/manager.py", line 227, in _create_instance
2016-12-10 03:10:31.992004 | cls._instance = cls()
2016-12-10 03:10:31.992024 | File "/tmp/openstack/neutron/neutron/manager.py", line 140, in __init__
2016-12-10 03:10:31.992038 | self._load_service_plugins()
2016-12-10 03:10:31.992061 | File "/tmp/openstack/neutron/neutron/manager.py", line 197, in _load_service_plugins
2016-12-10 03:10:31.992069 | provider)
2016-12-10 03:10:31.992091 | File "/tmp/openstack/neutron/neutron/manager.py", line 163, in _get_plugin_instance
2016-12-10 03:10:31.992111 | plugin_class = self.load_class_for_provider(namespace, plugin_provider)
2016-12-10 03:10:31.992134 | File "/tmp/openstack/neutron/neutron/manager.py", line 157, in load_class_for_provider
2016-12-10 03:10:31.992144 | plugin_provider)
2016-12-10 03:10:31.992169 | File "/tmp/openstack/neutron/neutron/common/utils.py", line 343, in load_class_by_alias_or_classname
2016-12-10 03:10:31.992185 | class_to_load = importutils.import_class(name)
2016-12-10 03:10:31.992223 | File "/home/jenkins/workspace/gate-dragonflow-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/importutils.py", line 30, in import_class
2016-12-10 03:10:31.992234 | __import__(mod_str)
2016-12-10 03:10:31.992255 | File "dragonflow/neutron/services/l3_router_plugin.py", line 56, in <module>
2016-12-10 03:10:31.992270 | l3_agentschedulers_db.L3AgentSchedulerDbMixin):
2016-12-10 03:10:31.992300 | File "/home/jenkins/workspace/gate-dragonflow-python27-ubuntu-xenial/.tox/py27/lib/python2.7/abc.py", line 87, in __new__
2016-12-10 03:10:31.992319 | cls = super(ABCMeta, mcls).__new__(mcls, name, bases, namespace)
2016-12-10 03:10:31.992334 | TypeError: Error when calling the metaclass bases
2016-12-10 03:10:31.992349 | Cannot create a consistent method resolution
2016-12-10 03:10:31.992393 | order (MRO) for bases CommonDbMixin, L3AgentSchedulerDbMixin, WorkerSupportServiceMixin, L3_NAT_db_mixin, ExtraRoute_db_mixin
2016-12-10 03:10:31.992399 |
2016-12-10 03:10:31.992404 |
2016-12-10 03:10:31.992414 | Captured pythonlogging:
2016-12-10 03:10:31.992424 | ~~~~~~~~~~~~~~~~~~~~~~~
2016-12-10 03:10:31.992454 | WARNING [neutron.plugins.ml2.managers] Host filtering is disabled because at least one mechanism doesn't support it.
2016-12-10 03:10:31.992482 | WARNING [neutron.agent.securitygroups_rpc] Driver configuration doesn't match with enable_security_group
2016-12-10 03:10:31.992510 | WARNING [stevedore.named] Could not load dragonflow.neutron.services.l3_router_plugin.DFL3RouterPlugin

Link: http://logs.openstack.org/22/404622/5/gate/gate-dragonflow-python27-ubuntu-xenial/1d888f3/console.html

Li Ma (nick-ma-z)
Changed in dragonflow:
importance: Undecided → Critical
Revision history for this message
Hong Hui Xiao (xiaohhui) wrote :
Changed in dragonflow:
assignee: nobody → Hong Hui Xiao (xiaohhui)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to dragonflow (master)

Reviewed: https://review.openstack.org/409489
Committed: https://git.openstack.org/cgit/openstack/dragonflow/commit/?id=0cc627bb026801d060e360c6e5bf082a0585c016
Submitter: Jenkins
Branch: master

commit 0cc627bb026801d060e360c6e5bf082a0585c016
Author: Hong Hui Xiao <email address hidden>
Date: Sun Dec 11 10:04:39 2016 +0800

    Fix gate failure

    Commit 6948467b770df68cb96877f3e0e710650ad63fd4 adds WorkerSupportServiceMixin
    in the inheritance chain, which conflicts with NeutronDbPluginV2 and
    CommonDbMixin.
    NeutronDbPluginV2 should not be as super class of DFL3RouterPlugin, so this
    patch just remove it from super class list.

    Change-Id: I4019b2c642daf4ee39527c62d023a6eb8de30cd5
    Closes-Bug: #1648930

Changed in dragonflow:
status: In Progress → Fix Released
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.