Remove "unknown" from router ports and localports addresses column

Bug #1838535 reported by Lucas Alvares Gomes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-ovn
Fix Released
Medium
Lucas Alvares Gomes

Bug Description

networking-ovn is setting the "unknown" address on the logical switch ports solely based on whether the port security was enabled or disabled. That's not how it's intended to work.

That address should only be set for the normal LSPs (no router, localport or localnet types).

This bug is based on numans feedback (a core OVN developer):

<numans> i remember that a patch in networking-ovn added "unknown" addr if the port has no port security
<numans> but I think it should not add unknown for router ports, localnet ports..
<numans> ovn might unnecessary deliver the packets if the destination mac is not known to all these ports.

Changed in networking-ovn:
assignee: nobody → Lucas Alvares Gomes (lucasagomes)
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-ovn (master)

Fix proposed to branch: master
Review: https://review.opendev.org/673845

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

Reviewed: https://review.opendev.org/673845
Committed: https://git.openstack.org/cgit/openstack/networking-ovn/commit/?id=6a89dbfe47ae1f384e08fede3bb6afae2ada7b9c
Submitter: Zuul
Branch: master

commit 6a89dbfe47ae1f384e08fede3bb6afae2ada7b9c
Author: Lucas Alvares Gomes <email address hidden>
Date: Wed Jul 31 13:41:34 2019 +0100

    Only set "unknown" in LSP that makes sense

    Prior to this patch, the "unknown" address was being set the logical
    switch ports solely based on whether the port security was enabled or
    disabled. That's not how it's intended to work.

    With this patch the "unknown" address is only set to the normal logical
    switch ports, those which types are "router", "localnet" or "localport"
    won't be affected.

    The maintenance task was updated to correct this behavior for existing
    ports (the maintenance was suppose to be removed in the T cycle, this
    patch bumps it to U cycle instead due to this change).

    Closes-Bug: #1838535
    Related-Bug: #1815270
    Change-Id: I3c01bd7d1685c8a7e13a55e545e98baf19e9a0f9
    Signed-off-by: Lucas Alvares Gomes <email address hidden>

Changed in networking-ovn:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-ovn 7.0.0.0b1

This issue was fixed in the openstack/networking-ovn 7.0.0.0b1 development milestone.

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

Fix proposed to branch: stable/train
Review: https://review.opendev.org/699642

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

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/699643

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

Fix proposed to branch: stable/rocky
Review: https://review.opendev.org/699655

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

Fix proposed to branch: stable/queens
Review: https://review.opendev.org/699661

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-ovn (stable/train)

Reviewed: https://review.opendev.org/699642
Committed: https://git.openstack.org/cgit/openstack/networking-ovn/commit/?id=b5ca90feacd467a8991fb42bae7d2b4c0095fa5d
Submitter: Zuul
Branch: stable/train

commit b5ca90feacd467a8991fb42bae7d2b4c0095fa5d
Author: Lucas Alvares Gomes <email address hidden>
Date: Wed Jul 31 13:41:34 2019 +0100

    Only set "unknown" in LSP that makes sense

    Prior to this patch, the "unknown" address was being set the logical
    switch ports solely based on whether the port security was enabled or
    disabled. That's not how it's intended to work.

    With this patch the "unknown" address is only set to the normal logical
    switch ports, those which types are "router", "localnet" or "localport"
    won't be affected.

    The maintenance task was updated to correct this behavior for existing
    ports (the maintenance was suppose to be removed in the T cycle, this
    patch bumps it to U cycle instead due to this change).

    Closes-Bug: #1838535
    Related-Bug: #1815270
    Change-Id: I3c01bd7d1685c8a7e13a55e545e98baf19e9a0f9
    Signed-off-by: Lucas Alvares Gomes <email address hidden>
    (cherry picked from commit 6a89dbfe47ae1f384e08fede3bb6afae2ada7b9c)

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

Reviewed: https://review.opendev.org/699643
Committed: https://git.openstack.org/cgit/openstack/networking-ovn/commit/?id=86eee7957b081c75d4d4d0cd810e77f10937bda1
Submitter: Zuul
Branch: stable/stein

commit 86eee7957b081c75d4d4d0cd810e77f10937bda1
Author: Lucas Alvares Gomes <email address hidden>
Date: Wed Jul 31 13:41:34 2019 +0100

    Only set "unknown" in LSP that makes sense

    Prior to this patch, the "unknown" address was being set the logical
    switch ports solely based on whether the port security was enabled or
    disabled. That's not how it's intended to work.

    With this patch the "unknown" address is only set to the normal logical
    switch ports, those which types are "router", "localnet" or "localport"
    won't be affected.

    The maintenance task was updated to correct this behavior for existing
    ports (the maintenance was suppose to be removed in the T cycle, this
    patch bumps it to U cycle instead due to this change).

    Closes-Bug: #1838535
    Related-Bug: #1815270
    Change-Id: I3c01bd7d1685c8a7e13a55e545e98baf19e9a0f9
    Signed-off-by: Lucas Alvares Gomes <email address hidden>
    (cherry picked from commit 6a89dbfe47ae1f384e08fede3bb6afae2ada7b9c)

tags: added: in-stable-stein
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-ovn (stable/rocky)

Reviewed: https://review.opendev.org/699655
Committed: https://git.openstack.org/cgit/openstack/networking-ovn/commit/?id=13f7bedf3b7087f2ae74554f92f52406c74d0f01
Submitter: Zuul
Branch: stable/rocky

commit 13f7bedf3b7087f2ae74554f92f52406c74d0f01
Author: Lucas Alvares Gomes <email address hidden>
Date: Wed Jul 31 13:41:34 2019 +0100

    Only set "unknown" in LSP that makes sense

    Prior to this patch, the "unknown" address was being set the logical
    switch ports solely based on whether the port security was enabled or
    disabled. That's not how it's intended to work.

    With this patch the "unknown" address is only set to the normal logical
    switch ports, those which types are "router", "localnet" or "localport"
    won't be affected.

    The maintenance task was updated to correct this behavior for existing
    ports (the maintenance was suppose to be removed in the T cycle, this
    patch bumps it to U cycle instead due to this change).

    Closes-Bug: #1838535
    Related-Bug: #1815270
    Change-Id: I3c01bd7d1685c8a7e13a55e545e98baf19e9a0f9
    Signed-off-by: Lucas Alvares Gomes <email address hidden>
    (cherry picked from commit 6a89dbfe47ae1f384e08fede3bb6afae2ada7b9c)

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-ovn (stable/queens)

Reviewed: https://review.opendev.org/699661
Committed: https://git.openstack.org/cgit/openstack/networking-ovn/commit/?id=63ff1f433ab9fbd56fe82e6ef48da714a3aeef0c
Submitter: Zuul
Branch: stable/queens

commit 63ff1f433ab9fbd56fe82e6ef48da714a3aeef0c
Author: Lucas Alvares Gomes <email address hidden>
Date: Wed Jul 31 13:41:34 2019 +0100

    Only set "unknown" in LSP that makes sense

    Prior to this patch, the "unknown" address was being set the logical
    switch ports solely based on whether the port security was enabled or
    disabled. That's not how it's intended to work.

    With this patch the "unknown" address is only set to the normal logical
    switch ports, those which types are "router", "localnet" or "localport"
    won't be affected.

    The maintenance task was updated to correct this behavior for existing
    ports (the maintenance was suppose to be removed in the T cycle, this
    patch bumps it to U cycle instead due to this change).

    Closes-Bug: #1838535
    Related-Bug: #1815270

    Conflicts:
       networking_ovn/common/ovn_client.py
       networking_ovn/common/constants.py

    Change-Id: I3c01bd7d1685c8a7e13a55e545e98baf19e9a0f9
    Signed-off-by: Lucas Alvares Gomes <email address hidden>
    (cherry picked from commit 6a89dbfe47ae1f384e08fede3bb6afae2ada7b9c)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-ovn 7.1.0

This issue was fixed in the openstack/networking-ovn 7.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-ovn 6.0.1

This issue was fixed in the openstack/networking-ovn 6.0.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-ovn 5.1.0

This issue was fixed in the openstack/networking-ovn 5.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-ovn queens-eol

This issue was fixed in the openstack/networking-ovn queens-eol 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.