This is reproducible on centos7/train (Dincer case):
need to reconfigure and (extra) restart l3 agent container.
The issue is that on 2nd restart container has invalid references to netns inside itself - instead of proc mounts, it has a bunch of regular files which are unusable for l3 agent.
This is reproducible on centos7/train (Dincer case):
need to reconfigure and (extra) restart l3 agent container.
The issue is that on 2nd restart container has invalid references to netns inside itself - instead of proc mounts, it has a bunch of regular files which are unusable for l3 agent.
Logs:
2020-02-27 12:20:58.626 17 ERROR neutron. agent.l3. agent [-] Error while initializing router 87c3c36f- 1038-45d4- afc0-c9c109239b 66: ProcessExecutio nError: Exit code: 1; Stdin: ; Stdout: ; Stderr: setting the network namespace "qrouter- 87c3c36f- 1038-45d4- afc0-c9c109239b 66" failed: Inv agent.l3. agent Traceback (most recent call last): agent.l3. agent File "/var/lib/ kolla/venv/ lib/python2. 7/site- packages/ neutron/ agent/l3/ agent.py" , line 485, in _router_added agent.l3. agent ri.initialize( self.process_ monitor) agent.l3. agent File "/var/lib/ kolla/venv/ lib/python2. 7/site- packages/ neutron/ agent/l3/ router_ info.py" , line 167, in initialize agent.l3. agent self.router_ namespace. create( ) agent.l3. agent File "/var/lib/ kolla/venv/ lib/python2. 7/site- packages/ neutron/ agent/l3/ namespaces. py", line 97, in create agent.l3. agent ip_wrapper. netns.execute( cmd) agent.l3. agent File "/var/lib/ kolla/venv/ lib/python2. 7/site- packages/ neutron/ agent/linux/ ip_lib. py", line 713, in execute agent.l3. agent run_as_ root=run_ as_root) agent.l3. agent File "/var/lib/ kolla/venv/ lib/python2. 7/site- packages/ neutron/ agent/linux/ utils.py" , line 147, in execute agent.l3. agent returncode= returncode) agent.l3. agent ProcessExecutio nError: Exit code: 1; Stdin: ; Stdout: ; Stderr: setting the network namespace "qrouter- 87c3c36f- 1038-45d4- afc0-c9c109239b 66" failed: Invalid argument agent.l3. agent agent.l3. agent
alid argument
2020-02-27 12:20:58.626 17 ERROR neutron.
2020-02-27 12:20:58.626 17 ERROR neutron.
2020-02-27 12:20:58.626 17 ERROR neutron.
2020-02-27 12:20:58.626 17 ERROR neutron.
2020-02-27 12:20:58.626 17 ERROR neutron.
2020-02-27 12:20:58.626 17 ERROR neutron.
2020-02-27 12:20:58.626 17 ERROR neutron.
2020-02-27 12:20:58.626 17 ERROR neutron.
2020-02-27 12:20:58.626 17 ERROR neutron.
2020-02-27 12:20:58.626 17 ERROR neutron.
2020-02-27 12:20:58.626 17 ERROR neutron.
2020-02-27 12:20:58.626 17 ERROR neutron.
2020-02-27 12:20:58.626 17 ERROR neutron.
2020-02-27 12:20:58.626 17 ERROR neutron.
2020-02-27 12:20:58.644 17 WARNING neutron. agent.l3. agent [-] Hit retry limit with router update for 87c3c36f- 1038-45d4- afc0-c9c109239b 66, action 3 agent.l3. agent [-] Info for router 87c3c36f- 1038-45d4- afc0-c9c109239b 66 was not found. Performing router cleanup agent.l3. agent [-] Error while deleting router 87c3c36f- 1038-45d4- afc0-c9c109239b 66: OSError: [Errno 22] failed to open netns agent.l3. agent Traceback (most recent call last): agent.l3. agent File "/var/lib/ kolla/venv/ lib/python2. 7/site- packages/ neutron/ agent/l3/ agent.py" , line 506, in _safe_router_ removed agent.l3. agent self._router_ removed( ri, router_id) agent.l3. agent File "/var/lib/ kolla/venv/ lib/python2. 7/site- packages/ neutron/ agent/l3/ agent.py" , line 529, in _router_removed agent.l3. agent self.namespaces _manager. ensure_ router_ cleanup( router_ id) agent.l3. agent File "/var/lib/ kolla/venv/ lib/python2. 7/site- packages/ neutron/ agent/l3/ namespace_ manager. py", line 129, in ensure_ router_ cleanup agent.l3. agent self._cleanup( ns_prefix, ns_id) agent.l3. agent File "/var/lib/ kolla/venv/ lib/python2. 7/site- packages/ neutron/ agent/l3/ namespace_ manager. py", line 143, in _cleanup agent.l3. agent ns.delete() agent.l3. agent File "/var/lib/ kolla/venv/ lib/python2. 7/site- packages/ neutron/ agent/l3/ namespaces. py", line 72, in wrapped agent.l3. agent return f(self, *args, **kwargs) agent.l3. agent File "/var/lib/ kolla/venv/ lib/python2. 7/site- packages/ neutron/ agent/l3/ namespaces. py", line 136, in delete agent.l3. agent for d in ns_ip.get_ devices( ): agent.l3. agent File "/var/lib/ kolla/venv/ lib/python2. 7/site- packages/ neutron/ agent/linux/ ip_lib. py", line 167, in get_devices agent.l3. agent devices = privileged. get_device_ names(self. namespace) agent.l3. agent File "/var/lib/ kolla/venv/ lib/python2. 7/site- packages/ neutron/ privileged/ agent/linux/ ip_lib. py", line 582, in get_device_names agent.l3. agent in get_link_ devices( namespace, **kwargs)] agent.l3. agent File "/var/lib/ kolla/venv/ lib/python2. 7/site- packages/ neutron/ privileged/ agent/linux/ ip_lib. py", line 53, in sync_inner agent.l3. agent return input_func(*args, **kwargs) agent.l3. agent File "/var/lib/ kolla/venv/ lib/python2. 7/site- packages/ oslo_privsep/ priv_context. py", line 245, in _wrap agent.l3. agent return self.channel. remote_ call(name, args, kwargs) agent.l3. agent File "/var/lib/ kolla/venv/ lib/python2. 7/site- packages/ oslo_privsep/ daemon. py", line 204, in remote_call agent.l3. agent raise exc_type( *result[ 2]) agent.l3. agent OSError: [Errno 22] failed to open netns agent.l3. agent
2020-02-27 12:20:58.644 17 WARNING neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.
2020-02-27 12:20:58.657 17 ERROR neutron.