neutron/neutron/privileged
Rodolfo Alonso Hernandez f144ba95a5 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:01 +00:00
..
agent Check a namespace existence by checking only its own directory 2021-11-03 14:15:01 +00:00
__init__.py Kill all processes running in a namespace before deletion 2019-08-21 09:03:54 +00:00