[openstack-dev] [Neutron] vm can't get ipv6 address in ra mode:slaac + address mode: slaac

Jerry Zhao xyzjerry at gmail.com
Thu Dec 18 14:50:06 UTC 2014


It seems that radvd was not spawned successfully
in l3-agent log:

Dec 18 11:23:34 ci-overcloud-controller0-oxzkjphwfyw3 neutron-l3-agent: 
Stderr: '/usr/bin/neutron-rootwrap: Unauthorized command: ip netns exec 
qrouter-6066faaa-0e35-4e7b-8988-7337c493bad7 radvd -C 
/var/run/neutron/ra/6066faaa-0e35-4e7b-8988-7337c493bad7.radvd.conf -p 
/var/run/neutron/external/pids/6066faaa-0e35-4e7b-8988-7337c493bad7.pid.radvd 
(no filter matched)\n'
Dec 18 11:23:34 ci-overcloud-controller0-oxzkjphwfyw3 neutron-l3-agent: 
2014-12-18 11:23:34.611 18015 TRACE neutron.agent.l3_agent Traceback 
(most recent call last):
Dec 18 11:23:34 ci-overcloud-controller0-oxzkjphwfyw3 neutron-l3-agent: 
2014-12-18 11:23:34.611 18015 TRACE neutron.agent.l3_agent   File 
"/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/neutron/common/utils.py", 
line 341, in call
Dec 18 11:23:34 ci-overcloud-controller0-oxzkjphwfyw3 neutron-l3-agent: 
2014-12-18 11:23:34.611 18015 TRACE neutron.agent.l3_agent     return 
func(*args, **kwargs)
Dec 18 11:23:34 ci-overcloud-controller0-oxzkjphwfyw3 neutron-l3-agent: 
2014-12-18 11:23:34.611 18015 TRACE neutron.agent.l3_agent   File 
"/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/neutron/agent/l3_agent.py", 
line 902, in process_router
Dec 18 11:23:34 ci-overcloud-controller0-oxzkjphwfyw3 neutron-l3-agent: 
2014-12-18 11:23:34.611 18015 TRACE neutron.agent.l3_agent     
self.root_helper)
Dec 18 11:23:34 ci-overcloud-controller0-oxzkjphwfyw3 neutron-l3-agent: 
2014-12-18 11:23:34.611 18015 TRACE neutron.agent.l3_agent   File 
"/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/neutron/agent/linux/ra.py", 
line 111, in enable_ipv6_ra
Dec 18 11:23:34 ci-overcloud-controller0-oxzkjphwfyw3 neutron-l3-agent: 
2014-12-18 11:23:34.611 18015 TRACE neutron.agent.l3_agent     
_spawn_radvd(router_id, radvd_conf, router_ns, root_helper)
Dec 18 11:23:34 ci-overcloud-controller0-oxzkjphwfyw3 neutron-l3-agent: 
2014-12-18 11:23:34.611 18015 TRACE neutron.agent.l3_agent   File 
"/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/neutron/agent/linux/ra.py", 
line 95, in _spawn_radvd
Dec 18 11:23:34 ci-overcloud-controller0-oxzkjphwfyw3 neutron-l3-agent: 
2014-12-18 11:23:34.611 18015 TRACE neutron.agent.l3_agent     
radvd.enable(callback, True)
Dec 18 11:23:34 ci-overcloud-controller0-oxzkjphwfyw3 neutron-l3-agent: 
2014-12-18 11:23:34.611 18015 TRACE neutron.agent.l3_agent   File 
"/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/neutron/agent/linux/external_process.py", 
line 77, in enable
Dec 18 11:23:34 ci-overcloud-controller0-oxzkjphwfyw3 neutron-l3-agent: 
2014-12-18 11:23:34.611 18015 TRACE neutron.agent.l3_agent     
ip_wrapper.netns.execute(cmd, addl_env=self.cmd_addl_env)
Dec 18 11:23:34 ci-overcloud-controller0-oxzkjphwfyw3 neutron-l3-agent: 
2014-12-18 11:23:34.611 18015 TRACE neutron.agent.l3_agent   File 
"/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", 
line 554, in execute
Dec 18 11:23:34 ci-overcloud-controller0-oxzkjphwfyw3 neutron-l3-agent: 
2014-12-18 11:23:34.611 18015 TRACE neutron.agent.l3_agent     
check_exit_code=check_exit_code, extra_ok_codes=extra_ok_codes)
Dec 18 11:23:34 ci-overcloud-controller0-oxzkjphwfyw3 neutron-l3-agent: 
2014-12-18 11:23:34.611 18015 TRACE neutron.agent.l3_agent   File 
"/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/neutron/agent/linux/utils.py", 
line 82, in execute
Dec 18 11:23:34 ci-overcloud-controller0-oxzkjphwfyw3 neutron-l3-agent: 
2014-12-18 11:23:34.611 18015 TRACE neutron.agent.l3_agent     raise 
RuntimeError(m)
Dec 18 11:23:34 ci-overcloud-controller0-oxzkjphwfyw3 neutron-l3-agent: 
2014-12-18 11:23:34.611 18015 TRACE neutron.agent.l3_agent RuntimeError:
Dec 18 11:23:34 ci-overcloud-controller0-oxzkjphwfyw3 neutron-l3-agent: 
2014-12-18 11:23:34.611 18015 TRACE neutron.agent.l3_agent Command: 
['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 
'ip', 'netns', 'exec', 'qrouter-6066faaa-0e35-4e7b-8988-7337c493bad7', 
'radvd', '-C', 
'/var/run/neutron/ra/6066faaa-0e35-4e7b-8988-7337c493bad7.radvd.conf', 
'-p', 
'/var/run/neutron/external/pids/6066faaa-0e35-4e7b-8988-7337c493bad7.pid.radvd']
Dec 18 11:23:34 ci-overcloud-controller0-oxzkjphwfyw3 neutron-l3-agent: 
2014-12-18 11:23:34.611 18015 TRACE neutron.agent.l3_agent Exit code: 99
Dec 18 11:23:34 ci-overcloud-controller0-oxzkjphwfyw3 neutron-l3-agent: 
2014-12-18 11:23:34.611 18015 TRACE neutron.agent.l3_agent Stdout: ''
Dec 18 11:23:34 ci-overcloud-controller0-oxzkjphwfyw3 neutron-l3-agent: 
2014-12-18 11:23:34.611 18015 TRACE neutron.agent.l3_agent Stderr: 
'/usr/bin/neutron-rootwrap: Unauthorized command: ip netns exec 
qrouter-6066faaa-0e35-4e7b-8988-7337c493bad7 radvd -C 
/var/run/neutron/ra/6066faaa-0e35-4e7b-8988-7337c493bad7.radvd.conf -p 
/var/run/neutron/external/pids/6066faaa-0e35-4e7b-8988-7337c493bad7.pid.radvd 
(no filter matched)\n'


On 12/18/2014 04:50 AM, Jerry Zhao wrote:
> Hi
> I have configured a provider flat network with ipv6 subnet in ra mode 
> slaac and address mode slaac. However, when i launched a ubuntu trusty 
> VM, it couldn't get the ipv6 address but ipv4 only. I am running the 
> trunk code BTW. The command used are:
>
> neutron net-create   --provider:network_type=flat 
> --provider:physical_network=datacentre --router:external=true 
> provider-net
> neutron subnet-create --ip-version=6 --name=ipv6 
> --ipv6-address-mode=slaac --ipv6-ra-mode=slaac provider-net 
> 2001:470:1f0e:cb4::0/64 --allocation-pool 
> start=2001:470:1f0e:cb4::20,end=2001:470:1f0e:cb4::fffe --gateway 
> 2001:470:1f0e:cb4::3
> neutron subnet-create --ip-version=4 --name=ipv4 provider-net 
> 162.3.122.0/24 --allocation-pool start=162.3.122.4,end=162.3.122.253
> neutron router-interface-add default-router ipv6
> neutron router-interface-add default-router ipv4
>
> The vm is reachable when i configured the ipv6 address calculated by 
> neutron manually on the nic.
> How can i get the auto configuration to work on the VM?
> Thanks!




More information about the OpenStack-dev mailing list