TestMl2PortsV2.test_update_port_host_id_changed may fail depending on ML2 driver

Bug #1545218 reported by Isaku Yamahata
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-odl
Fix Released
Critical
Isaku Yamahata
neutron
Fix Released
Medium
Isaku Yamahata

Bug Description

TestMl2PortsV2.test_update_port_host_id_changed may fail depending on ML2 driver.

Concretely with ODL ML2 driver, the test fails because it changes port status to ACTIVE on port binding.
The assumption of the test is not always true.

Changed in neutron:
assignee: nobody → Isaku Yamahata (yamahata)
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/279843

Changed in neutron:
status: New → In Progress
Changed in networking-odl:
assignee: nobody → Isaku Yamahata (yamahata)
Revision history for this message
Federico Ressi (federico-ressi-9) wrote :
Changed in neutron:
importance: Undecided → Medium
Changed in networking-odl:
importance: Undecided → High
Changed in networking-odl:
status: New → In Progress
importance: High → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-odl (master)

Fix proposed to branch: master
Review: https://review.openstack.org/282446

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

Reviewed: https://review.openstack.org/282446
Committed: https://git.openstack.org/cgit/openstack/networking-odl/commit/?id=d8c9c53a51ff344a6c6850a4c92101cad2f4ccc3
Submitter: Jenkins
Branch: master

commit d8c9c53a51ff344a6c6850a4c92101cad2f4ccc3
Author: Isaku Yamahata <email address hidden>
Date: Fri Feb 19 09:46:10 2016 -0800

    bug work around of bug #1545218

    The bug of 1545218 is a blocker of networking-odl. The effort to fix is
    on going, but it would take time.
    This patch make the test skip as a work around to unblock the bug.
    Once the right fix goes in, this patch should be reverted.

    Change-Id: I6b2d6453e817d43c41eab779754672cd919a8a0a
    Partial-bug: #1545218

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

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

commit ad7b72963d462f9a512eca3b5a054d8ea33f2324
Author: Isaku Yamahata <email address hidden>
Date: Fri Feb 12 18:53:38 2016 -0800

    unbreak unit test caused by c5fa665de3173f3ad82cc3e7624b5968bc52c08d

    The change set of c5fa665de3173f3ad82cc3e7624b5968bc52c08d
    introduced a new test TestMl2PortsV2.test_update_port_host_id_changed
    which isn't always correct depending on driver.
    ML2 driver may change port status to ACTIVE on port binding.
    With such driver, the test fails. Grep showed 5 decomposed driver
    don't have the assumption.
    So this patch makes the test to run only _process_bind_port() without
    calling full update_port() so that precommit/postcommit don't get
    involved.

    Change-Id: Ib034e2121914e5f253eb673261f26b4c8487f431
    Closes-Bug: #1545218

Changed in neutron:
status: In Progress → Fix Released
Changed in networking-odl:
status: In Progress → Fix Released
Revision history for this message
Federico Ressi (federico-ressi-9) wrote :

This should also close its duplicate bug:

https://bugs.launchpad.net/networking-odl/+bug/1545827

Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/neutron 8.0.0.0b3

This issue was fixed in the openstack/neutron 8.0.0.0b3 development milestone.

Revision history for this message
Isaku Yamahata (yamahata) wrote :

FYI I closed 1545827.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/308643

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-odl (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/308649

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

Reviewed: https://review.openstack.org/308643
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=fa2c3784a65f293ff44c1d3dac3f91065f0dfc97
Submitter: Jenkins
Branch: stable/liberty

commit fa2c3784a65f293ff44c1d3dac3f91065f0dfc97
Author: Isaku Yamahata <email address hidden>
Date: Fri Feb 12 18:53:38 2016 -0800

    unbreak unit test caused by c5fa665de3173f3ad82cc3e7624b5968bc52c08d

    The change set of c5fa665de3173f3ad82cc3e7624b5968bc52c08d
    introduced a new test TestMl2PortsV2.test_update_port_host_id_changed
    which isn't always correct depending on driver.
    ML2 driver may change port status to ACTIVE on port binding.
    With such driver, the test fails. Grep showed 5 decomposed driver
    don't have the assumption.
    So this patch makes the test to run only _process_bind_port() without
    calling full update_port() so that precommit/postcommit don't get
    involved.

    Change-Id: Ib034e2121914e5f253eb673261f26b4c8487f431
    Closes-Bug: #1545218
    (cherry picked from commit ad7b72963d462f9a512eca3b5a054d8ea33f2324)

tags: added: in-stable-liberty
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on networking-odl (stable/liberty)

Change abandoned by Isaku Yamahata (<email address hidden>) on branch: stable/liberty
Review: https://review.openstack.org/308649
Reason: As it's now unnecessary as Ihar stated.

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

Change abandoned by Dave Walker (<email address hidden>) on branch: stable/kilo
Review: https://review.openstack.org/306300
Reason:
stable/kilo closed for 2015.1.4

This release is now pending its final release and no freeze exception has
been seen for this changeset. Therefore, I am now abandoning this change.

If this is not correct, please urgently raise a thread on openstack-dev.

More details at: https://wiki.openstack.org/wiki/StableBranch

Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/neutron 7.1.0

This issue was fixed in the openstack/neutron 7.1.0 release.

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.