Bug 1740092 - neutron.tests.unit.scheduler.test_dhcp_agent_scheduler.TestNetworksFailover.test_filter_bindings unit test randomly fails on RHEL/CentOS 7
Summary: neutron.tests.unit.scheduler.test_dhcp_agent_scheduler.TestNetworksFailover.t...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: zstream
: 13.0 (Queens)
Assignee: Bernard Cafarelli
QA Contact: Eran Kuris
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-12 09:43 UTC by Bernard Cafarelli
Modified: 2019-11-07 14:00 UTC (History)
4 users (show)

Fixed In Version: openstack-neutron-12.0.6-12.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1740093 (view as bug list)
Environment:
Last Closed: 2019-11-07 14:00:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1839595 0 None None None 2019-08-12 09:46:24 UTC
OpenStack gerrit 675841 0 None None None 2019-08-12 10:12:21 UTC
Red Hat Product Errata RHBA-2019:3803 0 None None None 2019-11-07 14:00:34 UTC

Description Bernard Cafarelli 2019-08-12 09:43:47 UTC
With the sqlite version available in RHEL 7, the mentioned test can fail with:

==============================
Failed 1 tests - output below:
==============================

neutron.tests.unit.scheduler.test_dhcp_agent_scheduler.TestNetworksFailover.test_filter_bindings
------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "neutron/tests/base.py", line 177, in func
        return f(self, *args, **kwargs)
      File "neutron/tests/unit/scheduler/test_dhcp_agent_scheduler.py", line 527, in test_filter_bindings
        self.assertIn(network_ids[2], res_ids)
      File "/home/stack/neutron/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 417, in assertIn
        self.assertThat(haystack, Contains(needle), message)
      File "/home/stack/neutron/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 498, in assertThat
        raise mismatch_error
    testtools.matchers._impl.MismatchError: '8a6b1ce0-fc2e-40b0-bc98-a59722d96a3f' not in ['6f6c1774-b351-4763-a8d8-184c3bdf01de', '8cee4a38-63e8-4c71-99e9-611b61aa4c90']

Test is being fixed upstream to work reliably (and properly sort test objects so result does not depend on UUIDs generation order)

Comment 3 errata-xmlrpc 2019-11-07 14:00:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:3803


Note You need to log in before you can comment on or make changes to this bug.