Skip to content

Synchronise 2025.1 with upstream#256

Merged
priteau merged 3 commits intostackhpc/2025.1from
upstream/2025.1-2026-02-02
Feb 2, 2026
Merged

Synchronise 2025.1 with upstream#256
priteau merged 3 commits intostackhpc/2025.1from
upstream/2025.1-2026-02-02

Conversation

@github-actions
Copy link
Copy Markdown

@github-actions github-actions Bot commented Feb 2, 2026

This PR contains a snapshot of 2025.1 from upstream stable/2025.1.

mkalcok and others added 3 commits January 28, 2026 10:37
neutron-ovn-db-sync-util synchronizes content between neutron's
database and OVN NB/SB databases. As a side-effect, it can sometimes
remove resources from OVN database that were not meant for neutron to
manage. Coexistence support [0] aims to avoid these scenarios.

The ovn_db_sync script already tries to avoid these unwanted removals
by checking for presence of well known neutron external_ids for
resources like "Logical Switch" and "Logical Switch Port" [1].

This change adds similar checks for:
* Logical Router Port
* Static Route
* Port Group

NAT rules are still missing the check because they don't have
"neutron:" external_ids to check.

In addition to the ovn_db_sync script, there is a 'maintenance' process
that periodically updates OVN resources. This change also update its
methods to not alter resources not owned by the neutron.

[0] https://specs.openstack.org/openstack/neutron-specs/specs/2024.1/ml2ovn-coexistence-support-ovn-ext-resources.html
[1] https://opendev.org/openstack/neutron/src/commit/f9067a719084710ee4f46fa31edb6a938e0dbbb0/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/impl_idl_ovn.py#L308-L316

Closes-bug: #2027742
Change-Id: I1434700928779577073d1369c0a2983a4076cc0e
Signed-off-by: Martin Kalcok <martin.kalcok@canonical.com>
(cherry picked from commit ff57491)
Neutron ML2/OVN driver is using ACLs to implement Security Group rules
in the OVN backend but neutron-ovn-db-sync util was trying to clean OVN
DB slightly too agressively and when it was run in the "repair" mode it
was removing from OVN DB all ACLs which did not had security group rule
id in the external_ids.
That could break e.g. ACLs created by the neutron-fwaas as its OVN
driver is also using ACLs to implement rules but is adding different key
in the external_ids.

This patch changes logic of the neutron-ovn-db-sync-util tool so that it
will skip all ACL rules which don't have in external_ids key related to
the SG rule.
This is similar change to what was already done e.g. for Port Groups in
[1].

[1] https://review.opendev.org/c/openstack/neutron/+/958679

Closes-bug: #2138430

Conflicts:
    neutron/tests/unit/plugins/ml2/drivers/ovn/mech_driver/ovsdb/test_ovn_db_sync.py

Change-Id: I12f018d29e7d00d1f0fb0272dc905d1026633cbb
Signed-off-by: Slawek Kaplonski <skaplons@redhat.com>
(cherry picked from commit 7524142)
In patch [1] there was accidentally merged commented line which imports
remote_pdb. This was used only for the debugging process and should
never be merged.

TrivialFix

[1] https://review.opendev.org/c/openstack/neutron/+/973648

Conflicts:
    neutron/tests/unit/plugins/ml2/drivers/ovn/mech_driver/ovsdb/test_ovn_db_sync.py

Change-Id: I0660d88ac12596858678ac6cf64de7ed7743d7e3
Signed-off-by: Slawek Kaplonski <skaplons@redhat.com>
@github-actions github-actions Bot requested a review from a team as a code owner February 2, 2026 06:37
@github-actions github-actions Bot added automated Automated action performed by GitHub Actions synchronisation labels Feb 2, 2026
@priteau priteau closed this Feb 2, 2026
@priteau priteau reopened this Feb 2, 2026
@priteau priteau merged commit decc5e6 into stackhpc/2025.1 Feb 2, 2026
@priteau priteau deleted the upstream/2025.1-2026-02-02 branch February 2, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated Automated action performed by GitHub Actions synchronisation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants