Bug 2225156

Summary: neutron-ovn-db-sync-util logs warning messages telling to update all router ports
Product: Red Hat OpenStack Reporter: Alex Stupnikov <astupnik>
Component: python-networking-ovnAssignee: Lucas Alvares Gomes <lmartins>
Status: CLOSED CURRENTRELEASE QA Contact: Eran Kuris <ekuris>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.2 (Train)CC: apevec, ihrachys, jlibosva, lhh, lmartins, majopela, mtomaska, scohen
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-12-10 18:22:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alex Stupnikov 2023-07-24 12:29:16 UTC
Description of problem:

Warnings [1] are logged for all router ports when executing neutron-ovn-db-sync-util with --ovn-neutron_sync_mode=log argument:

It looks like ovn_db_sync.py adds all router ports to update_lrport_list instead of applying some filters and figuring out which ports shouldn't be added to this list.


Version-Release number of selected component (if applicable):
RHOSP 16.2


Steps to Reproduce:
1. Run neutron-ovn-db-sync-util with --ovn-neutron_sync_mode=log argument for ML2/OVN RHOSP deployment with routers


Actual results:
Warnings like [1] are logged for all router ports

Expected results:
Warnings like [1] are only logged if something is wrong with the port.


[1]
2023-07-24 11:46:31.391 952358 WARNING networking_ovn.ovn_db_sync [req-1081a8a6-82dd-431c-a2ab-f58741dc1677 - - - - -] Router Port port_id=f164c0f1-8ac8-4c45-bba9-8c723a30c701 needs to be updated for networks changed

Comment 2 Ihar Hrachyshka 2023-08-07 15:07:25 UTC
Lucas, please let us know if you are still looking at it. Thanks.

Comment 3 Lucas Alvares Gomes 2023-08-08 09:40:56 UTC
(In reply to Ihar Hrachyshka from comment #2)
> Lucas, please let us know if you are still looking at it. Thanks.

Hi Ihar,

I didn't have much time last week but I am planning to look at it this week.

Comment 4 Lucas Alvares Gomes 2023-08-08 14:29:31 UTC
Hi,

I pushed a patch upstream addressing the issue: https://review.opendev.org/c/openstack/neutron/+/890799, waiting for reviews

Comment 9 Miro Tomaska 2024-12-10 18:22:35 UTC
Bugzilla is getting depracated. I am closing this bug as there is no point of migrating it over to Jira.
The backport[1] never went into 16.2 but there is no planned release of it. The change is already in OSP 17.1 

[1] https://code.engineering.redhat.com/gerrit/c/networking-ovn/+/446112