← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2094736] [NEW] [OVN] Missing ``LogicalSwitchPortUpdateUpEvent`` when a port is bound

 

Public bug reported:

The Logical_Switch_Port.up event that sets the value to [True] is missed by Neutron API. For example, from [1]:
* Neutron port ID: 5dfa3f4d-7d89-4311-94a1-b7dfc5585cc5
* Logical_Switch_Port:
* Port_Binding: 470f5a71-c098-4e7f-8696-a153c02ce519

(1)
 The Port_Binding is set to UP when the port is created in the local OVS [2]:
{"_date":1736480121340,"_is_diff":true,"Port_Binding":{"3a63db7e-2314-4e2e-8ce6-9410d15558eb":{"up":true}},"_comment":"ovn-controller"}

This event is received by the Neutron API:
183713:Jan 10 03:35:21.888019 np0039530045 devstack@neutron-api.service[62681]: DEBUG neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.ovsdb_monitor [None req-ecb9f0a7-25ba-4c62-a88f-be49da8b1fd7 None None] Hash Ring: Node d3a6bc88-1545-42bd-a8de-053314d88181 (host: np0039530045) handling event "update" for row 3a63db7e-2314-4e2e-8ce6-9410d15558eb (table: Port_Binding) {{(pid=62681) notify /opt/stack/neutron/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py:852}}

(2)
The Logical_Switch_Port.up field is set to True [3]:
{"_date":1736480121342,"_is_diff":true,"Logical_Switch_Port":{"470f5a71-c098-4e7f-8696-a153c02ce519":{"up":true}},"_comment":"ovn-northd"}

This event is NOT received by the Neutron API.


There are many examples of this behaviour in the CI logs.

[1]https://a6fbb86efdf5860e1b02-ce677b1d4d068789ef14672b1b5d2453.ssl.cf5.rackcdn.com/periodic/opendev.org/openstack/neutron/master/neutron-ovn-tempest-with-neutron-lib-master/fc27ce5
[2]https://a6fbb86efdf5860e1b02-ce677b1d4d068789ef14672b1b5d2453.ssl.cf5.rackcdn.com/periodic/opendev.org/openstack/neutron/master/neutron-ovn-tempest-with-neutron-lib-master/fc27ce5/controller/logs/ovn/ovnsb_db.db
[3]https://a6fbb86efdf5860e1b02-ce677b1d4d068789ef14672b1b5d2453.ssl.cf5.rackcdn.com/periodic/opendev.org/openstack/neutron/master/neutron-ovn-tempest-with-neutron-lib-master/fc27ce5/controller/logs/ovn/ovnnb_db.db

** Affects: neutron
     Importance: High
     Assignee: Rodolfo Alonso (rodolfo-alonso-hernandez)
         Status: New

** Changed in: neutron
   Importance: Undecided => High

** Changed in: neutron
     Assignee: (unassigned) => Rodolfo Alonso (rodolfo-alonso-hernandez)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2094736

Title:
  [OVN] Missing ``LogicalSwitchPortUpdateUpEvent`` when a port is bound

Status in neutron:
  New

Bug description:
  The Logical_Switch_Port.up event that sets the value to [True] is missed by Neutron API. For example, from [1]:
  * Neutron port ID: 5dfa3f4d-7d89-4311-94a1-b7dfc5585cc5
  * Logical_Switch_Port:
  * Port_Binding: 470f5a71-c098-4e7f-8696-a153c02ce519

  (1)
   The Port_Binding is set to UP when the port is created in the local OVS [2]:
  {"_date":1736480121340,"_is_diff":true,"Port_Binding":{"3a63db7e-2314-4e2e-8ce6-9410d15558eb":{"up":true}},"_comment":"ovn-controller"}

  This event is received by the Neutron API:
  183713:Jan 10 03:35:21.888019 np0039530045 devstack@neutron-api.service[62681]: DEBUG neutron.plugins.ml2.drivers.ovn.mech_driver.ovsdb.ovsdb_monitor [None req-ecb9f0a7-25ba-4c62-a88f-be49da8b1fd7 None None] Hash Ring: Node d3a6bc88-1545-42bd-a8de-053314d88181 (host: np0039530045) handling event "update" for row 3a63db7e-2314-4e2e-8ce6-9410d15558eb (table: Port_Binding) {{(pid=62681) notify /opt/stack/neutron/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovsdb_monitor.py:852}}

  (2)
  The Logical_Switch_Port.up field is set to True [3]:
  {"_date":1736480121342,"_is_diff":true,"Logical_Switch_Port":{"470f5a71-c098-4e7f-8696-a153c02ce519":{"up":true}},"_comment":"ovn-northd"}

  This event is NOT received by the Neutron API.

  
  There are many examples of this behaviour in the CI logs.

  [1]https://a6fbb86efdf5860e1b02-ce677b1d4d068789ef14672b1b5d2453.ssl.cf5.rackcdn.com/periodic/opendev.org/openstack/neutron/master/neutron-ovn-tempest-with-neutron-lib-master/fc27ce5
  [2]https://a6fbb86efdf5860e1b02-ce677b1d4d068789ef14672b1b5d2453.ssl.cf5.rackcdn.com/periodic/opendev.org/openstack/neutron/master/neutron-ovn-tempest-with-neutron-lib-master/fc27ce5/controller/logs/ovn/ovnsb_db.db
  [3]https://a6fbb86efdf5860e1b02-ce677b1d4d068789ef14672b1b5d2453.ssl.cf5.rackcdn.com/periodic/opendev.org/openstack/neutron/master/neutron-ovn-tempest-with-neutron-lib-master/fc27ce5/controller/logs/ovn/ovnnb_db.db

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2094736/+subscriptions