← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1931220] [NEW] _ObjectChangeHandler.handle_event failing on port after_create event

 

Public bug reported:

For PORT AFTER_CREATE events (https://review.opendev.org/c/openstack/neutron/+/634461)
In neutron/plugins/ml2/ovo_rpc.py used handle_event method without payload.

Logs:
Jun 07 20:05:29 stack neutron-server[105532]: DEBUG neutron_lib.callbacks.manager [None req-fe57c4d9-29e4-45ef-9cbb-da1cb68375ea admin admin] Notify callbacks ['neutron.plugins.ml2.plugin.SecurityGroupServerNotifierRpcMixin._notify_sg_on_port_after\
_update-16365094', 'neutron.plugins.ml2.extensions.dns_integration._create_port_in_external_dns_service-8755567173012', 'neutron.plugins.ml2.ovo_rpc._ObjectChangeHandler.handle_event-583010', 'neutron.services.segments.plugin.NovaSegmentNotifier._n\
otify_port_created-1523482'] for port, after_create {{(pid=105532) _notify_loop /usr/local/lib/python3.8/dist-packages/neutron_lib/callbacks/manager.py:192}}
Jun 07 20:05:29 stack neutron-server[105532]: ERROR neutron_lib.callbacks.manager [None req-fe57c4d9-29e4-45ef-9cbb-da1cb68375ea admin admin] Error during notification for neutron.plugins.ml2.ovo_rpc._ObjectChangeHandler.handle_event-583010 port, a\
fter_create: TypeError: handle_event() missing 1 required positional argument: 'context'
Jun 07 20:05:29 stack neutron-server[105532]: ERROR neutron_lib.callbacks.manager Traceback (most recent call last):
Jun 07 20:05:29 stack neutron-server[105532]: ERROR neutron_lib.callbacks.manager   File "/usr/local/lib/python3.8/dist-packages/neutron_lib/callbacks/manager.py", line 197, in _notify_loop
Jun 07 20:05:29 stack neutron-server[105532]: ERROR neutron_lib.callbacks.manager     callback(resource, event, trigger, **kwargs)
Jun 07 20:05:29 stack neutron-server[105532]: ERROR neutron_lib.callbacks.manager TypeError: handle_event() missing 1 required positional argument: 'context'
Jun 07 20:05:29 stack neutron-server[105532]: ERROR neutron_lib.callbacks.manager


Jun 07 20:05:58 stack neutron-server[105531]: DEBUG ovsdbapp.backend.ovs_idl.transaction [None req-4b35697f-6486-46bf-94fc-001fd01e53b1 None None] Running txn n=1 command(idx=0): UpdateLRouterPortCommand(name=lrp-c066a272-65bb-4f01-a757-f19b0f18e29\
9, columns={'gateway_chassis': ['cdff0724-c9d5-4a88-ad85-66f15b7a8857']}, if_exists=True) {{(pid=105531) do_commit /opt/stack/ovsdbapp/ovsdbapp/backend/ovs_idl/transaction.py:90}}
Jun 07 20:05:58 stack neutron-server[105531]: DEBUG ovsdbapp.backend.ovs_idl.transaction [None req-4b35697f-6486-46bf-94fc-001fd01e53b1 None None] Transaction caused no change {{(pid=105531) do_commit /opt/stack/ovsdbapp/ovsdbapp/backend/ovs_idl/tr\
ansaction.py:134}}
Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command [None req-b8b9872e-f62a-4f64-a92d-0d02a670a8bc None None] Error executing command (HAChassisGroupGetCommand): ovsdbapp.backend.ovs_idl.idlutils.RowNotFound: Cannot\

 find HA_Chassis_Group with name=default_ha_chassis_group
Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command Traceback (most recent call last):
Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command   File "/opt/stack/ovsdbapp/ovsdbapp/backend/ovs_idl/command.py", line 39, in execute
Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command     self.run_idl(None)
Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command   File "/opt/stack/ovsdbapp/ovsdbapp/backend/ovs_idl/command.py", line 329, in run_idl
Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command     self.result = self.api.lookup(self.table, self.record)
Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command   File "/opt/stack/neutron/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/impl_idl_ovn.py", line 156, in lookup
Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command     return super().lookup(table, record, default=default, timeout=timeout,
Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command   File "/opt/stack/ovsdbapp/ovsdbapp/backend/ovs_idl/__init__.py", line 208, in lookup
Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command     return self._lookup(table, record)
Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command   File "/opt/stack/ovsdbapp/ovsdbapp/backend/ovs_idl/__init__.py", line 268, in _lookup
Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command     row = idlutils.row_by_value(self, rl.table, rl.column, record)
Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command   File "/opt/stack/ovsdbapp/ovsdbapp/backend/ovs_idl/idlutils.py", line 114, in row_by_value
Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command     raise RowNotFound(table=table, col=column, match=match)
Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command ovsdbapp.backend.ovs_idl.idlutils.RowNotFound: Cannot find HA_Chassis_Group with name=default_ha_chassis_group
Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command

** Affects: neutron
     Importance: Undecided
     Assignee: Mamatisa Nurmatov (isabek)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => Mamatisa Nurmatov (isabek)

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

Title:
  _ObjectChangeHandler.handle_event  failing on port after_create event

Status in neutron:
  New

Bug description:
  For PORT AFTER_CREATE events (https://review.opendev.org/c/openstack/neutron/+/634461)
  In neutron/plugins/ml2/ovo_rpc.py used handle_event method without payload.

  Logs:
  Jun 07 20:05:29 stack neutron-server[105532]: DEBUG neutron_lib.callbacks.manager [None req-fe57c4d9-29e4-45ef-9cbb-da1cb68375ea admin admin] Notify callbacks ['neutron.plugins.ml2.plugin.SecurityGroupServerNotifierRpcMixin._notify_sg_on_port_after\
  _update-16365094', 'neutron.plugins.ml2.extensions.dns_integration._create_port_in_external_dns_service-8755567173012', 'neutron.plugins.ml2.ovo_rpc._ObjectChangeHandler.handle_event-583010', 'neutron.services.segments.plugin.NovaSegmentNotifier._n\
  otify_port_created-1523482'] for port, after_create {{(pid=105532) _notify_loop /usr/local/lib/python3.8/dist-packages/neutron_lib/callbacks/manager.py:192}}
  Jun 07 20:05:29 stack neutron-server[105532]: ERROR neutron_lib.callbacks.manager [None req-fe57c4d9-29e4-45ef-9cbb-da1cb68375ea admin admin] Error during notification for neutron.plugins.ml2.ovo_rpc._ObjectChangeHandler.handle_event-583010 port, a\
  fter_create: TypeError: handle_event() missing 1 required positional argument: 'context'
  Jun 07 20:05:29 stack neutron-server[105532]: ERROR neutron_lib.callbacks.manager Traceback (most recent call last):
  Jun 07 20:05:29 stack neutron-server[105532]: ERROR neutron_lib.callbacks.manager   File "/usr/local/lib/python3.8/dist-packages/neutron_lib/callbacks/manager.py", line 197, in _notify_loop
  Jun 07 20:05:29 stack neutron-server[105532]: ERROR neutron_lib.callbacks.manager     callback(resource, event, trigger, **kwargs)
  Jun 07 20:05:29 stack neutron-server[105532]: ERROR neutron_lib.callbacks.manager TypeError: handle_event() missing 1 required positional argument: 'context'
  Jun 07 20:05:29 stack neutron-server[105532]: ERROR neutron_lib.callbacks.manager

  
  Jun 07 20:05:58 stack neutron-server[105531]: DEBUG ovsdbapp.backend.ovs_idl.transaction [None req-4b35697f-6486-46bf-94fc-001fd01e53b1 None None] Running txn n=1 command(idx=0): UpdateLRouterPortCommand(name=lrp-c066a272-65bb-4f01-a757-f19b0f18e29\
  9, columns={'gateway_chassis': ['cdff0724-c9d5-4a88-ad85-66f15b7a8857']}, if_exists=True) {{(pid=105531) do_commit /opt/stack/ovsdbapp/ovsdbapp/backend/ovs_idl/transaction.py:90}}
  Jun 07 20:05:58 stack neutron-server[105531]: DEBUG ovsdbapp.backend.ovs_idl.transaction [None req-4b35697f-6486-46bf-94fc-001fd01e53b1 None None] Transaction caused no change {{(pid=105531) do_commit /opt/stack/ovsdbapp/ovsdbapp/backend/ovs_idl/tr\
  ansaction.py:134}}
  Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command [None req-b8b9872e-f62a-4f64-a92d-0d02a670a8bc None None] Error executing command (HAChassisGroupGetCommand): ovsdbapp.backend.ovs_idl.idlutils.RowNotFound: Cannot\

   find HA_Chassis_Group with name=default_ha_chassis_group
  Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command Traceback (most recent call last):
  Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command   File "/opt/stack/ovsdbapp/ovsdbapp/backend/ovs_idl/command.py", line 39, in execute
  Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command     self.run_idl(None)
  Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command   File "/opt/stack/ovsdbapp/ovsdbapp/backend/ovs_idl/command.py", line 329, in run_idl
  Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command     self.result = self.api.lookup(self.table, self.record)
  Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command   File "/opt/stack/neutron/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/impl_idl_ovn.py", line 156, in lookup
  Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command     return super().lookup(table, record, default=default, timeout=timeout,
  Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command   File "/opt/stack/ovsdbapp/ovsdbapp/backend/ovs_idl/__init__.py", line 208, in lookup
  Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command     return self._lookup(table, record)
  Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command   File "/opt/stack/ovsdbapp/ovsdbapp/backend/ovs_idl/__init__.py", line 268, in _lookup
  Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command     row = idlutils.row_by_value(self, rl.table, rl.column, record)
  Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command   File "/opt/stack/ovsdbapp/ovsdbapp/backend/ovs_idl/idlutils.py", line 114, in row_by_value
  Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command     raise RowNotFound(table=table, col=column, match=match)
  Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command ovsdbapp.backend.ovs_idl.idlutils.RowNotFound: Cannot find HA_Chassis_Group with name=default_ha_chassis_group
  Jun 07 20:05:58 stack neutron-server[105531]: ERROR ovsdbapp.backend.ovs_idl.command

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


Follow ups