← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1895033] [NEW] When using ml2/OVN with other plugins with agents, non-OVN agents are broken for show/update/delete operations

 

Public bug reported:

ml2/ovn mech driver overrides the ML2 agent API methods and inserts its
results if the agent passed to the operations are OVN agents. Due to a
change where KeyError is no longer raised by get_agent, the
get_agent/update_agent/delete_agent methods no longer fall back to the
original ML2 plugin for non-OVN agents.

For an example, one can just insert a bogus agent into the neutron db
like:

 INSERT into agents (id, agent_type, `binary`, topic, host, created_at,
started_at, heartbeat_timestamp, configurations) VALUES('8dcb72d1-c1bc-
46ab-86a0-823183178791', 'test', '/bin/test', 'topic',
'localhost.localdomain', '2020-01-01', '2020-01-01', '2020-01-01', '');

and do

 openstack network agent list

to verify it is there, and then

 openstack network agent show 8dcb72d1-c1bc-46ab-86a0-823183178791

to verify that it is broken (or delete/update --description)

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: ovn

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

Title:
  When using ml2/OVN with other plugins with agents, non-OVN agents are
  broken for show/update/delete operations

Status in neutron:
  New

Bug description:
  ml2/ovn mech driver overrides the ML2 agent API methods and inserts
  its results if the agent passed to the operations are OVN agents. Due
  to a change where KeyError is no longer raised by get_agent, the
  get_agent/update_agent/delete_agent methods no longer fall back to the
  original ML2 plugin for non-OVN agents.

  For an example, one can just insert a bogus agent into the neutron db
  like:

   INSERT into agents (id, agent_type, `binary`, topic, host,
  created_at, started_at, heartbeat_timestamp, configurations)
  VALUES('8dcb72d1-c1bc-46ab-86a0-823183178791', 'test', '/bin/test',
  'topic', 'localhost.localdomain', '2020-01-01', '2020-01-01',
  '2020-01-01', '');

  and do

   openstack network agent list

  to verify it is there, and then

   openstack network agent show 8dcb72d1-c1bc-46ab-86a0-823183178791

  to verify that it is broken (or delete/update --description)

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


Follow ups