← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1554519] [NEW] seperate device owner flag for HA router interface port

 

Public bug reported:

Currently HA router interface port uses DEVICE_OWNER_ROUTER_INTF as
device owner(like normal router interface). So to check if a port is a
HA router interface port, we have to perform a DB operation.


Neutron server at many places(functions in plugin.py, rpc.py, mech_driver.py [1]) may need check if a port is HA router interface port and perform different set of operations, then it has to access DB for this. Instead if this information is available as port's device owner, we can avoid DB access every time.


[1] ml2_db.is_ha_port(session, port) in below files
https://review.openstack.org/#/c/282874/3/neutron/plugins/ml2/plugin.py
https://review.openstack.org/#/c/282874/3/neutron/plugins/ml2/drivers/l2pop/mech_driver.py

** Affects: neutron
     Importance: Undecided
     Assignee: venkata anil (anil-venkata)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => venkata anil (anil-venkata)

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

Title:
  seperate device owner flag for HA router interface port

Status in neutron:
  New

Bug description:
  Currently HA router interface port uses DEVICE_OWNER_ROUTER_INTF as
  device owner(like normal router interface). So to check if a port is a
  HA router interface port, we have to perform a DB operation.

  
  Neutron server at many places(functions in plugin.py, rpc.py, mech_driver.py [1]) may need check if a port is HA router interface port and perform different set of operations, then it has to access DB for this. Instead if this information is available as port's device owner, we can avoid DB access every time.

  
  [1] ml2_db.is_ha_port(session, port) in below files
  https://review.openstack.org/#/c/282874/3/neutron/plugins/ml2/plugin.py
  https://review.openstack.org/#/c/282874/3/neutron/plugins/ml2/drivers/l2pop/mech_driver.py

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


Follow ups