Restarting Neutron containers which make use of network namespaces doesn't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Invalid
|
Undecided
|
Unassigned | ||
tripleo |
Fix Released
|
High
|
Brent Eagles |
Bug Description
When DHCP, L3, Metadata or OVN-Metadata containers are restarted they can't
set the previous namespaces:
[heat-admin@
8559f5a7fa45
[heat-admin@
2018-02-09 08:34:41.059 5 CRITICAL neutron [-] Unhandled error: ProcessExecutio
2018-02-09 08:34:41.059 5 ERROR neutron Traceback (most recent call last):
2018-02-09 08:34:41.059 5 ERROR neutron File "/usr/bin/
2018-02-09 08:34:41.059 5 ERROR neutron sys.exit(main())
2018-02-09 08:34:41.059 5 ERROR neutron File "/usr/lib/
2018-02-09 08:34:41.059 5 ERROR neutron metadata_
2018-02-09 08:34:41.059 5 ERROR neutron File "/usr/lib/
2018-02-09 08:34:41.059 5 ERROR neutron agt.start()
2018-02-09 08:34:41.059 5 ERROR neutron File "/usr/lib/
2018-02-09 08:34:41.059 5 ERROR neutron self.sync()
2018-02-09 08:34:41.059 5 ERROR neutron File "/usr/lib/
2018-02-09 08:34:41.059 5 ERROR neutron return f(*args, **kwargs)
2018-02-09 08:34:41.059 5 ERROR neutron File "/usr/lib/
2018-02-09 08:34:41.059 5 ERROR neutron metadata_namespaces = self.ensure_
2018-02-09 08:34:41.059 5 ERROR neutron File "/usr/lib/
2018-02-09 08:34:41.059 5 ERROR neutron netns = self.provision_
2018-02-09 08:34:41.059 5 ERROR neutron File "/usr/lib/
2018-02-09 08:34:41.059 5 ERROR neutron veth_name[0], veth_name[1], namespace)
2018-02-09 08:34:41.059 5 ERROR neutron File "/usr/lib/
2018-02-09 08:34:41.059 5 ERROR neutron self._as_root([], 'link', tuple(args))
2018-02-09 08:34:41.059 5 ERROR neutron File "/usr/lib/
2018-02-09 08:34:41.059 5 ERROR neutron namespace=
2018-02-09 08:34:41.059 5 ERROR neutron File "/usr/lib/
2018-02-09 08:34:41.059 5 ERROR neutron log_fail_
2018-02-09 08:34:41.059 5 ERROR neutron File "/usr/lib/
2018-02-09 08:34:41.059 5 ERROR neutron raise ProcessExecutio
2018-02-09 08:34:41.059 5 ERROR neutron ProcessExecutio
2018-02-09 08:34:41.059 5 ERROR neutron
2018-02-09 08:34:41.059 5 ERROR neutron
2018-02-09 08:34:41.177 21 INFO oslo_service.
2018-02-09 08:34:41.178 21 INFO eventlet.
An easy way to reproduce the bug:
[heat-admin@
[root@overcloud
[root@overcloud
[heat-admin@
[heat-admin@
5c5f254a9321bd7
[heat-admin@
[root@overcloud
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
my_netns
[root@overcloud
RTNETLINK answers: Invalid argument
setting the network namespace "my_netns" failed: Invalid argument
Deleting everything under /run/netns/* from kolla_start but this would involve
a full sync of the agents which is not desirable:
[root@overcloud
rm: remove regular empty file '/run/netns/
[root@overcloud
[root@overcloud
[root@overcloud
For containerized services deployed with tripleo, it's addressed in https:/ /review. openstack. org/#/c/ 542858/