neutron/neutron
Rodolfo Alonso Hernandez 9cdd331036 Check a namespace existence by checking only its own directory
To check the existance of a namespace, instead of listing the
namespaces directory (by default "/var/run/netns"), this patch
directly checks the existence of the namespace directory, using
"os.path.exists".

This check is faster than listing the whole directory and avoids
timeout problems as reported in the related bug.

Conflicts:
      neutron/privileged/agent/linux/utils.py

Closes-Bug: #1947974
Change-Id: I558d50d28378beb3710d98a2113ff9549c82ae17
(cherry picked from commit 8127221479)
(cherry picked from commit 6a9c05a924)
2021-11-03 14:15:22 +00:00
..
agent Check a namespace existence by checking only its own directory 2021-11-03 14:15:22 +00:00
api Don't use singleton in routes.middleware.RoutesMiddleware 2021-09-07 06:09:58 +00:00
cmd Added common config and SR-IOV agent config to sanity check 2021-06-11 14:45:42 +00:00
common Randomize segmentation ID assignation 2021-09-14 17:31:31 +02:00
conf Make default hypervisor hostname compatible with libvirt 2021-06-21 14:20:34 +02:00
core_extensions Switch to new engine facade for QoS 2019-05-28 08:11:35 +00:00
db [OVN] Allow IP allocation with different segments for OVN service ports 2021-10-11 18:22:34 +02:00
debug Remove deprecated 'external_network_bridge' option 2019-03-09 22:07:38 +00:00
extensions Conntrack Helper - Plugin 2019-08-29 10:41:04 +02:00
hacking Remove Neutron LBaaS 2019-09-20 07:46:06 +00:00
ipam Allow first address in an IPv6 subnet as valid unicast 2019-05-21 16:31:18 +00:00
locale Imported Translations from Zanata 2019-11-22 07:43:34 +00:00
notifiers Add config option ``http_retries`` 2020-07-09 10:11:43 +00:00
objects Randomize segmentation ID assignation 2021-09-14 17:31:31 +02:00
pecan_wsgi Set DB retry for quota_enforcement pecan_wsgi hook 2019-11-24 09:55:14 +00:00
plugins Merge "Randomize segmentation ID assignation" into stable/train 2021-09-24 02:24:54 +00:00
privileged Check a namespace existence by checking only its own directory 2021-11-03 14:15:22 +00:00
quota Set DB retry for quota_enforcement pecan_wsgi hook 2019-11-24 09:55:14 +00:00
scheduler Do not fail if the agent load is not bumped 2021-08-30 13:11:41 +00:00
server Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-19 07:58:41 +00:00
services Improve Subnet create performance 2021-06-23 15:36:32 +00:00
tests Check a namespace existence by checking only its own directory 2021-11-03 14:15:22 +00:00
__init__.py Fix incorrect usage of '# flake8: noqa' 2018-10-29 15:27:50 -04:00
_i18n.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
auth.py Use oslo.context class method to construct context object 2017-03-23 09:02:46 +00:00
manager.py Define dhcp_agents_per_network with min=1 2019-05-15 14:08:21 -04:00
neutron_plugin_base_v2.py Do not load default service plugins if core plugin is not DB based 2017-11-09 20:34:52 +00:00
opts.py Provide the rpc_response_max_timeout parameter to sriov-agent 2021-06-14 14:16:22 +00:00
policy.py List SG rules which belongs to tenant's SG 2019-12-04 20:44:05 +00:00
service.py Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-19 07:58:41 +00:00
version.py
worker.py Change process name of neutron-server to match worker role 2019-03-01 14:18:09 -05:00
wsgi.py Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-19 07:58:41 +00:00