[PKG-Openstack-devel] Bug#858565: neutron-l3-agent: IPv6 Stateless Address Auto Configuration (SLAAC) mode fails when radvd is not installed on the host

Alberto Molina Coballes alb.molina at gmail.com
Thu Mar 23 16:51:05 UTC 2017


Package: neutron-l3-agent
Version: 2:9.1.1-1
Severity: normal

Dear Maintainer,

When a IPv6 subnet is created in SLAAC mode, neutron-l3-agent fails if radvd is not installed:

2017-03-23 16:50:19.157 8667 ERROR neutron.agent.linux.utils [-] Exit code: 99; Stdin: ; Stdout: ; Stderr: /usr/bin/neutron-rootwrap: Unauthorized command: ip netns exec qrouter-23e0d727-e5ef-41a7-aa6c-6d1229968185 radvd -C /var/lib/neutron/ra/23e0d727-e5ef-41a7-aa6c-6d1229968185.radvd.conf -p /var/lib/neutron/external/pids/23e0d727-e5ef-41a7-aa6c-6d1229968185.pid.radvd -m syslog (no filter matched)
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info [-] Exit code: 99; Stdin: ; Stdout: ; Stderr: /usr/bin/neutron-rootwrap: Unauthorized command: ip netns exec qrouter-23e0d727-e5ef-41a7-aa6c-6d1229968185 radvd -C /var/lib/neutron/ra/23e0d727-e5ef-41a7-aa6c-6d1229968185.radvd.conf -p /var/lib/neutron/external/pids/23e0d727-e5ef-41a7-aa6c-6d1229968185.pid.radvd -m syslog (no filter matched)
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info Traceback (most recent call last):
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info   File "/usr/lib/python2.7/dist-packages/neutron/common/utils.py", line 239, in call
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info     return func(*args, **kwargs)
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info   File "/usr/lib/python2.7/dist-packages/neutron/agent/l3/router_info.py", line 1060, in process
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info     self._process_internal_ports(agent.pd)
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info   File "/usr/lib/python2.7/dist-packages/neutron/agent/l3/router_info.py", line 556, in _process_internal_ports
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info     self.enable_radvd(internal_ports)
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info   File "/usr/lib/python2.7/dist-packages/neutron/agent/l3/router_info.py", line 470, in enable_radvd
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info     self.radvd.enable(internal_ports)
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ra.py", line 180, in enable
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info     self._spawn_radvd(radvd_conf)
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ra.py", line 168, in _spawn_radvd
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info     pm.enable(reload_cfg=True)
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/external_process.py", line 94, in enable
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info     run_as_root=self.run_as_root)
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 907, in execute
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info     log_fail_as_error=log_fail_as_error, **kwargs)
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 144, in execute
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info     raise ProcessExecutionError(msg, returncode=returncode)
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info ProcessExecutionError: Exit code: 99; Stdin: ; Stdout: ; Stderr: /usr/bin/neutron-rootwrap: Unauthorized command: ip netns exec qrouter-23e0d727-e5ef-41a7-aa6c-6d1229968185 radvd -C /var/lib/neutron/ra/23e0d727-e5ef-41a7-aa6c-6d1229968185.radvd.conf -p /var/lib/neutron/external/pids/23e0d727-e5ef-41a7-aa6c-6d1229968185.pid.radvd -m syslog (no filter matched)
2017-03-23 16:50:19.158 8667 ERROR neutron.agent.l3.router_info
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent [-] Failed to process compatible router: 23e0d727-e5ef-41a7-aa6c-6d1229968185
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent Traceback (most recent call last):
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/l3/agent.py", line 508, in _process_router_update
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent     self._process_router_if_compatible(router)
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/l3/agent.py", line 443, in _process_router_if_compatible
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent     self._process_added_router(router)
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/l3/agent.py", line 451, in _process_added_router
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent     ri.process(self)
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/dist-packages/neutron/common/utils.py", line 242, in call
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent     self.logger(e)
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent     self.force_reraise()
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent     six.reraise(self.type_, self.value, self.tb)
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/dist-packages/neutron/common/utils.py", line 239, in call
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent     return func(*args, **kwargs)
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/l3/router_info.py", line 1060, in process
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent     self._process_internal_ports(agent.pd)
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/l3/router_info.py", line 556, in _process_internal_ports
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent     self.enable_radvd(internal_ports)
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/l3/router_info.py", line 470, in enable_radvd
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent     self.radvd.enable(internal_ports)
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ra.py", line 180, in enable
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent     self._spawn_radvd(radvd_conf)
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ra.py", line 168, in _spawn_radvd
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent     pm.enable(reload_cfg=True)
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/external_process.py", line 94, in enable
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent     run_as_root=self.run_as_root)
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 907, in execute
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent     log_fail_as_error=log_fail_as_error, **kwargs)
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 144, in execute
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent     raise ProcessExecutionError(msg, returncode=returncode)
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent ProcessExecutionError: Exit code: 99; Stdin: ; Stdout: ; Stderr: /usr/bin/neutron-rootwrap: Unauthorized command: ip netns exec qrouter-23e0d727-e5ef-41a7-aa6c-6d1229968185 radvd -C /var/lib/neutron/ra/23e0d727-e5ef-41a7-aa6c-6d1229968185.radvd.conf -p /var/lib/neutron/external/pids/23e0d727-e5ef-41a7-aa6c-6d1229968185.pid.radvd -m syslog (no filter matched)
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent
2017-03-23 16:50:19.160 8667 ERROR neutron.agent.l3.agent

This issue is solved installing radvd on the network node, so please consider this package (radvd) as a dependency of neutron-l3-agent

Thanks

Alberto


-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.8.0-2-amd64 (SMP w/6 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages neutron-l3-agent depends on:
ii  adduser              3.115
ii  debconf              1.5.60
ii  init-system-helpers  1.47
ii  iputils-arping       3:20161105-1
ii  keepalived           1:1.3.2-1
ii  lsb-base             9.20161125
ii  neutron-common       2:9.1.1-1
ii  sudo                 1.8.19p1-1

Versions of packages neutron-l3-agent recommends:
ii  openvswitch-switch  2.6.2~pre+git20161223-2

neutron-l3-agent suggests no packages.

-- Configuration Files:
/etc/neutron/l3_agent.ini [Errno 13] Permiso denegado: '/etc/neutron/l3_agent.ini'

-- no debconf information



More information about the Openstack-devel mailing list