← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1779882] Re: Deleting a port on a system with 1K ports takes too long

 

Thank you.

You mentioned that create 1K "free" port, just db records, right?

If that, I don't think the policy engine or md driver would be the issue.
As the port delete is a very complex operation. Every step(l3 pre-check, callbacks, port pre/postcommit to md drivers, delete the port record in db) requires to cost the time. So this bug sound like a very wide range problem..

It's better to test, which step may cost the much time, then we can
focus on..


** Changed in: neutron
       Status: New => Opinion

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

** Tags added: api db

** Changed in: neutron
       Status: Opinion => Incomplete

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

Title:
  Deleting a port on a system with 1K ports takes too long

Status in neutron:
  Incomplete

Bug description:
  When attempting to delete a port on a system with 1K ports, it takes
  around 35 seconds to complete:

  $ time openstack port delete port60_2

  real    0m34.367s
  user    0m3.497s
  sys     0m0.187s

  
  Log is *full* of the following messages when I issue the CLI:

  neutron-server[324]: DEBUG neutron.pecan_wsgi.hooks.policy_enforcement
  [None req-a936bb85-d881-441b-aa07-74c4779d1771 demo demo] Attributes
  excluded by policy engine: [u'binding:profile',
  u'binding:vif_details', u'binding:vif_type', u'binding:host_id']
  {{(pid=342) _exclude_attributes_by_policy
  /opt/stack/neutron/neutron/pecan_wsgi/hooks/policy_enforcement.py:256}}

  To be precise: 896 messages like this ^

  $ sudo journalctl  -u devstack@q-svc | grep "Attributes excluded by policy engine" | wc -l
  33626

  $ time openstack port delete port60_2

  real    0m34.367s
  user    0m3.497s
  sys     0m0.187s

  $ sudo journalctl  -u devstack@q-svc | grep "Attributes excluded by policy engine" | wc -l
  34522

  I'm using networking-ovn as mechanism-driver but looks unrelated to
  the backend :?

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


References