Comment 66 for bug 1436414

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix merged to openstack/neutron (9.0/mitaka)

Reviewed: https://review.fuel-infra.org/18773
Submitter: Pkgs Jenkins <email address hidden>
Branch: 9.0/mitaka

Commit: 1bacd47ed29fd621430f23f89f94c68e2cbd2543
Author: Sergey Belous <email address hidden>
Date: Thu Apr 7 10:18:06 2016

Neutron netns_cleanup improvements

Implement faster version of neutron-netns-cleanup

Faster version is enabled if neutron-netns-cleanup is started by
privileged user. It uses pyroute2 library for operations with namespaces.
Related-Bug: #1436414
=========================================================================

Improve performance of net-ns cleanup.

There is a couple of things that may increase performance:
1. Using python ovs idl library to connect to ovsdb server
directly rather than using ovs-vsctl.
That also allows transactional execution of ovs commands such
as port deletion.
2. Parallel execution of netns operations.
Candidates for deletion are split to chunks each processed
by a separate worker. That helps to avoid contention working
with pyroute2 library.
Closes-Bug: #1522432

Change-Id: I96c2f3216a64ef8fdc1df52e681399849d59de25