Intermittent failure in BGP API tests

Bug #1553374 reported by Ryan Tidwell
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Invalid
Medium
Ryan Tidwell

Bug Description

Seeing the following failure intermittently in API test jobs:

http://paste.openstack.org/show/489400/

In the 2 failed jobs [1][2] I've analyzed, test_get_advertised_routes_floating_ips() runs before this failed test. test_get_advertised_routes_null_address_scope() assumes no floating IP associations and no address scopes so that it can assert that no routes are being announced by a bgp_speaker. My theory is that the floating IP created in test_get_advertised_routes_floating_ips() doesn't get cleaned up fast enough, and test_get_advertised_routes_null_address_scope() runs before the floating IP from the previous test has actually been cleaned up.

[1] http://logs.openstack.org/85/267985/9/check/gate-neutron-dsvm-api/b09db1c/console.html
[2] http://logs.openstack.org/76/282876/17/check/gate-neutron-dsvm-api/b49cae9/console.html

Changed in neutron:
assignee: nobody → Ryan Tidwell (ryan-tidwell)
Changed in neutron:
milestone: none → mitaka-rc1
importance: Undecided → High
status: New → Confirmed
tags: added: gate-failure
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/288818

Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

On closer inspection there are a bunch of bgp tests that are not designed to be isolated. These needs more work, because as they are they are a time bomb waiting to happen irrespective of the lockfixture. In fact, the lockfixture is ineffective to synchronize server side operations, so please remove them

Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

I meant to add, with test execution, across multiple tests

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/288825

Changed in neutron:
assignee: Ryan Tidwell (ryan-tidwell) → Armando Migliaccio (armando-migliaccio)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (master)

Reviewed: https://review.openstack.org/288818
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=3f556074c0219bab373535964888677da09dd27c
Submitter: Jenkins
Branch: master

commit 3f556074c0219bab373535964888677da09dd27c
Author: Carl Baldwin <email address hidden>
Date: Fri Mar 4 17:40:50 2016 -0700

    Skip racey BGP tests

    Change-Id: I58e6056a9fe6460352855461e74700f4934e6e3f
    Related-bug: #1553374

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/288921

Changed in neutron:
assignee: Armando Migliaccio (armando-migliaccio) → Ryan Tidwell (ryan-tidwell)
Revision history for this message
Ryan Tidwell (ryan-tidwell) wrote :

The tests that are problematic are tests that assert functionality outside of an address scope. This includes tests that assert floating IP host route announcements and 1 test that asserts behavior when no address scope or floating IP's are involved. When not asserting floating IP annouincements, these tests can be isolated by simply creating a BGP speaker with advertise_floating_ip_host_routes=False. I have proposed https://review.openstack.org/288921 which does exactly this for a couple of tests.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by Armando Migliaccio (<email address hidden>) on branch: master
Review: https://review.openstack.org/288825
Reason: Abandoning in favor of a more solid approach from Ryan.

Changed in neutron:
milestone: mitaka-rc1 → newton-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Ryan Tidwell (<email address hidden>) on branch: master
Review: https://review.openstack.org/288921

Changed in neutron:
milestone: newton-1 → newton-2
tags: added: l3-ipam-dhcp
Revision history for this message
Carl Baldwin (carl-baldwin) wrote :

Just talked to Ryan. Since we're not running dsvm-api jobs on the neutron-dynamic-routing repo yet, we're not seeing this. We'll keep this open until we do and then check it. Ryan suspects that the contention with floating ips will just be gone by running these tests in isolation.

Changed in neutron:
importance: High → Medium
Changed in neutron:
milestone: newton-2 → newton-3
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

@Carl, I agree that's the reason. Ideally we would kill the contention altogether if every test would have its own external network but that is blocked until we can get rid of the external_network_id config option.

Changed in neutron:
status: In Progress → Invalid
milestone: newton-3 → none
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

No longer applies.

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.