[ovn]router_interface port probability cannot be up

Bug #1983530 reported by ZhouHeng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Unassigned

Bug Description

I have en environment, with 5 neutron-server(W version), 5 ovn(21.03.1)

When adding an interface to the router, the state of the interface is sometimes down,
and it will not become up after a long time. Restarting the neutron server can become up.

I check logical_switch_port by "ovn-nbctl list logical_switch_port <port-id>", the status
of lsp is up, and the traffic can be forwarded normally.

This should only be a neutron save state problem.

In the past, when creating vm, the ports have been unable to be up, and the reason has not
been found. The phenomenon is the same as that of the router interface.

In the process of adding a routing interface, I wrote a script to listen to logical_switch_port
change, I found: before lsp becomes up=true, lsp's up=[], which is not up=[false], not
matchd LogicalSwitchPortUpdateUpEvent. I don't know why ovn's notification events are
sometimes different, but I think it should be repaired here in neutron

ZhouHeng (zhouhenglc)
description: updated
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/+/851997

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

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/+/852131

Changed in neutron:
importance: Undecided → High
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/+/852155

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/+/852156

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/+/852157

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

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

commit e0039371f876fe7ca52d4c49c997be0c73b80adf
Author: zhouhenglc <email address hidden>
Date: Thu Aug 4 08:47:10 2022 +0800

    [ovn]Change LogicalSwitchPortUpdateUpEvent old conditions

    Sometimes when creating ports, the status of logical_switch_port
    changes from [] to [true]. we should be able to deal with this
    situation and ensure that the port is in the active state in neutron.

    Closes-bug: #1983530

    Change-Id: I99d2a8078dd7acde72b232a5b1de826d7e1d60f3

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/852130
Committed: https://opendev.org/openstack/neutron/commit/08a226862492f550202111c3e99b3fcf6a904aa1
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit 08a226862492f550202111c3e99b3fcf6a904aa1
Author: zhouhenglc <email address hidden>
Date: Thu Aug 4 08:47:10 2022 +0800

    [ovn]Change LogicalSwitchPortUpdateUpEvent old conditions

    Sometimes when creating ports, the status of logical_switch_port
    changes from [] to [true]. we should be able to deal with this
    situation and ensure that the port is in the active state in neutron.

    Closes-bug: #1983530

    Change-Id: I99d2a8078dd7acde72b232a5b1de826d7e1d60f3
    (cherry picked from commit e0039371f876fe7ca52d4c49c997be0c73b80adf)

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/852155
Committed: https://opendev.org/openstack/neutron/commit/2e2f1d6cd4e2a95e27560e54009615ee63d7b8bc
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 2e2f1d6cd4e2a95e27560e54009615ee63d7b8bc
Author: zhouhenglc <email address hidden>
Date: Thu Aug 4 08:47:10 2022 +0800

    [ovn]Change LogicalSwitchPortUpdateUpEvent old conditions

    Sometimes when creating ports, the status of logical_switch_port
    changes from [] to [true]. we should be able to deal with this
    situation and ensure that the port is in the active state in neutron.

    Closes-bug: #1983530

    Change-Id: I99d2a8078dd7acde72b232a5b1de826d7e1d60f3
    (cherry picked from commit e0039371f876fe7ca52d4c49c997be0c73b80adf)

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/852156
Committed: https://opendev.org/openstack/neutron/commit/9869038cf5a046a3cbf4fe288759bdbdf07a6c67
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit 9869038cf5a046a3cbf4fe288759bdbdf07a6c67
Author: zhouhenglc <email address hidden>
Date: Thu Aug 4 08:47:10 2022 +0800

    [ovn]Change LogicalSwitchPortUpdateUpEvent old conditions

    Sometimes when creating ports, the status of logical_switch_port
    changes from [] to [true]. we should be able to deal with this
    situation and ensure that the port is in the active state in neutron.

    Closes-bug: #1983530

    Change-Id: I99d2a8078dd7acde72b232a5b1de826d7e1d60f3
    (cherry picked from commit e0039371f876fe7ca52d4c49c997be0c73b80adf)

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

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

commit 3df5d80726043223a79d14a951147c7f54feaa84
Author: zhouhenglc <email address hidden>
Date: Thu Aug 4 08:47:10 2022 +0800

    [ovn]Change LogicalSwitchPortUpdateUpEvent old conditions

    Sometimes when creating ports, the status of logical_switch_port
    changes from [] to [true]. we should be able to deal with this
    situation and ensure that the port is in the active state in neutron.

    Closes-bug: #1983530

    Change-Id: I99d2a8078dd7acde72b232a5b1de826d7e1d60f3
    (cherry picked from commit e0039371f876fe7ca52d4c49c997be0c73b80adf)

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/+/852131
Committed: https://opendev.org/openstack/neutron/commit/cfb0672ab71620680b7f26475021c4857944d986
Submitter: "Zuul (22348)"
Branch: stable/xena

commit cfb0672ab71620680b7f26475021c4857944d986
Author: zhouhenglc <email address hidden>
Date: Thu Aug 4 08:47:10 2022 +0800

    [ovn]Change LogicalSwitchPortUpdateUpEvent old conditions

    Sometimes when creating ports, the status of logical_switch_port
    changes from [] to [true]. we should be able to deal with this
    situation and ensure that the port is in the active state in neutron.

    Closes-bug: #1983530

    Change-Id: I99d2a8078dd7acde72b232a5b1de826d7e1d60f3
    (cherry picked from commit e0039371f876fe7ca52d4c49c997be0c73b80adf)

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

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

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 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 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 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.