networking_ovn.tests.functional.test_maintenance.TestMaintenance.test_security_group fails with ovs 2.9

Bug #1844491 reported by Maciej Jozefczyk on 2019-09-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-ovn
Undecided
Unassigned

Bug Description

Functional test networking_ovn.tests.functional.test_maintenance.TestMaintenance.test_security_group fails with OVS 2.9

{1} networking_ovn.tests.functional.test_maintenance.TestMaintenance.test_security_group [1.583440s] ... FAILED

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "/opt/stack/networking-ovn/.tox/dsvm-functional/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
        return func(*args, **keywargs)
      File "/opt/stack/neutron/neutron/tests/base.py", line 181, in func
        return f(self, *args, **kwargs)
      File "networking_ovn/tests/functional/test_maintenance.py", line 480, in test_security_group
        self._find_security_group_row_by_id(neutron_obj['id']))
      File "/opt/stack/networking-ovn/.tox/dsvm-functional/local/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertIsNotNone
        self.assertThat(observed, matcher, message)
      File "/opt/stack/networking-ovn/.tox/dsvm-functional/local/lib/python2.7/site-packages/testtools/testcase.py", line 498, in assertThat
        raise mismatch_error
    testtools.matchers._impl.MismatchError: None matches Is(None)

Reviewed: https://review.opendev.org/682825
Committed: https://git.openstack.org/cgit/openstack/networking-ovn/commit/?id=4c42313b894d127bc3c7984f15130652204c8513
Submitter: Zuul
Branch: master

commit 4c42313b894d127bc3c7984f15130652204c8513
Author: Maciej Józefczyk <email address hidden>
Date: Wed Sep 18 08:09:25 2019 +0000

    Fix for getting port groups while using OVS up to 2.9

    Functions get_port_group() and get_port_groups() were failing
    with KeyError while getting to access non-existent Port_Group
    table with OVS 2.9.

    This patch adds additional check if Port Group is supported in the
    env where the code runs.

    Change-Id: If3ce6ab1d1318a6d5142989b3bf45ecce97762e3
    Closes-Bug: #1844491

Changed in networking-ovn:
status: New → Fix Released

Reviewed: https://review.opendev.org/683926
Committed: https://git.openstack.org/cgit/openstack/networking-ovn/commit/?id=a78dbc252d97f1e276a45cb8a633a4b17fcef8d7
Submitter: Zuul
Branch: stable/stein

commit a78dbc252d97f1e276a45cb8a633a4b17fcef8d7
Author: Maciej Józefczyk <email address hidden>
Date: Wed Sep 18 08:09:25 2019 +0000

    Fix for getting port groups while using OVS up to 2.9

    Functions get_port_group() and get_port_groups() were failing
    with KeyError while getting to access non-existent Port_Group
    table with OVS 2.9.

    This patch adds additional check if Port Group is supported in the
    env where the code runs.

    Change-Id: If3ce6ab1d1318a6d5142989b3bf45ecce97762e3
    Closes-Bug: #1844491
    (cherry-picked from commit 4c42313b894d127bc3c7984f15130652204c8513)

tags: added: in-stable-stein

Reviewed: https://review.opendev.org/683965
Committed: https://git.openstack.org/cgit/openstack/networking-ovn/commit/?id=b67406f27038c7f91bf42ba542b7fc409a2a33bd
Submitter: Zuul
Branch: stable/queens

commit b67406f27038c7f91bf42ba542b7fc409a2a33bd
Author: Maciej Józefczyk <email address hidden>
Date: Wed Sep 18 08:09:25 2019 +0000

    Fix for getting port groups while using OVS up to 2.9

    Functions get_port_group() and get_port_groups() were failing
    with KeyError while getting to access non-existent Port_Group
    table with OVS 2.9.

    This patch adds additional check if Port Group is supported in the
    env where the code runs.

    Change-Id: If3ce6ab1d1318a6d5142989b3bf45ecce97762e3
    Closes-Bug: #1844491
    (cherry picked from commit 501d48b181b1d93ac634021860aff708ff9d940e)

tags: added: in-stable-queens
tags: added: networking-ovn-proactive-backport-potential

This issue was fixed in the openstack/networking-ovn 4.0.4 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers