In the patch [1] create_netns function from the Neutron's
privileged ip_lib module was changed in the way that it was
implemented in the same way like original pyroute2's create_netns
function.
Unfortunately during backporing that patch to stable/ussuri and
stable/train branches, we probably made mistake and instead of
calling pyroute2's private function _netns() we still called
public function netns() (which we tried to "reimplement" really).
So this patch updates it and changes to use private _netns() function
from pyroute2, in the same way like it is done in the branches newer
than stable/ussuri.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/823962 /opendev. org/openstack/ neutron/ commit/ abe24c27056020f 47f14d2bb40ea0f 27bede90cc
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/ussuri
commit abe24c27056020f 47f14d2bb40ea0f 27bede90cc
Author: Slawek Kaplonski <email address hidden>
Date: Mon Jan 10 11:56:58 2022 +0100
Fix privileged create_netns function
In the patch [1] create_netns function from the Neutron's
privileged ip_lib module was changed in the way that it was
implemented in the same way like original pyroute2's create_netns
function.
Unfortunately during backporing that patch to stable/ussuri and
stable/train branches, we probably made mistake and instead of
calling pyroute2's private function _netns() we still called
public function netns() (which we tried to "reimplement" really).
So this patch updates it and changes to use private _netns() function
from pyroute2, in the same way like it is done in the branches newer
than stable/ussuri.
[1] https:/ /review. opendev. org/c/openstack /neutron/ +/778735
Related-Bug: #1917487 3a1c24c9d659189 adc9c16a011
Change-Id: Id25ca8a67b5239