commit 9cdd3310363b445e5751fc848e1354f7f52a0547
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Thu Oct 21 08:49:41 2021 +0000
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.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/816518 /opendev. org/openstack/ neutron/ commit/ 9cdd3310363b445 e5751fc848e1354 f7f52a0547
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/train
commit 9cdd3310363b445 e5751fc848e1354 f7f52a0547
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Thu Oct 21 08:49:41 2021 +0000
Check a namespace existence by checking only its own directory
To check the existance of a namespace, instead of listing the path.exists" .
namespaces directory (by default "/var/run/netns"), this patch
directly checks the existence of the namespace directory, using
"os.
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 b3710d98a2113ff 9549c82ae17 0465251839ab880 56f4f64fb4) b85102eb6af1ecc b415fd605a)
Change-Id: I558d50d28378be
(cherry picked from commit 812722147983435
(cherry picked from commit 6a9c05a92498630