OVN router flavors create OVN router on Neutron restart

Bug #2110060 reported by Doug Goldstein
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Miguel Lavalle

Bug Description

When I create a router using the UserDefined and then restart Neutron, it will create the router in OVN.

2025-05-05 22:20:37.643 16 WARNING neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.ovn_db_sync [None req-75c6e768-3842-45e0-9ec5-4cf3d6aca434 - - - - - -] Router found in Neutron but not in OVN NB DB, router id=87e0e66b-c720-41b2-bd8e-09d00c3563d3
2025-05-05 22:20:37.643 16 WARNING neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.ovn_db_sync [None req-75c6e768-3842-45e0-9ec5-4cf3d6aca434 - - - - - -] Creating the router 87e0e66b-c720-41b2-bd8e-09d00c3563d3 in OVN NB DB

my neutron.conf has the following:

[ovn]
neutron_sync_mode = repair

Miro Tomaska (mtomaska)
Changed in neutron:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Miro Tomaska (mtomaska) wrote (last edit ):

Confirmed on master branch deployed with devstack

- Setup the mock UserDefined router flavor as per [1]
- Set in ml2_conf.ini
[ovn]
neutron_sync_mode = repair
- restart neutron server

check `ovn-nbctl list Logical_Router` entry was created. In my case uuid of my mock flavor router was `neutron-64476970-b7ea-4e40-a5e6-fdbef69deb48`

_uuid : 0f06bd54-40a7-432c-8c8d-685d291f86a7
copp : []
enabled : true
external_ids : {"neutron:availability_zone_hints"="", "neutron:revision_number"="1", "neutron:router_name"=f_router}
load_balancer : []
load_balancer_group : []
name : neutron-64476970-b7ea-4e40-a5e6-fdbef69deb48
nat : []
options : {always_learn_from_arp_request="false", dynamic_neigh_routers="true", mac_binding_age_threshold="0"}
policies : []
ports : []
static_routes : []

[1] https://docs.openstack.org/neutron/latest/admin/config-router-flavor-ovn.html

Miguel Lavalle (minsel)
Changed in neutron:
assignee: nobody → Miguel Lavalle (minsel)
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/+/949816

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

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

commit a37c2d2a1e27266f51259b33c5b2720f41f00b71
Author: Miguel Lavalle <email address hidden>
Date: Wed May 14 19:13:42 2025 -0500

    Fix ovn_db_sync for user defined flavor routers

    When ovn_db_sync is executed in repair mode after a Neutron server
    restart, it erronously adds user defined flavor routers to the OVN NBDB.
    Those routers are not managed by OVN. Hereby the issue if fixed.

    Change-Id: Iacd78020ee41399c3a8ce6cfdf9e37c4f865c90e
    Closes-Bug: #2110060

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

Fix proposed to branch: stable/2025.1
Review: https://review.opendev.org/c/openstack/neutron/+/950239

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/2024.2)

Fix proposed to branch: stable/2024.2
Review: https://review.opendev.org/c/openstack/neutron/+/950240

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/2024.1)

Fix proposed to branch: stable/2024.1
Review: https://review.opendev.org/c/openstack/neutron/+/950241

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/950239
Committed: https://opendev.org/openstack/neutron/commit/00130dc806accd77b0510d332e539dc2fc086781
Submitter: "Zuul (22348)"
Branch: stable/2025.1

commit 00130dc806accd77b0510d332e539dc2fc086781
Author: Miguel Lavalle <email address hidden>
Date: Wed May 14 19:13:42 2025 -0500

    Fix ovn_db_sync for user defined flavor routers

    When ovn_db_sync is executed in repair mode after a Neutron server
    restart, it erronously adds user defined flavor routers to the OVN NBDB.
    Those routers are not managed by OVN. Hereby the issue if fixed.

    Change-Id: Iacd78020ee41399c3a8ce6cfdf9e37c4f865c90e
    Closes-Bug: #2110060
    (cherry picked from commit a37c2d2a1e27266f51259b33c5b2720f41f00b71)

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/950240
Committed: https://opendev.org/openstack/neutron/commit/9b4b23ac3a8a7a6e84cfb0ef9f8c732159a4c5e5
Submitter: "Zuul (22348)"
Branch: stable/2024.2

commit 9b4b23ac3a8a7a6e84cfb0ef9f8c732159a4c5e5
Author: Miguel Lavalle <email address hidden>
Date: Wed May 14 19:13:42 2025 -0500

    Fix ovn_db_sync for user defined flavor routers

    When ovn_db_sync is executed in repair mode after a Neutron server
    restart, it erronously adds user defined flavor routers to the OVN NBDB.
    Those routers are not managed by OVN. Hereby the issue if fixed.

    Change-Id: Iacd78020ee41399c3a8ce6cfdf9e37c4f865c90e
    Closes-Bug: #2110060
    (cherry picked from commit a37c2d2a1e27266f51259b33c5b2720f41f00b71)

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/950241
Committed: https://opendev.org/openstack/neutron/commit/b20dcbfcfc0836e756a244bded55984402df4674
Submitter: "Zuul (22348)"
Branch: stable/2024.1

commit b20dcbfcfc0836e756a244bded55984402df4674
Author: Miguel Lavalle <email address hidden>
Date: Wed May 14 19:13:42 2025 -0500

    Fix ovn_db_sync for user defined flavor routers

    When ovn_db_sync is executed in repair mode after a Neutron server
    restart, it erronously adds user defined flavor routers to the OVN NBDB.
    Those routers are not managed by OVN. Hereby the issue if fixed.

    Change-Id: Iacd78020ee41399c3a8ce6cfdf9e37c4f865c90e
    Closes-Bug: #2110060
    (cherry picked from commit a37c2d2a1e27266f51259b33c5b2720f41f00b71)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 25.2.0

This issue was fixed in the openstack/neutron 25.2.0 Dalmatian release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 24.2.0

This issue was fixed in the openstack/neutron 24.2.0 Caracal release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 26.0.1

This issue was fixed in the openstack/neutron 26.0.1 Epoxy release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 27.0.0.0b1

This issue was fixed in the openstack/neutron 27.0.0.0b1 Flamingo 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.