← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1803745] Re: neutron-dynamic-routing: unit test failures with master branch of neutron

 

Updating status on old gate-failure bug

** 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/1803745

Title:
  neutron-dynamic-routing: unit test failures with master branch of
  neutron

Status in neutron:
  Fix Released
Status in neutron-dynamic-routing package in Ubuntu:
  Triaged

Bug description:
  neutron-dynamic-routing unit tests currently fail with the tip of the
  master branch of neutron; project has neutron is its requirements.txt
  however the latest release version on pypi is from the rocky release.

  ==============================
  Failed 3 tests - output below:
  ==============================

  neutron_dynamic_routing.tests.unit.services.bgp.scheduler.test_bgp_dragent_scheduler.TestRescheduleBgpSpeaker.test_no_schedule_with_non_available_dragent
  ---------------------------------------------------------------------------------------------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      b'Traceback (most recent call last):'
      b'  File "/home/jamespage/src/openstack/neutron-dynamic-routing/.tox/py37/lib/python3.7/site-packages/neutron/tests/base.py", line 151, in func'
      b'    return f(self, *args, **kwargs)'
      b'  File "/home/jamespage/src/openstack/neutron-dynamic-routing/neutron_dynamic_routing/tests/unit/services/bgp/scheduler/test_bgp_dragent_scheduler.py", line 341, in test_no_schedule_with_non_available_dragent'
      b'    self.assertEqual(binds, [])'
      b'  File "/home/jamespage/src/openstack/neutron-dynamic-routing/.tox/py37/lib/python3.7/site-packages/testtools/testcase.py", line 411, in assertEqual'
      b'    self.assertThat(observed, matcher, message)'
      b'  File "/home/jamespage/src/openstack/neutron-dynamic-routing/.tox/py37/lib/python3.7/site-packages/testtools/testcase.py", line 498, in assertThat'
      b'    raise mismatch_error'
      b'testtools.matchers._impl.MismatchError: !=:'
      b"reference = [<neutron_dynamic_routing.db.bgp_dragentscheduler_db.BgpSpeakerDrAgentBinding[object at 7f9b757c9f28] {bgp_speaker_id='foo_bgp_speaker_id', agent_id='0b8b15c5-9753-4907-a168-8bf83ee9d2e7'}>]"
      b'actual    = []'
      b''
      b''

  neutron_dynamic_routing.tests.unit.services.bgp.scheduler.test_bgp_dragent_scheduler.TestRescheduleBgpSpeaker.test_schedule_unbind_bgp_speaker
  ----------------------------------------------------------------------------------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      b'Traceback (most recent call last):'
      b'  File "/home/jamespage/src/openstack/neutron-dynamic-routing/.tox/py37/lib/python3.7/site-packages/neutron/tests/base.py", line 151, in func'
      b'    return f(self, *args, **kwargs)'
      b'  File "/home/jamespage/src/openstack/neutron-dynamic-routing/neutron_dynamic_routing/tests/unit/services/bgp/scheduler/test_bgp_dragent_scheduler.py", line 349, in test_schedule_unbind_bgp_speaker'
      b'    self.assertEqual(binds, [])'
      b'  File "/home/jamespage/src/openstack/neutron-dynamic-routing/.tox/py37/lib/python3.7/site-packages/testtools/testcase.py", line 411, in assertEqual'
      b'    self.assertThat(observed, matcher, message)'
      b'  File "/home/jamespage/src/openstack/neutron-dynamic-routing/.tox/py37/lib/python3.7/site-packages/testtools/testcase.py", line 498, in assertThat'
      b'    raise mismatch_error'
      b'testtools.matchers._impl.MismatchError: !=:'
      b"reference = [<neutron_dynamic_routing.db.bgp_dragentscheduler_db.BgpSpeakerDrAgentBinding[object at 7f0ea1638278] {bgp_speaker_id='foo_bgp_speaker_id', agent_id='1d29ef64-1455-4e1e-849f-34f5d8ceee9f'}>]"
      b'actual    = []'
      b''
      b''

  neutron_dynamic_routing.tests.unit.services.bgp.scheduler.test_bgp_dragent_scheduler.TestRescheduleBgpSpeaker.test_reschedule_bgp_speaker_bound_to_down_dragent
  ---------------------------------------------------------------------------------------------------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      b'Traceback (most recent call last):'
      b'  File "/home/jamespage/src/openstack/neutron-dynamic-routing/.tox/py37/lib/python3.7/site-packages/neutron/tests/base.py", line 151, in func'
      b'    return f(self, *args, **kwargs)'
      b'  File "/home/jamespage/src/openstack/neutron-dynamic-routing/neutron_dynamic_routing/tests/unit/services/bgp/scheduler/test_bgp_dragent_scheduler.py", line 333, in test_reschedule_bgp_speaker_bound_to_down_dragent'
      b'    self.assertEqual(binds[0].agent_id, agents[1].id)'
      b'  File "/home/jamespage/src/openstack/neutron-dynamic-routing/.tox/py37/lib/python3.7/site-packages/testtools/testcase.py", line 411, in assertEqual'
      b'    self.assertThat(observed, matcher, message)'
      b'  File "/home/jamespage/src/openstack/neutron-dynamic-routing/.tox/py37/lib/python3.7/site-packages/testtools/testcase.py", line 498, in assertThat'
      b'    raise mismatch_error'
      b'testtools.matchers._impl.MismatchError: !=:'
      b"reference = '1129a824-aa3f-4a8a-aba3-62fccf1b4d12'"
      b"actual    = 'ed467789-07e8-41fd-9cf2-fbcb18e1fdd7'"
      b''
      b''

  This is reproducable by directly installing the neutron from git into
  the virtualenv:

  pip install --upgrade
  git+https://github.com/openstack/neutron.git#egg=neutron

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


References