Disable in-band flow management in the ovs bridges

Bug #1992953 reported by Slawek Kaplonski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Slawek Kaplonski

Bug Description

Currently when restarting neutron, neutron do following setup

a) set controller 127.0.0.1
b) set out-of-band mode

between a) and b), ovs runs with in-band mode and it has hidden flow in bridge. The hidden flow causing odd dataplane flow.

To avoid that potensial odd dataplane flow we should do one of below:
a) configure the controller and set it to out-of-band in a single db transaction, i.e. "ovs-vsctl set-controller br-tenant tcp:127.0.0.1:6633 -- set controller br-tenant connection-mode=out-of-band" or
b) configure disable-in-band to true for the bridge before configuring the controller, i.e. “ovs-vsctl set bridge br-tenant other-config:disable-in-band=true”

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

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/861351

Changed in neutron:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/861351
Committed: https://opendev.org/openstack/neutron/commit/8fcf00a36dfcec80bba73b63896d806f48835faf
Submitter: "Zuul (22348)"
Branch: master

commit 8fcf00a36dfcec80bba73b63896d806f48835faf
Author: Slawek Kaplonski <email address hidden>
Date: Fri Oct 14 11:58:02 2022 +0200

    Disable in-band management for bridges before setting up controllers

    Disabling in-band management for bridge will effectively disable it for
    all controllers which are or will be set for the bridge. This will
    prevent us from having short time between configuring controller and
    setting connection_mode of the controller to "out-of-band" when
    controller works in the default "in-band" connection mode and adds some
    hidden flows to the bridge.

    Closes-Bug: #1992953
    Change-Id: Ibca81eb59fbfad71f223832228f408fb248c5dfa

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/zed)

Fix proposed to branch: stable/zed
Review: https://review.opendev.org/c/openstack/neutron/+/861622

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

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/neutron/+/861623

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

Fix proposed to branch: stable/xena
Review: https://review.opendev.org/c/openstack/neutron/+/861624

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

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/neutron/+/861625

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

Fix proposed to branch: stable/victoria
Review: https://review.opendev.org/c/openstack/neutron/+/861705

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

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/c/openstack/neutron/+/861706

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

Fix proposed to branch: stable/train
Review: https://review.opendev.org/c/openstack/neutron/+/861707

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

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/c/openstack/neutron/+/861708

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

Fix proposed to branch: stable/rocky
Review: https://review.opendev.org/c/openstack/neutron/+/861626

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

Fix proposed to branch: stable/queens
Review: https://review.opendev.org/c/openstack/neutron/+/861627

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/861622
Committed: https://opendev.org/openstack/neutron/commit/b304dfaca791d3396fc0c6210cb1b1b089970a0f
Submitter: "Zuul (22348)"
Branch: stable/zed

commit b304dfaca791d3396fc0c6210cb1b1b089970a0f
Author: Slawek Kaplonski <email address hidden>
Date: Fri Oct 14 11:58:02 2022 +0200

    Disable in-band management for bridges before setting up controllers

    Disabling in-band management for bridge will effectively disable it for
    all controllers which are or will be set for the bridge. This will
    prevent us from having short time between configuring controller and
    setting connection_mode of the controller to "out-of-band" when
    controller works in the default "in-band" connection mode and adds some
    hidden flows to the bridge.

    Closes-Bug: #1992953
    Change-Id: Ibca81eb59fbfad71f223832228f408fb248c5dfa
    (cherry picked from commit 8fcf00a36dfcec80bba73b63896d806f48835faf)

tags: added: in-stable-zed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/861625
Committed: https://opendev.org/openstack/neutron/commit/9d826bc77aab36dd194cc471397af68bd4ad39e5
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 9d826bc77aab36dd194cc471397af68bd4ad39e5
Author: Slawek Kaplonski <email address hidden>
Date: Fri Oct 14 11:58:02 2022 +0200

    Disable in-band management for bridges before setting up controllers

    Disabling in-band management for bridge will effectively disable it for
    all controllers which are or will be set for the bridge. This will
    prevent us from having short time between configuring controller and
    setting connection_mode of the controller to "out-of-band" when
    controller works in the default "in-band" connection mode and adds some
    hidden flows to the bridge.

    Closes-Bug: #1992953
    Change-Id: Ibca81eb59fbfad71f223832228f408fb248c5dfa
    (cherry picked from commit 8fcf00a36dfcec80bba73b63896d806f48835faf)

tags: added: in-stable-wallaby
tags: added: in-stable-victoria
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/victoria)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/861705
Committed: https://opendev.org/openstack/neutron/commit/32a8b2d3388b0e1ed4b19a5f3b68a99762f9f70b
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit 32a8b2d3388b0e1ed4b19a5f3b68a99762f9f70b
Author: Slawek Kaplonski <email address hidden>
Date: Fri Oct 14 11:58:02 2022 +0200

    Disable in-band management for bridges before setting up controllers

    Disabling in-band management for bridge will effectively disable it for
    all controllers which are or will be set for the bridge. This will
    prevent us from having short time between configuring controller and
    setting connection_mode of the controller to "out-of-band" when
    controller works in the default "in-band" connection mode and adds some
    hidden flows to the bridge.

    Conflicts:
        neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ovs_bridge.py
        neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/openflow/native/ovs_bridge_test_base.py

    Closes-Bug: #1992953
    Change-Id: Ibca81eb59fbfad71f223832228f408fb248c5dfa
    (cherry picked from commit 8fcf00a36dfcec80bba73b63896d806f48835faf)
    (cherry picked from commit 9d826bc77aab36dd194cc471397af68bd4ad39e5)

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/861706
Committed: https://opendev.org/openstack/neutron/commit/b662fd25773647259f0e8c197beafa6a5ca385d4
Submitter: "Zuul (22348)"
Branch: stable/ussuri

commit b662fd25773647259f0e8c197beafa6a5ca385d4
Author: Slawek Kaplonski <email address hidden>
Date: Fri Oct 14 11:58:02 2022 +0200

    Disable in-band management for bridges before setting up controllers

    Disabling in-band management for bridge will effectively disable it for
    all controllers which are or will be set for the bridge. This will
    prevent us from having short time between configuring controller and
    setting connection_mode of the controller to "out-of-band" when
    controller works in the default "in-band" connection mode and adds some
    hidden flows to the bridge.

    Conflicts:
        neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ovs_bridge.py
        neutron/tests/functional/agent/test_ovs_lib.py
        neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/openflow/native/ovs_bridge_test_base.py

    Closes-Bug: #1992953
    Change-Id: Ibca81eb59fbfad71f223832228f408fb248c5dfa
    (cherry picked from commit 8fcf00a36dfcec80bba73b63896d806f48835faf)
    (cherry picked from commit 9d826bc77aab36dd194cc471397af68bd4ad39e5)
    (cherry picked from commit 32a8b2d3388b0e1ed4b19a5f3b68a99762f9f70b)

tags: added: in-stable-ussuri
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/xena)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/861624
Committed: https://opendev.org/openstack/neutron/commit/5dac0105c217d2ae6d882e1dd29f10c50bab6998
Submitter: "Zuul (22348)"
Branch: stable/xena

commit 5dac0105c217d2ae6d882e1dd29f10c50bab6998
Author: Slawek Kaplonski <email address hidden>
Date: Fri Oct 14 11:58:02 2022 +0200

    Disable in-band management for bridges before setting up controllers

    Disabling in-band management for bridge will effectively disable it for
    all controllers which are or will be set for the bridge. This will
    prevent us from having short time between configuring controller and
    setting connection_mode of the controller to "out-of-band" when
    controller works in the default "in-band" connection mode and adds some
    hidden flows to the bridge.

    Closes-Bug: #1992953
    Change-Id: Ibca81eb59fbfad71f223832228f408fb248c5dfa
    (cherry picked from commit 8fcf00a36dfcec80bba73b63896d806f48835faf)

tags: added: in-stable-xena
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/train)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/861707
Committed: https://opendev.org/openstack/neutron/commit/d163bf7e4a1ca34eb9cbcd7ee408026fb4aca127
Submitter: "Zuul (22348)"
Branch: stable/train

commit d163bf7e4a1ca34eb9cbcd7ee408026fb4aca127
Author: Slawek Kaplonski <email address hidden>
Date: Fri Oct 14 11:58:02 2022 +0200

    Disable in-band management for bridges before setting up controllers

    Disabling in-band management for bridge will effectively disable it for
    all controllers which are or will be set for the bridge. This will
    prevent us from having short time between configuring controller and
    setting connection_mode of the controller to "out-of-band" when
    controller works in the default "in-band" connection mode and adds some
    hidden flows to the bridge.

    Conflicts:
        neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ovs_bridge.py
        neutron/tests/functional/agent/test_ovs_lib.py
        neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/openflow/native/ovs_bridge_test_base.py

    Closes-Bug: #1992953
    Change-Id: Ibca81eb59fbfad71f223832228f408fb248c5dfa
    (cherry picked from commit 8fcf00a36dfcec80bba73b63896d806f48835faf)
    (cherry picked from commit 9d826bc77aab36dd194cc471397af68bd4ad39e5)
    (cherry picked from commit 32a8b2d3388b0e1ed4b19a5f3b68a99762f9f70b)
    (cherry picked from commit b662fd25773647259f0e8c197beafa6a5ca385d4)

tags: added: in-stable-train
tags: added: in-stable-yoga
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/861623
Committed: https://opendev.org/openstack/neutron/commit/0889dda9904dc67578678b75936b055a9cfcbb1e
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit 0889dda9904dc67578678b75936b055a9cfcbb1e
Author: Slawek Kaplonski <email address hidden>
Date: Fri Oct 14 11:58:02 2022 +0200

    Disable in-band management for bridges before setting up controllers

    Disabling in-band management for bridge will effectively disable it for
    all controllers which are or will be set for the bridge. This will
    prevent us from having short time between configuring controller and
    setting connection_mode of the controller to "out-of-band" when
    controller works in the default "in-band" connection mode and adds some
    hidden flows to the bridge.

    Closes-Bug: #1992953
    Change-Id: Ibca81eb59fbfad71f223832228f408fb248c5dfa
    (cherry picked from commit 8fcf00a36dfcec80bba73b63896d806f48835faf)

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/861708
Committed: https://opendev.org/openstack/neutron/commit/55564befea3c7d827691694963f54dbf834d1fad
Submitter: "Zuul (22348)"
Branch: stable/stein

commit 55564befea3c7d827691694963f54dbf834d1fad
Author: Slawek Kaplonski <email address hidden>
Date: Fri Oct 14 11:58:02 2022 +0200

    Disable in-band management for bridges before setting up controllers

    Disabling in-band management for bridge will effectively disable it for
    all controllers which are or will be set for the bridge. This will
    prevent us from having short time between configuring controller and
    setting connection_mode of the controller to "out-of-band" when
    controller works in the default "in-band" connection mode and adds some
    hidden flows to the bridge.

    Conflicts:
        neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ovs_bridge.py
        neutron/tests/functional/agent/test_ovs_lib.py
        neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/openflow/native/ovs_bridge_test_base.py

    Closes-Bug: #1992953
    Change-Id: Ibca81eb59fbfad71f223832228f408fb248c5dfa
    (cherry picked from commit 8fcf00a36dfcec80bba73b63896d806f48835faf)
    (cherry picked from commit 9d826bc77aab36dd194cc471397af68bd4ad39e5)
    (cherry picked from commit 32a8b2d3388b0e1ed4b19a5f3b68a99762f9f70b)
    (cherry picked from commit b662fd25773647259f0e8c197beafa6a5ca385d4)
    (cherry picked from commit d163bf7e4a1ca34eb9cbcd7ee408026fb4aca127)

tags: added: in-stable-stein
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 18.6.0

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron stein-eol

This issue was fixed in the openstack/neutron stein-eol release.

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

Change abandoned by "Slawek Kaplonski <email address hidden>" on branch: stable/rocky
Review: https://review.opendev.org/c/openstack/neutron/+/861626
Reason: Rocky is EOL now

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

Change abandoned by "Slawek Kaplonski <email address hidden>" on branch: stable/queens
Review: https://review.opendev.org/c/openstack/neutron/+/861627
Reason: Queens is EOL now

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 19.5.0

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 22.0.0.0rc1

This issue was fixed in the openstack/neutron 22.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 20.3.0

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 21.1.0

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron train-eol

This issue was fixed in the openstack/neutron train-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron ussuri-eol

This issue was fixed in the openstack/neutron ussuri-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron victoria-eom

This issue was fixed in the openstack/neutron victoria-eom 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.