IP addresses are not properly reported with radvd stateful subnets
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Expired
|
Undecided
|
Unassigned |
Bug Description
Description of problem:
=======
I Created n radvd IPv6 subnet with:
- ipv6_ra_mode: dhcpv6-stateful
- ipv6_address_mode: dhcpv6-stateful
Meaning:
a. The Neutron DHCP agent (dnsmasq) provides IP addresses and additional parameters.
b. Neutron router (radvd) sends out RAs.
Version-Release number of selected component (if applicable):
=======
openstack-
How reproducible:
=================
2/2
Steps to Reproduce:
===================
1. Create an IPv6 neutron network:
# neutron net-create tenant_
2. Create an IPv6 subnet:
# neutron subnet-create <IPv6_net_id> 2001:64:64:64::1/64 --name tenant_
3. Create a neutron router:
# neutron router-create router1
4. Attach subnet to the router
# neutron router-
5. boot an instance with that network
# nova boot tenant_
Actual results:
===============
# nova show <instance_id> | grep network
| tenant_
# neutron port-show <port_id> | grep fixed_ips
| fixed_ips | {"subnet_id": "<subnet_id>", "ip_address": "2001:64:64:64::5"} |
Dispite that fact that the port mac address matches the instance NIC, the IP obtained by the instance is different.
Expected results:
=================
In this case, the NIC IP address is: 2001:64:
Additional info:
================
1. Instance guest image: rhel7
2. Hypervisor: rhel7
radvd:
======
# cat /var/lib/
interface qr-23b0614a-cd
{
AdvSendAdvert on;
MinRtrAdvInt
MaxRtrAdvInt
prefix 2001:65:65:65::/64
{
AdvOnLink on;
};
};
interface qr-9741429b-bf
{
AdvSendAdvert on;
MinRtrAdvInt
MaxRtrAdvInt
prefix 2001:63:63:63::/64
{
AdvOnLink on;
};
};
interface qr-ace4c312-6c
{
AdvSendAdvert on;
MinRtrAdvInt
MaxRtrAdvInt
};
dnsmasq:
========
nobody 12197 1 0 Dec14 ? 00:00:01 dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces --interface=
# cat /var/lib/
fa:16:3e:
fa:16:3e:
fa:16:3e:
fa:16:3e:
# cat /var/lib/
2001:64:64:64::1 host-2001-
2001:64:64:64::5 host-2001-
2001:64:64:64::6 host-2001-
2001:64:64:64::7 host-2001-
# cat /var/lib/
tag:tag0,
tag:tag0,
# cat /etc/neutron/
dhcp-option-
tags: | added: ipv6 |
Changed in neutron: | |
assignee: | nobody → Sridhar Gaddam (sridhargaddam) |
Changed in neutron: | |
importance: | Undecided → Medium |
Changed in neutron: | |
assignee: | nobody → Aniruddha Singh Gautam (aniruddha-gautam) |
I've found that the issue reproduces with provider statful subnet as well:
- ipv6_ra_mode: not set
- ipv6-address-mode: dhcpv6-stateful