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

Jerry Xinyu Zhao xyzjerry at gmail.com
Fri Dec 19 01:44:29 UTC 2014


I also saw that bugzilla bug report. but my vm is ubuntu 14.04. and i also
have tried to run rootwrap command manually with sudo but still no avail.

On Thu, Dec 18, 2014 at 7:03 AM, Ihar Hrachyshka <ihrachys at redhat.com>
wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> I suspect that's some Red Hat distro, and radvd lacks SELinux context
> set to allow neutron l3 agent to spawn it.
>
> On 18/12/14 15:50, Jerry Zhao wrote:
> > 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!
> >
> >
> > _______________________________________________ OpenStack-dev
> > mailing list OpenStack-dev at lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
>
> iQEcBAEBCgAGBQJUkuy7AAoJEC5aWaUY1u57RLwIAKayW3wgCoyw4Qh06jRoK8Bx
> 7qBCbTKiyi2DdjiYXEyDMZc3wnm7j1pvpikaByNCOA2ybXj8uFfnQiwsoFYRTxPD
> PLwvYsm+Afv3Bwaz7FSj1LKA8NmxNaz0ZxqBai/6aC17HjJyNfRxxCt2ZUG+WeP/
> Yj9/0jUIoOVwOGspTcAXPQ1eaFHbs2nH0afD6aX7s4/g2i7vnQgJOOLrgRuetInN
> oR/DtZ81XJFyN3q1hl6Pv5k6TO0sTbeECV1OwOjQ2wJwCCarTAZJbW1s7fF8LCFm
> 0m04XGuZuWxNeSDYoamdF7a21bml1DvWJ5XHHvnblewZrK+01TUmMqAOW6KAWDo=
> =//1f
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141218/2e873869/attachment.html>


More information about the OpenStack-dev mailing list