neutron/neutron/tests
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
..
api Use assertTrue(observed) instead of assertEqual(True, observed) 2015-10-09 23:13:58 +09:00
common Merge "Add neutron-linuxbridge-cleanup util" 2015-10-06 11:27:27 +00:00
contrib Merge "Add neutron-linuxbridge-cleanup util" 2015-10-06 11:27:27 +00:00
etc Get rid of ConfigParser code in ProviderConfiguration 2015-09-21 10:55:56 -07:00
fullstack Don't register agents for QoS l2pop fullstack test 2015-10-05 10:46:11 -04:00
functional Improve performance of ensure_namespace 2015-10-13 20:29:59 +00:00
retargetable Remove lingering traces of q_ 2015-07-07 17:04:44 -04:00
tempest Use tempest-lib's token_client 2015-09-16 10:08:50 +00:00
unit Improve performance of ensure_namespace 2015-10-13 20:29:59 +00:00
var Allow combined certificate/key files for SSL 2014-04-13 09:22:23 +00:00
__init__.py Add eventlet monkey_patch helper 2015-03-24 08:44:00 -07:00
base.py Add periodic agents health check. 2015-10-01 09:21:54 +00:00
fake_notifier.py Pass serializer to oslo.messaging Notifier 2014-06-20 14:58:28 +02:00
post_mortem_debug.py Cleanup recent generalization in post mortem debugger 2014-12-04 15:28:11 +01:00
tools.py Merge "Add OpenFixture and get rid of 'open' mocks" 2015-10-12 23:26:52 +00:00