neutron-dhcp-agent is unable to set network namespaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Expired
|
Undecided
|
Unassigned |
Bug Description
Hi all,
I am running neutron-dhcp-agents on all my controller nodes. I figured out that neutron-dhcp-agent has a problem to work with namespaces. It is failing continuously. I have deployed openstack by using openstack ansible and all my networking agents run on the hosts not on containers.
root@ctrl1:~# uname -a
Linux ctrl1 4.4.0-130-generic #156-Ubuntu SMP Thu Jun 14 08:53:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
You have new mail in /var/mail/root
root@ctrl1:~# /openstack/
neutron-dhcp-agent 12.0.0.0rc2.dev241
root@ctrl1:~# ls -la /var/run/netns
total 0
drwxrwxrwx 2 root root 100 aug 8 11:59 .
drwxr-xr-x 44 root root 1520 aug 8 16:11 ..
---------- 1 root root 0 aug 8 11:59 qdhcp-b43d85c9-
---------- 1 root root 0 aug 7 11:28 qrouter-
---------- 1 root root 0 aug 7 11:28 snat-3755419c-
root@ctrl3:~# ip netns
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
qdhcp-b43d85c9-
RTNETLINK answers: Invalid argument
qrouter-
RTNETLINK answers: Invalid argument
snat-3755419c-
root@ctrl1:~# tail -f /var/log/
2018-08-08 16:06:32.408 1039014 ERROR neutron.
setting the network namespace "qdhcp-
2018-08-08 16:06:32.409 1039014 WARNING neutron.
setting the network namespace "qdhcp-
.: ProcessExecutio
2018-08-08 16:06:32.419 1039014 ERROR neutron.
2018-08-08 16:06:32.419 1039014 ERROR neutron.
2018-08-08 16:06:32.419 1039014 ERROR neutron.
2018-08-08 16:06:32.419 1039014 ERROR neutron.
2018-08-08 16:06:32.419 1039014 ERROR neutron.
2018-08-08 16:06:32.419 1039014 ERROR neutron.
2018-08-08 16:06:32.419 1039014 ERROR neutron.
2018-08-08 16:06:32.419 1039014 ERROR neutron.
2018-08-08 16:06:32.419 1039014 ERROR neutron.
2018-08-08 16:06:32.419 1039014 ERROR neutron.
2018-08-08 16:06:32.419 1039014 ERROR neutron.
2018-08-08 16:06:32.419 1039014 ERROR neutron.
2018-08-08 16:06:32.419 1039014 ERROR neutron.
2018-08-08 16:06:32.419 1039014 ERROR neutron.
2018-08-08 16:06:32.419 1039014 ERROR neutron.
2018-08-08 16:06:32.419 1039014 ERROR neutron.
2018-08-08 16:06:32.419 1039014 ERROR neutron.
2018-08-08 16:06:32.419 1039014 ERROR neutron.
2018-08-08 16:06:32.419 1039014 ERROR neutron.
2018-08-08 16:06:32.419 1039014 ERROR neutron.
2018-08-08 16:06:32.420 1039014 INFO neutron.
I've seen errors like this when using containers, or with nested namespaces. Is the dhcp-agent getting started inside a namespace? I have not done a deployment with openstack ansible directly to know what else you can check.