yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #78316
[Bug 1820293] Re: Error disassociating bgpspeaker from BGP dr-agent
Reviewed: https://review.opendev.org/643619
Committed: https://git.openstack.org/cgit/openstack/neutron-dynamic-routing/commit/?id=efaf23a962c3f9fe35d732b93069d216487fb7c2
Submitter: Zuul
Branch: master
commit efaf23a962c3f9fe35d732b93069d216487fb7c2
Author: Ryan Tidwell <rtidwell@xxxxxxxx>
Date: Fri Mar 15 10:49:06 2019 -0500
Ignore DrAgentAssociationError in test_remove_add_speaker_agent
The BGP service plugin will automatically re-schedule BGP speakers
that are unscheduled with a periodic job. This introduces a race
condition that the basic scenario test job needs to account for. This
change causes the test_remove_add_speaker_agent() test to ignore
any DrAgentAssociationError when attempting to explicitly reschedule
a BGP speaker that has just unscheduled. Since the content of the
test is not affected by catching and ignoring these errors, we can
safely ignore the error while enabling the test to pass consistently.
Change-Id: I10b11ae52b36552d448cecaea03cfa1baaca026a
Closes-Bug: #1820293
** 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/1820293
Title:
Error disassociating bgpspeaker from BGP dr-agent
Status in neutron:
Fix Released
Bug description:
I've been noticing the scenario jobs in neutron-dynamic-routing (non-
voting) failing intermittently. Upon further investigation, it appears
these failures are happening when attempting to disassociate a
bgpspeaker from an agent.
2019-02-26 13:08:57.781145 | primary | ==============================
2019-02-26 13:08:57.781222 | primary | Failed 1 tests - output below:
2019-02-26 13:08:57.781292 | primary | ==============================
2019-02-26 13:08:57.781317 | primary |
2019-02-26 13:08:57.781574 | primary | neutron_dynamic_routing.tests.tempest.scenario.basic.test_basic.BgpSpeakerBasicTest.test_remove_add_speaker_agent[id-aa6c565c-ded3-413b-8dc9-3928b3b0e38f]
2019-02-26 13:08:57.781840 | primary | ----------------------------------------------------------------------------------------------------------------------------------------------------------
2019-02-26 13:08:57.781865 | primary |
2019-02-26 13:08:57.781918 | primary | Captured traceback:
2019-02-26 13:08:57.781971 | primary | ~~~~~~~~~~~~~~~~~~~
2019-02-26 13:08:57.782053 | primary | Traceback (most recent call last):
2019-02-26 13:08:57.782322 | primary | File "/opt/stack/new/neutron-dynamic-routing/neutron_dynamic_routing/tests/tempest/scenario/basic/test_basic.py", line 103, in test_remove_add_speaker_agent
2019-02-26 13:08:57.782456 | primary | self.bgp_client.add_bgp_speaker_to_dragent(agent_id, speaker_id)
2019-02-26 13:08:57.782695 | primary | File "/opt/stack/new/neutron-dynamic-routing/neutron_dynamic_routing/tests/tempest/bgp_client.py", line 132, in add_bgp_speaker_to_dragent
2019-02-26 13:08:57.782793 | primary | resp, body = self.post(uri, update_body)
2019-02-26 13:08:57.782914 | primary | File "tempest/lib/common/rest_client.py", line 280, in post
2019-02-26 13:08:57.783056 | primary | return self.request('POST', url, extra_headers, headers, body, chunked)
2019-02-26 13:08:57.783183 | primary | File "tempest/lib/common/rest_client.py", line 676, in request
2019-02-26 13:08:57.783298 | primary | self._error_checker(resp, resp_body)
2019-02-26 13:08:57.783440 | primary | File "tempest/lib/common/rest_client.py", line 797, in _error_checker
2019-02-26 13:08:57.783572 | primary | raise exceptions.Conflict(resp_body, resp=resp)
2019-02-26 13:08:57.783714 | primary | tempest.lib.exceptions.Conflict: Conflict with state of target resource
2019-02-26 13:08:57.783993 | primary | Details: {u'message': u'BgpDrAgent f67420d5-6b3b-4635-8a26-32347b188638 is already associated to a BGP speaker.', u'detail': u'', u'type': u'DrAgentAssociationError'}
This should be cleaned up so that these jobs can eventually become
voting jobs, and so that a potential user-facing issue is addressed.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1820293/+subscriptions
References