Intermittent unit tests failures in NSX plugin

Bug #1280035 reported by Salvatore Orlando
46
This bug affects 7 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Salvatore Orlando

Bug Description

Observed here: http://logs.openstack.org/92/71692/12/check/gate-neutron-python26/496b1b1/console.html

This behaviour might have been introduced by the patch for introducing a mapping between neutron and nsx uuids for networks.

Tags: nicira
Changed in neutron:
assignee: Salvatore Orlando (salvatore-orlando) → Armando Migliaccio (armando-migliaccio)
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

Actually this might have been introduced by this patch:

https://review.openstack.org/#/c/54584/

which is the mapping between nsx routers uuid and neutron's

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

And interestingly it happens only on python26 tests...at least so far.

Revision history for this message
Salvatore Orlando (salvatore-orlando) wrote :
Changed in neutron:
assignee: Armando Migliaccio (armando-migliaccio) → Salvatore Orlando (salvatore-orlando)
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/73636

Changed in neutron:
status: New → In Progress
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/73832

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (master)

Reviewed: https://review.openstack.org/73832
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=95807c9436be7eb34fe37289d76fb4611ab77783
Submitter: Jenkins
Branch: master

commit 95807c9436be7eb34fe37289d76fb4611ab77783
Author: Salvatore Orlando <email address hidden>
Date: Sat Feb 15 11:46:37 2014 -0800

    Skip a test for nicira service plugin

    test_router_add_interface_subnet_with_port_from_other_tenant
    is causing intermittent failures in unit tests because of
    issues related with sql session autoflush.

    This patch skips this test, since it is already covered
    by another test case in the same module. This should prevent
    job failures while the relevant bug is addressed.

    Change-Id: Iad33dada61d17fad14e569e241f4079465b5f792
    Related-Bug: 1280035

Changed in neutron:
assignee: Salvatore Orlando (salvatore-orlando) → Anita Kuno (anteaya)
Changed in neutron:
assignee: Anita Kuno (anteaya) → Salvatore Orlando (salvatore-orlando)
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/75305

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

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

commit fcad26e394cd6021aab2c94f1179533cc7866f8c
Author: Salvatore Orlando <email address hidden>
Date: Fri Feb 14 08:17:30 2014 -0800

    Use different context for each API request in unit tests

    test_router_add_interface_subnet_with_port_from_other_tenant in
    neutron.tests.unit.test_l3_plugin.L3NatTestCaseBase was mocking
    neutron.context.Context thus performing multiple API requests
    with the same context instance. As a context instance also has
    a DB session attribute, this might cause unexpected side effects,
    especially for plugins which process request asynchronously.

    The plugin neutron.plugins.nicira.NeutronServicePlugin was being
    affected.

    This patch ensures each request has a different context object
    without changing the unit test semantics.

    It also refactors slightly test_edge_router.py in the nicira
    unit test package to avoid executing twice the same unit tests.

    Change-Id: I4895faa00ebd915eb9e259930db2d004a9e78a86
    Closes-Bug: #1280035

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: icehouse-3 → 2014.1
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.