Functional NetlinkLib tests can interfere with other tests

Bug #1817295 reported by Slawek Kaplonski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Slawek Kaplonski

Bug Description

It may happen that tests from neutron.tests.functional.agent.linux.test_netlink_lib.NetlinkLibTestCase can interfere with e.g. tests from neutron.tests.functional.agent.test_firewall module and fail because of that.
It may happen that one of NetlinkLib tests deletes some conntrack entries and expects ONLY some specific ones to be still in conntrack. But there are also other entries added by some other tests.

Example of such failure: http://logs.openstack.org/02/637802/2/check/neutron-functional-python27/3d611ea/logs/testr_results.html.gz

Additional conntrack entry (6, u'udp', 46935, 18650, u'2001:db8:aaaa::1', u'2001:db8:aaaa::2', 71) comes probably from one of tests in neutron.tests.functional.agent.test_firewall module.

Changed in neutron:
assignee: nobody → Slawek Kaplonski (slaweq)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/638635

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

Reviewed: https://review.openstack.org/638635
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=798c6c731fc5872ade8b5eb1f571a2c002c8c0fb
Submitter: Zuul
Branch: master

commit 798c6c731fc5872ade8b5eb1f571a2c002c8c0fb
Author: Slawek Kaplonski <email address hidden>
Date: Fri Feb 22 12:34:54 2019 +0100

    [Functional tests] Change way how conntrack entries are checked

    In netlink_lib functional tests module there are listed conntrack
    entries and those entries are assert to some expected list.
    It may happen that sometimes some additional entries from other
    tests will also be in the list and that cause failures of
    netlink_lib tests.

    So this patch changes way how those assertions are done. For now
    it will check if each of expected entries is in entries list and
    in case of delete entries tests, it will also check if any of
    deleted entries isn't actually in list.

    Change-Id: I30c18f141a8356b060902e6493ba0657b21619ad
    Closes-Bug: #1817295

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 14.0.0.0b3

This issue was fixed in the openstack/neutron 14.0.0.0b3 development milestone.

tags: added: neutron-proactive-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/649044

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/649045

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/649046

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/queens)

Reviewed: https://review.openstack.org/649045
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=19912a30bd4d28dd30b54083eaa136953cc5a174
Submitter: Zuul
Branch: stable/queens

commit 19912a30bd4d28dd30b54083eaa136953cc5a174
Author: Slawek Kaplonski <email address hidden>
Date: Fri Feb 22 12:34:54 2019 +0100

    [Functional tests] Change way how conntrack entries are checked

    In netlink_lib functional tests module there are listed conntrack
    entries and those entries are assert to some expected list.
    It may happen that sometimes some additional entries from other
    tests will also be in the list and that cause failures of
    netlink_lib tests.

    So this patch changes way how those assertions are done. For now
    it will check if each of expected entries is in entries list and
    in case of delete entries tests, it will also check if any of
    deleted entries isn't actually in list.

    Change-Id: I30c18f141a8356b060902e6493ba0657b21619ad
    Closes-Bug: #1817295
    (cherry picked from commit 798c6c731fc5872ade8b5eb1f571a2c002c8c0fb)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/pike)

Reviewed: https://review.openstack.org/649046
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=ad1d4358ec4e885d4e46c56cfa298f24b9f3f0a2
Submitter: Zuul
Branch: stable/pike

commit ad1d4358ec4e885d4e46c56cfa298f24b9f3f0a2
Author: Slawek Kaplonski <email address hidden>
Date: Fri Feb 22 12:34:54 2019 +0100

    [Functional tests] Change way how conntrack entries are checked

    In netlink_lib functional tests module there are listed conntrack
    entries and those entries are assert to some expected list.
    It may happen that sometimes some additional entries from other
    tests will also be in the list and that cause failures of
    netlink_lib tests.

    So this patch changes way how those assertions are done. For now
    it will check if each of expected entries is in entries list and
    in case of delete entries tests, it will also check if any of
    deleted entries isn't actually in list.

    Change-Id: I30c18f141a8356b060902e6493ba0657b21619ad
    Closes-Bug: #1817295
    (cherry picked from commit 798c6c731fc5872ade8b5eb1f571a2c002c8c0fb)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/rocky)

Reviewed: https://review.openstack.org/649044
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=289f66bd7424d2cbfc4d3caa8ef7369c2f18b177
Submitter: Zuul
Branch: stable/rocky

commit 289f66bd7424d2cbfc4d3caa8ef7369c2f18b177
Author: Slawek Kaplonski <email address hidden>
Date: Fri Feb 22 12:34:54 2019 +0100

    [Functional tests] Change way how conntrack entries are checked

    In netlink_lib functional tests module there are listed conntrack
    entries and those entries are assert to some expected list.
    It may happen that sometimes some additional entries from other
    tests will also be in the list and that cause failures of
    netlink_lib tests.

    So this patch changes way how those assertions are done. For now
    it will check if each of expected entries is in entries list and
    in case of delete entries tests, it will also check if any of
    deleted entries isn't actually in list.

    Change-Id: I30c18f141a8356b060902e6493ba0657b21619ad
    Closes-Bug: #1817295
    (cherry picked from commit 798c6c731fc5872ade8b5eb1f571a2c002c8c0fb)

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 11.0.7

This issue was fixed in the openstack/neutron 11.0.7 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 13.0.3

This issue was fixed in the openstack/neutron 13.0.3 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 12.0.6

This issue was fixed in the openstack/neutron 12.0.6 release.

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.