← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2076328] Re: SubnetsSearchCriteriaTest.test_list_pagination_page_reverse_with_href_links fails sporadically

 

Reviewed:  https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/926201
Committed: https://opendev.org/openstack/neutron-tempest-plugin/commit/0274381d31b7a5e6dff7a8e3ce8ff53d5c97d443
Submitter: "Zuul (22348)"
Branch:    master

commit 0274381d31b7a5e6dff7a8e3ce8ff53d5c97d443
Author: yatinkarel <ykarel@xxxxxxxxxx>
Date:   Tue Aug 13 18:14:37 2024 +0530

    Filter resources in pagination tests to avoid random failures
    
    When running tempest with higher concurrency, pagination tests
    randomly fails as returned resources also include resources
    created from other concurrent tests.
    Filtering the returned results with names should help.
    
    Closes-Bug: #2076328
    Change-Id: I72de57cc382bb06606187c62b51ebb613f76291c


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2076328

Title:
  SubnetsSearchCriteriaTest.test_list_pagination_page_reverse_with_href_links
  fails sporadically

Status in neutron:
  Fix Released

Bug description:
  neutron_tempest_plugin.api.test_subnets.SubnetsSearchCriteriaTest.test_list_pagination_page_reverse_with_href_links
  fails time to time with something like tihs:

  Traceback (most recent call last):
    File "/opt/stack/tempest/.tox/tempest/lib/python3.10/site-packages/neutron_tempest_plugin/api/test_subnets.py", line 62, in test_list_pagination_page_reverse_with_href_links
      self._test_list_pagination_page_reverse_with_href_links()
    File "/opt/stack/tempest/.tox/tempest/lib/python3.10/site-packages/neutron_tempest_plugin/api/base.py", line 1413, in inner
      return f(self, *args, **kwargs)
    File "/opt/stack/tempest/.tox/tempest/lib/python3.10/site-packages/neutron_tempest_plugin/api/base.py", line 1404, in inner
      return f(self, *args, **kwargs)
    File "/opt/stack/tempest/.tox/tempest/lib/python3.10/site-packages/neutron_tempest_plugin/api/base.py", line 1629, in _test_list_pagination_page_reverse_with_href_links
      self.assertSameOrder(expected_resources, reversed(resources))
    File "/opt/stack/tempest/.tox/tempest/lib/python3.10/site-packages/neutron_tempest_plugin/api/base.py", line 1441, in assertSameOrder
      self.assertEqual(len(original), len(actual))
    File "/opt/stack/tempest/.tox/tempest/lib/python3.10/site-packages/testtools/testcase.py", line 419, in assertEqual
      self.assertThat(observed, matcher, message)
    File "/opt/stack/tempest/.tox/tempest/lib/python3.10/site-packages/testtools/testcase.py", line 509, in assertThat
      raise mismatch_error
  testtools.matchers._impl.MismatchError: 7 != 8

  Similar bug for pagination from the past:
  https://bugs.launchpad.net/neutron/+bug/1881311

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2076328/+subscriptions



References