yoga unit test failures

Bug #1954697 reported by Corey Bryant
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-arista
Fix Released
Undecided
Unassigned

Bug Description

These failures are currently occurring on the master branch:

==============================
Failed 5 tests - output below:
==============================

networking_arista.tests.unit.ml2.test_mechanism_arista.BasicMechDriverTestCase.test_baremetal_trunk_pre_bound
-------------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/home/corey/pkg/yoga/upstream/networking-arista/.tox/py39/lib/python3.9/site-packages/neutron/tests/base.py", line 183, in func
    return f(self, *args, **kwargs)

      File "/home/corey/pkg/yoga/upstream/networking-arista/networking_arista/tests/unit/ml2/test_mechanism_arista.py", line 822, in test_baremetal_trunk_pre_bound
    self.trunk_plugin.create_trunk(self.context, trunk_dict)

      File "/home/corey/pkg/yoga/upstream/networking-arista/.tox/py39/lib/python3.9/site-packages/neutron/db/db_base_plugin_common.py", line 48, in inner
    result = f(*args, **kwargs)

      File "/home/corey/pkg/yoga/upstream/networking-arista/.tox/py39/lib/python3.9/site-packages/neutron/services/trunk/plugin.py", line 248, in create_trunk
    project_id=trunk['tenant_id'],

    KeyError: 'tenant_id'

networking_arista.tests.unit.ml2.test_mechanism_arista.BasicMechDriverTestCase.test_baremetal_trunk_basic
---------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/home/corey/pkg/yoga/upstream/networking-arista/.tox/py39/lib/python3.9/site-packages/neutron/tests/base.py", line 183, in func
    return f(self, *args, **kwargs)

      File "/home/corey/pkg/yoga/upstream/networking-arista/networking_arista/tests/unit/ml2/test_mechanism_arista.py", line 662, in test_baremetal_trunk_basic
    self.trunk_plugin.create_trunk(self.context, trunk_dict)

      File "/home/corey/pkg/yoga/upstream/networking-arista/.tox/py39/lib/python3.9/site-packages/neutron/db/db_base_plugin_common.py", line 48, in inner
    result = f(*args, **kwargs)

      File "/home/corey/pkg/yoga/upstream/networking-arista/.tox/py39/lib/python3.9/site-packages/neutron/services/trunk/plugin.py", line 248, in create_trunk
    project_id=trunk['tenant_id'],

    KeyError: 'tenant_id'

networking_arista.tests.unit.ml2.test_mechanism_arista.BasicMechDriverTestCase.test_baremetal_trunk_bind_unbind
---------------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/home/corey/pkg/yoga/upstream/networking-arista/.tox/py39/lib/python3.9/site-packages/neutron/tests/base.py", line 183, in func
    return f(self, *args, **kwargs)

      File "/home/corey/pkg/yoga/upstream/networking-arista/networking_arista/tests/unit/ml2/test_mechanism_arista.py", line 733, in test_baremetal_trunk_bind_unbind
    trunk = self.trunk_plugin.create_trunk(self.context, trunk_dict)

      File "/home/corey/pkg/yoga/upstream/networking-arista/.tox/py39/lib/python3.9/site-packages/neutron/db/db_base_plugin_common.py", line 48, in inner
    result = f(*args, **kwargs)

      File "/home/corey/pkg/yoga/upstream/networking-arista/.tox/py39/lib/python3.9/site-packages/neutron/services/trunk/plugin.py", line 248, in create_trunk
    project_id=trunk['tenant_id'],

    KeyError: 'tenant_id'

networking_arista.tests.unit.ml2.test_mechanism_arista.BasicMechDriverTestCase.test_vm_trunk_port
-------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/home/corey/pkg/yoga/upstream/networking-arista/.tox/py39/lib/python3.9/site-packages/neutron/tests/base.py", line 183, in func
    return f(self, *args, **kwargs)

      File "/home/corey/pkg/yoga/upstream/networking-arista/networking_arista/tests/unit/ml2/test_mechanism_arista.py", line 503, in test_vm_trunk_port
    trunk = self.trunk_plugin.create_trunk(self.context, trunk_dict)

      File "/home/corey/pkg/yoga/upstream/networking-arista/.tox/py39/lib/python3.9/site-packages/neutron/db/db_base_plugin_common.py", line 48, in inner
    result = f(*args, **kwargs)

      File "/home/corey/pkg/yoga/upstream/networking-arista/.tox/py39/lib/python3.9/site-packages/neutron/services/trunk/plugin.py", line 248, in create_trunk
    project_id=trunk['tenant_id'],

    KeyError: 'tenant_id'

networking_arista.tests.unit.ml2.test_mechanism_arista.BasicMechDriverTestCase.test_trunk_add_remove_subport
------------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/home/corey/pkg/yoga/upstream/networking-arista/.tox/py39/lib/python3.9/site-packages/neutron/tests/base.py", line 183, in func
    return f(self, *args, **kwargs)

      File "/home/corey/pkg/yoga/upstream/networking-arista/networking_arista/tests/unit/ml2/test_mechanism_arista.py", line 580, in test_trunk_add_remove_subport
    trunk = self.trunk_plugin.create_trunk(self.context, trunk_dict)

      File "/home/corey/pkg/yoga/upstream/networking-arista/.tox/py39/lib/python3.9/site-packages/neutron/db/db_base_plugin_common.py", line 48, in inner
    result = f(*args, **kwargs)

      File "/home/corey/pkg/yoga/upstream/networking-arista/.tox/py39/lib/python3.9/site-packages/neutron/services/trunk/plugin.py", line 248, in create_trunk
    project_id=trunk['tenant_id'],

    KeyError: 'tenant_id'

======
Totals
======
Ran: 254 tests in 137.6935 sec.
 - Passed: 249
 - Skipped: 0
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 5
Sum of execute time for each test: 521.8195 sec.

description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-arista (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/x/networking-arista/+/821773

Changed in networking-arista:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-arista (master)

Reviewed: https://review.opendev.org/c/x/networking-arista/+/821773
Committed: https://opendev.org/x/networking-arista/commit/8b1273a07abe974799c6c66f4c1fe78bec35ea1e
Submitter: "Zuul (22348)"
Branch: master

commit 8b1273a07abe974799c6c66f4c1fe78bec35ea1e
Author: Mitchell Jameson <email address hidden>
Date: Tue Dec 14 12:29:59 2021 -0800

    Make unit tests backwards compatible with the latest pyPI Neutron

    It's difficult to ensure the Neutron master is installed in the test
    env, so this change allows tests to run against a slightly older
    Neutron that still looks for 'tenant_id' in the trunk dict.

    Change-Id: I7de8939923bd60cc31097c3469e5bb2183f41262
    Closes-Bug: 1954697

Changed in networking-arista:
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.