neutron/neutron
John Kasperski 81823e8632 Improve performance of ensure_namespace
The ensure_namespace method calls IpNetnsCommand.exists to
determine if the specified namespace exists or not.  This is
accomplished by listing all namespaces with "ip netns list"
and then looping through the output to determine if the specified
namespace was included in the output.

Research of various Linux operating systems has indicated that
namespaces are represented as files in /var/run/netns and root
authority is "typically" not required in order to look at the
files in this subdirectory.

The existing configuration option "use_helper_for_ns_read"
will be used to determine if the root-helper should be used to
to retrieve the list of namespaces.  If this configuraton option
is set to False, the native python os.listdir(/var/run/netns)
will be used.

Related-Bug: #1311804
Closes-Bug: #1497396
Change-Id: I9da627d07d6cbb6e5ef1a921a5f22963317a04e2
2015-10-13 20:29:59 +00:00
..
agent Improve performance of ensure_namespace 2015-10-13 20:29:59 +00:00
api Merge "Removed release_port_fixed_ip dead code" 2015-10-09 12:56:18 +00:00
callbacks Merge "Add support for PluginWorker and Process creation notification" 2015-09-04 05:02:52 +00:00
cmd Cleaned up remaining incorrect usage for LOG.exception 2015-10-08 16:45:18 +02:00
common Merge "Consume sslutils and wsgi modules from oslo.service" 2015-10-08 22:20:42 +00:00
core_extensions Forbid attaching rules if policy isn't accessible 2015-08-12 09:52:33 +00:00
db Quick optimization to avoid a query if no ports have fixed ips 2015-10-09 20:36:17 +00:00
debug Deprecate external_network_bridge option in L3 agent 2015-09-01 20:41:54 -07:00
extensions Merge "Python 3: fix invalid operation on dict_items objects" 2015-10-02 18:19:41 +00:00
hacking Use assertTrue(observed) instead of assertEqual(True, observed) 2015-10-09 23:13:58 +09:00
ipam Merge "Fixed the typo in the doc string of the class SubnetPoolReader" 2015-09-01 07:08:07 +00:00
locale Imported Translations from Zanata 2015-10-09 06:21:29 +00:00
notifiers Remove hack for discovery novaclients extension 2015-09-09 14:35:26 +00:00
objects No network devices on network attached qos policies 2015-09-16 15:11:04 +02:00
openstack Switch to the oslo_utils.fileutils 2015-07-15 08:09:26 +03:00
pecan_wsgi Fix the bug of "Spelling error of a word" 2015-10-12 17:21:08 +08:00
plugins Merge "QoS SR-IOV: allow to reset vf rate when VF is assigend to VM" 2015-10-12 13:53:14 +00:00
quota Merge "docstring fix" 2015-09-14 18:36:55 +00:00
scheduler Always return iterables in L3 get_candidates 2015-09-15 16:25:45 -07:00
server Merge "Introduce a separate RPC server" into feature/pecan 2015-09-18 16:58:54 +00:00
services Cleaned up remaining incorrect usage for LOG.exception 2015-10-08 16:45:18 +02:00
tests Improve performance of ensure_namespace 2015-10-13 20:29:59 +00:00
__init__.py Allow users to run 'tox -epy34' 2015-05-11 16:09:51 +02:00
auth.py Consume ConfigurableMiddleware from oslo_middleware 2015-10-08 17:59:43 +00:00
context.py Removed a pile of debtcollector removals from neutron.context 2015-10-06 18:28:40 +02:00
i18n.py oslo: migrate to namespace-less import paths 2015-02-05 15:09:32 +01:00
manager.py Fixed multiple py34 gate issues 2015-10-08 14:13:56 +02:00
neutron_plugin_base_v2.py Add support for PluginWorker and Process creation notification 2015-09-03 06:40:50 +00:00
policy.py Fixed multiple py34 gate issues 2015-10-08 14:13:56 +02:00
service.py Fix missing parent start() call in RpcWorker. 2015-10-06 06:01:03 +01:00
version.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
worker.py Add support for PluginWorker and Process creation notification 2015-09-03 06:40:50 +00:00
wsgi.py Merge "Consume ConfigurableMiddleware from oslo_middleware" 2015-10-09 12:16:28 +00:00