OVN synchronized too many segments

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

Bug Description

During synchronization, OVN will query all the segments associated with the network in the current database[1]. This will synchronize the dynamic segment and create a provnet ovn logical_switch_port simultaneously.
When creating a network, only a provnet ovn logical_switch_port will be created for segments with dynamic=False[2][3].

[1] https://opendev.org/openstack/neutron/src/commit/be9c4d585db1833b410062f51a6d11a41818b9c1/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_db_sync.py#L1056
[2] https://opendev.org/openstack/neutron/src/commit/be9c4d585db1833b410062f51a6d11a41818b9c1/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py#L1913
[3] https://opendev.org/openstack/neutron/src/commit/be9c4d585db1833b410062f51a6d11a41818b9c1/neutron/db/segments_db.py#L80

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

Changed in neutron:
status: New → In Progress
Changed in neutron:
importance: Undecided → Medium
assignee: nobody → ZhouHeng (zhouhenglc)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

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

commit 28059598d2230c588b99074bfd7f914c86c35b5a
Author: zhouhenglc <email address hidden>
Date: Mon Aug 21 15:08:10 2023 +0800

    [ovn]Only synchronize non dynamic segments

    When creating a network, only the localnet logical_switch_port
    will be created for segments with dynamic=False [1][2]. when we
    synchronize data, we should also add filtering criteria.

    [1] https://opendev.org/openstack/neutron/src/commit/be9c4d585db1833b410062f51a6d11a41818b9c1/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py#L1913
    [2] https://opendev.org/openstack/neutron/src/commit/be9c4d585db1833b410062f51a6d11a41818b9c1/neutron/db/segments_db.py#L80

    Closes-Bug: #2032169

    Change-Id: Iad51712a4fe192bd488c1458819fd5708eb94d78

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

This issue was fixed in the openstack/neutron 24.0.0.0b1 development milestone.

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.