← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1330826] Re: Neutron network:dhcp port is not assigned EUI64 IPv6 address for SLAAC subnet

 

** Changed in: neutron/juno
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1330826

Title:
  Neutron network:dhcp port is not assigned EUI64 IPv6 address for SLAAC
  subnet

Status in OpenStack Neutron (virtual network service):
  Fix Committed
Status in neutron juno series:
  Fix Released

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:physical_network=ipv6-net --provider:network_type=flat --shared
  neutron subnet-create --name N-ProviderSubnet N-ProviderNet 20.1.1.0/24  --gateway 20.1.1.1 --allocation-pool start=20.1.1.100,end=20.1.1.150
  neutron subnet-create --name N-ProviderSubnetIPv6 --ip_version 6 --ipv6-address-mode slaac --gateway fe80::689d:41ff:fe20:44ca N-ProviderNet 2001:1:2:3::/64

  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@ControllerNode:~/devstack$ neutron port-list -F mac_address -F fixed_ips
  +-------------------+-------------------------------------------------------------------------------------------------------+
  | mac_address       | fixed_ips                                                                                             |
  +-------------------+-------------------------------------------------------------------------------------------------------+
  | fa:16:3e:6a:db:6f | {"subnet_id": "61d2661d-22a0-449c-8823-b4d781515f66", "ip_address": "172.24.4.2"}                     |
  | fa:16:3e:54:56:13 | {"subnet_id": "3e3487de-036c-4ab7-ba3f-c6b5db041fb2", "ip_address": "20.1.1.101"}                     |
  |                   | {"subnet_id": "716234df-1f46-434c-be48-d976a86438d6", "ip_address": "2001:1:2:3::1"}                  |
  | fa:16:3e:dd:e9:82 | {"subnet_id": "61d2661d-22a0-449c-8823-b4d781515f66", "ip_address": "172.24.4.4"}                     |
  | fa:16:3e:52:1f:43 | {"subnet_id": "fbad7350-83c4-4cad-aa95-fecac232cea1", "ip_address": "10.0.0.101"}                     |
  | fa:16:3e:8a:f0:b6 | {"subnet_id": "61d2661d-22a0-449c-8823-b4d781515f66", "ip_address": "172.24.4.3"}                     |
  | fa:16:3e:02:d2:50 | {"subnet_id": "fbad7350-83c4-4cad-aa95-fecac232cea1", "ip_address": "10.0.0.1"}                       |
  | fa:16:3e:45:5c:00 | {"subnet_id": "3e3487de-036c-4ab7-ba3f-c6b5db041fb2", "ip_address": "20.1.1.102"}                     |
  |                   | {"subnet_id": "716234df-1f46-434c-be48-d976a86438d6", "ip_address": "2001:1:2:3:f816:3eff:fe45:5c00"} |
  +-------------------+-------------------------------------------------------------------------------------------------------+

  sridhar@ControllerNode:~/devstack$ sudo ip netns exec qdhcp-93093763-bc7d-4be4-91ad-0ef9ba69273c ifconfig
  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:2:3:f816:3eff:fe54:5613/64 Scope:Global
            inet6 addr: 2001:1:2:3::1/64 Scope:Global
            inet6 addr: fe80::f816:3eff:fe54:5613/64 Scope:Link
            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
            collisions:0 txqueuelen:0
            RX bytes:37048 (37.0 KB)  TX bytes:3936 (3.9 KB)

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1330826/+subscriptions


References