netns deletion on newer kernels fails with errno 16
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Invalid
|
High
|
Unassigned |
Bug Description
This is probably not neutron related, but need help with some input.
On a 3.10 kernel on CentOS 7.5 by simply creating a network and deleting it properly terminates all processes, removes interfaces and deletes the network namespace.
[root@controller ~]# uname -r
3.10.0-
If running a later kernel like 4.18 there is some change that causes the namespace deletion to cause a OSError errno 16 device or resource busy.
Before something like kernel 3.19 the netns filesystem was provided in proc but has since been moved
to it's own nsfs, maybe this has something to do with it, but I haven't seen this issue on Ubuntu before.
[root@controller ~]# mount | grep qdhcp
proc on /run/netns/
proc on /run/netns/
[root@controller ~]# uname -r
4.18.8-
nsfs on /run/netns/
nsfs on /run/netns/
Perhaps some CentOS or RedHat person can shime in about this.
Can reproduce this every single time:
* Create network, it spawns dnsmasq, haproxy and the interfaces in a netns
* Delete network, it will terminate all processes, delete interface but netns cannot be deleted and throws below error
Seen on both queens and rocky fwiw
2018-10-01 00:03:27.662 2093 ERROR neutron.
2018-10-01 00:03:27.662 2093 ERROR neutron.
2018-10-01 00:03:27.662 2093 ERROR neutron.
2018-10-01 00:03:27.662 2093 ERROR neutron.
2018-10-01 00:03:27.662 2093 ERROR neutron.
2018-10-01 00:03:27.662 2093 ERROR neutron.
2018-10-01 00:03:27.662 2093 ERROR neutron.
2018-10-01 00:03:27.662 2093 ERROR neutron.
2018-10-01 00:03:27.662 2093 ERROR neutron.
2018-10-01 00:03:27.662 2093 ERROR neutron.
2018-10-01 00:03:27.662 2093 ERROR neutron.
2018-10-01 00:03:27.662 2093 ERROR neutron.
2018-10-01 00:03:27.662 2093 ERROR neutron.
2018-10-01 00:03:27.662 2093 ERROR neutron.
2018-10-01 00:03:27.662 2093 ERROR neutron.
description: | updated |
Changed in neutron: | |
importance: | Undecided → High |
Changed in neutron: | |
status: | New → Invalid |
possibly https:/ /github. com/svinota/ pyroute2/ issues/ 535