Neutron network:dhcp port is not assigned EUI64 IPv6 address for SLAAC subnet
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Dane LeBlanc | ||
Juno |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In an IPv6 subnet which has ipv6_address_mode set to slaac or dhcpv6-stateless, Neutron should use EUI-64 address assignment for all the addresses. Also if a fixed IP address is specified for such a subnet, we should report an appropriate error message during port creation or port update operation.
A simple scenario to reproduce this issue...
#As an admin user, create a provider network and associate an IPv4 and IPv6 subnet.
cd ~/devstack
source openrc admin admin
neutron net-create N-ProviderNet --provider:
neutron subnet-create --name N-ProviderSubnet N-ProviderNet 20.1.1.0/24 --gateway 20.1.1.1 --allocation-pool start=20.
neutron subnet-create --name N-ProviderSubne
As a normal tenant, launch a VM with the provider net-id. You could see that ipAddress assigned to dhcp port is "2001:1:2:3::1" which is not an EUI64 based address.
sridhar@
+------
| mac_address | fixed_ips |
+------
| fa:16:3e:6a:db:6f | {"subnet_id": "61d2661d-
| fa:16:3e:54:56:13 | {"subnet_id": "3e3487de-
| | {"subnet_id": "716234df-
| fa:16:3e:dd:e9:82 | {"subnet_id": "61d2661d-
| fa:16:3e:52:1f:43 | {"subnet_id": "fbad7350-
| fa:16:3e:8a:f0:b6 | {"subnet_id": "61d2661d-
| fa:16:3e:02:d2:50 | {"subnet_id": "fbad7350-
| fa:16:3e:45:5c:00 | {"subnet_id": "3e3487de-
| | {"subnet_id": "716234df-
+------
sridhar@
tap4828cfbd-fe Link encap:Ethernet HWaddr fa:16:3e:54:56:13
inet addr:20.1.1.101 Bcast:20.1.1.255 Mask:255.255.255.0
inet6 addr: 2001:1:
inet6 addr: 2001:1:2:3::1/64 Scope:Global
inet6 addr: fe80::f816:
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:337 errors:0 dropped:0 overruns:0 frame:0
TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:37048 (37.0 KB) TX bytes:3936 (3.9 KB)
tags: | added: ipv6 |
Changed in neutron: | |
status: | New → In Progress |
summary: |
- Neutron network:dhcp port is not assigned EUI64 IPv6 address + Neutron network:dhcp port is not assigned EUI64 IPv6 address for SLAAC + subnet |
Changed in neutron: | |
milestone: | none → juno-rc1 |
importance: | Undecided → High |
description: | updated |
tags: | added: juno-rc-potential |
information type: | Public → Public Security |
information type: | Public Security → Public |
Changed in neutron: | |
assignee: | Xu Han Peng (xuhanp) → Dane LeBlanc (leblancd) |
tags: |
added: juno-backport-potential removed: juno-rc-potential |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | kilo-1 → 2015.1.0 |
I will debug and find the root cause.