2014-09-04 22:52:53 |
Sagi (Sergey) Shnaidman |
bug |
|
|
added bug |
2014-09-04 22:55:29 |
Sagi (Sergey) Shnaidman |
description |
When we create port in network without subnets(*) and then create IPv4 subnet with DHCP enabled, the port gets IP automatically. Unlike so with IPv6 subnets. When we create subnet with DHCPv6 stateful the port doesn't get anything from DHCP server automatically, only after explicit port-update. It's inconsistence.
With IPv4:
$ neutron net-create netto
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | b3858d5e-4665-422a-8511-6dd79f54437f |
| name | netto6 |
| provider:network_type | vxlan |
| provider:physical_network | |
| provider:segmentation_id | 1005 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | b1be3cf4e956459cad6b3f6541bbbad8 |
+---------------------------+--------------------------------------+
$ neutron port-create netto
Created a new port:
+-----------------------+--------------------------------------+
| Field | Value |
+-----------------------+--------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| device_id | |
| device_owner | |
| fixed_ips | |
| id | bd12d32c-66fc-4947-b266-c4d565454174 |
| mac_address | fa:16:3e:a2:d8:14 |
| name | |
| network_id | b3858d5e-4665-422a-8511-6dd79f54437f |
| security_groups | b2fdab5e-1aa1-49bd-9717-72b41b8d109e |
| status | DOWN |
| tenant_id | b1be3cf4e956459cad6b3f6541bbbad8 |
+-----------------------+--------------------------------------+
$ neutron subnet-create --ip-version=4 netto "192.168.111.0/24"
Created a new subnet:
+-------------------+----------------------------------------------------------+
| Field | Value |
+-------------------+----------------------------------------------------------+
| allocation_pools | {"start": "2002::2", "end": "2002::ffff:ffff:ffff:fffe"} |
| cidr | 2002::/64 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 2002::1 |
| host_routes | |
| id | 66e3e3c6-d561-494a-aec7-4fee272cf71d |
| ip_version | 6 |
| ipv6_address_mode | dhcpv6-stateful |
| ipv6_ra_mode | dhcpv6-stateful |
| name | |
| network_id | b3858d5e-4665-422a-8511-6dd79f54437f |
| tenant_id | b1be3cf4e956459cad6b3f6541bbbad8 |
+-------------------+----------------------------------------------------------+
$ neutron port-list | grep 9856ecc4-9fc0-495c-81d1-686502a3ec83 # Port ID
| cb1f0dad-d393-49fc-a3ed-098a7e1d3692 | | fa:16:3e:79:04:d6 | {"subnet_id": "9856ecc4-9fc0-495c-81d1-686502a3ec83", "ip_address": "192.168.111.2"} |
With IPv6:
$ neutron net-create netto6
$ neutron port-create netto6
$ neutron subnet-create --ipv6-ra-mode=dhcpv6-stateful --ipv6-address-mode=dhcpv6-stateful --ip-version=6 netto6 "2002::/64"
$ neutron port-list | grep bd12d32c-66fc-4947-b266-c4d565454174 # Port ID
| bd12d32c-66fc-4947-b266-c4d565454174 | | fa:16:3e:a2:d8:14 |
The same thing also with :
1) --ipv6-ra-mode=dhcpv6-stateless --ipv6-address-mode=dhcpv6-stateless
2) --ipv6-address-mode=dhcpv6-stateful only
3) --ipv6-address-mode=dhcpv6-stateless only |
When we create port in network without subnets(*) and then create IPv4 subnet with DHCP enabled, the port gets IP automatically. Unlike so with IPv6 subnets. When we create subnet with DHCPv6 stateful the port doesn't get anything from DHCP server automatically, only after explicit port-update. It's inconsistence.
With IPv4:
$ neutron net-create netto
$ neutron port-create netto
$ neutron subnet-create --ip-version=4 netto "192.168.111.0/24"
$ neutron port-list | grep 9856ecc4-9fc0-495c-81d1-686502a3ec83 # Port ID
| cb1f0dad-d393-49fc-a3ed-098a7e1d3692 | | fa:16:3e:79:04:d6 | {"subnet_id": "9856ecc4-9fc0-495c-81d1-686502a3ec83", "ip_address": "192.168.111.2"} |
With IPv6:
$ neutron net-create netto6
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | b3858d5e-4665-422a-8511-6dd79f54437f |
| name | netto6 |
| provider:network_type | vxlan |
| provider:physical_network | |
| provider:segmentation_id | 1005 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | b1be3cf4e956459cad6b3f6541bbbad8 |
+---------------------------+--------------------------------------+
$ neutron port-create netto6
Created a new port:
+-----------------------+--------------------------------------+
| Field | Value |
+-----------------------+--------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| device_id | |
| device_owner | |
| fixed_ips | |
| id | bd12d32c-66fc-4947-b266-c4d565454174 |
| mac_address | fa:16:3e:a2:d8:14 |
| name | |
| network_id | b3858d5e-4665-422a-8511-6dd79f54437f |
| security_groups | b2fdab5e-1aa1-49bd-9717-72b41b8d109e |
| status | DOWN |
| tenant_id | b1be3cf4e956459cad6b3f6541bbbad8 |
+-----------------------+--------------------------------------+
$ neutron subnet-create --ipv6-ra-mode=dhcpv6-stateful --ipv6-address-mode=dhcpv6-stateful --ip-version=6 netto6 "2002::/64"
Created a new subnet:
+-------------------+----------------------------------------------------------+
| Field | Value |
+-------------------+----------------------------------------------------------+
| allocation_pools | {"start": "2002::2", "end": "2002::ffff:ffff:ffff:fffe"} |
| cidr | 2002::/64 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 2002::1 |
| host_routes | |
| id | 66e3e3c6-d561-494a-aec7-4fee272cf71d |
| ip_version | 6 |
| ipv6_address_mode | dhcpv6-stateful |
| ipv6_ra_mode | dhcpv6-stateful |
| name | |
| network_id | b3858d5e-4665-422a-8511-6dd79f54437f |
| tenant_id | b1be3cf4e956459cad6b3f6541bbbad8 |
+-------------------+----------------------------------------------------------+
$ neutron port-list | grep bd12d32c-66fc-4947-b266-c4d565454174 # Port ID
| bd12d32c-66fc-4947-b266-c4d565454174 | | fa:16:3e:a2:d8:14 |
The same thing also with :
1) --ipv6-ra-mode=dhcpv6-stateless --ipv6-address-mode=dhcpv6-stateless
2) --ipv6-address-mode=dhcpv6-stateful only
3) --ipv6-address-mode=dhcpv6-stateless only |
|
2014-09-04 22:56:19 |
Sagi (Sergey) Shnaidman |
description |
When we create port in network without subnets(*) and then create IPv4 subnet with DHCP enabled, the port gets IP automatically. Unlike so with IPv6 subnets. When we create subnet with DHCPv6 stateful the port doesn't get anything from DHCP server automatically, only after explicit port-update. It's inconsistence.
With IPv4:
$ neutron net-create netto
$ neutron port-create netto
$ neutron subnet-create --ip-version=4 netto "192.168.111.0/24"
$ neutron port-list | grep 9856ecc4-9fc0-495c-81d1-686502a3ec83 # Port ID
| cb1f0dad-d393-49fc-a3ed-098a7e1d3692 | | fa:16:3e:79:04:d6 | {"subnet_id": "9856ecc4-9fc0-495c-81d1-686502a3ec83", "ip_address": "192.168.111.2"} |
With IPv6:
$ neutron net-create netto6
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | b3858d5e-4665-422a-8511-6dd79f54437f |
| name | netto6 |
| provider:network_type | vxlan |
| provider:physical_network | |
| provider:segmentation_id | 1005 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | b1be3cf4e956459cad6b3f6541bbbad8 |
+---------------------------+--------------------------------------+
$ neutron port-create netto6
Created a new port:
+-----------------------+--------------------------------------+
| Field | Value |
+-----------------------+--------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| device_id | |
| device_owner | |
| fixed_ips | |
| id | bd12d32c-66fc-4947-b266-c4d565454174 |
| mac_address | fa:16:3e:a2:d8:14 |
| name | |
| network_id | b3858d5e-4665-422a-8511-6dd79f54437f |
| security_groups | b2fdab5e-1aa1-49bd-9717-72b41b8d109e |
| status | DOWN |
| tenant_id | b1be3cf4e956459cad6b3f6541bbbad8 |
+-----------------------+--------------------------------------+
$ neutron subnet-create --ipv6-ra-mode=dhcpv6-stateful --ipv6-address-mode=dhcpv6-stateful --ip-version=6 netto6 "2002::/64"
Created a new subnet:
+-------------------+----------------------------------------------------------+
| Field | Value |
+-------------------+----------------------------------------------------------+
| allocation_pools | {"start": "2002::2", "end": "2002::ffff:ffff:ffff:fffe"} |
| cidr | 2002::/64 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 2002::1 |
| host_routes | |
| id | 66e3e3c6-d561-494a-aec7-4fee272cf71d |
| ip_version | 6 |
| ipv6_address_mode | dhcpv6-stateful |
| ipv6_ra_mode | dhcpv6-stateful |
| name | |
| network_id | b3858d5e-4665-422a-8511-6dd79f54437f |
| tenant_id | b1be3cf4e956459cad6b3f6541bbbad8 |
+-------------------+----------------------------------------------------------+
$ neutron port-list | grep bd12d32c-66fc-4947-b266-c4d565454174 # Port ID
| bd12d32c-66fc-4947-b266-c4d565454174 | | fa:16:3e:a2:d8:14 |
The same thing also with :
1) --ipv6-ra-mode=dhcpv6-stateless --ipv6-address-mode=dhcpv6-stateless
2) --ipv6-address-mode=dhcpv6-stateful only
3) --ipv6-address-mode=dhcpv6-stateless only |
When we create port in network without subnets(*) and then create IPv4 subnet with DHCP enabled, the port gets IP automatically. Unlike so with IPv6 subnets. When we create subnet with DHCPv6 stateful the port doesn't get anything from DHCP server automatically, only after explicit port-update. It's inconsistence.
With IPv4:
$ neutron net-create netto
$ neutron port-create netto
$ neutron subnet-create --ip-version=4 netto "192.168.111.0/24"
$ neutron port-list | grep 9856ecc4-9fc0-495c-81d1-686502a3ec83 # Port ID
| cb1f0dad-d393-49fc-a3ed-098a7e1d3692 | | fa:16:3e:79:04:d6 | {"subnet_id": "9856ecc4-9fc0-495c-81d1-686502a3ec83", "ip_address": "192.168.111.2"} |
With IPv6:
$ neutron net-create netto6
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | b3858d5e-4665-422a-8511-6dd79f54437f |
| name | netto6 |
| provider:network_type | vxlan |
| provider:physical_network | |
| provider:segmentation_id | 1005 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | b1be3cf4e956459cad6b3f6541bbbad8 |
+---------------------------+--------------------------------------+
$ neutron port-create netto6
Created a new port:
+-----------------------+--------------------------------------+
| Field | Value |
+-----------------------+--------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| device_id | |
| device_owner | |
| fixed_ips | |
| id | bd12d32c-66fc-4947-b266-c4d565454174 |
| mac_address | fa:16:3e:a2:d8:14 |
| name | |
| network_id | b3858d5e-4665-422a-8511-6dd79f54437f |
| security_groups | b2fdab5e-1aa1-49bd-9717-72b41b8d109e |
| status | DOWN |
| tenant_id | b1be3cf4e956459cad6b3f6541bbbad8 |
+-----------------------+--------------------------------------+
$ neutron subnet-create --ipv6-ra-mode=dhcpv6-stateful --ipv6-address-mode=dhcpv6-stateful --ip-version=6 netto6 "2002::/64"
Created a new subnet:
+-------------------+----------------------------------------------------------+
| Field | Value |
+-------------------+----------------------------------------------------------+
| allocation_pools | {"start": "2002::2", "end": "2002::ffff:ffff:ffff:fffe"} |
| cidr | 2002::/64 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 2002::1 |
| host_routes | |
| id | 66e3e3c6-d561-494a-aec7-4fee272cf71d |
| ip_version | 6 |
| ipv6_address_mode | dhcpv6-stateful |
| ipv6_ra_mode | dhcpv6-stateful |
| name | |
| network_id | b3858d5e-4665-422a-8511-6dd79f54437f |
| tenant_id | b1be3cf4e956459cad6b3f6541bbbad8 |
+-------------------+----------------------------------------------------------+
$ neutron port-list | grep bd12d32c-66fc-4947-b266-c4d565454174 # Port ID
| bd12d32c-66fc-4947-b266-c4d565454174 | | fa:16:3e:a2:d8:14 |
The same thing also with :
1) --ipv6-ra-mode=dhcpv6-stateless --ipv6-address-mode=dhcpv6-stateless
2) --ipv6-address-mode=dhcpv6-stateful only
3) --ipv6-address-mode=dhcpv6-stateless only
-------
(*) why to do it? is it real user story? |
|
2014-09-05 03:17:10 |
Sridhar Gaddam |
bug |
|
|
added subscriber Sridhar Gaddam |
2014-09-07 05:18:48 |
Eugene Nikanorov |
tags |
ipv6 |
api ipv6 |
|
2014-09-07 05:19:47 |
Eugene Nikanorov |
neutron: importance |
Undecided |
Low |
|
2014-09-08 10:50:41 |
Phani Pawan |
bug |
|
|
added subscriber phanipawan |
2014-09-18 04:44:25 |
MANJUNATH PATIL |
neutron: assignee |
|
MANJUNATH PATIL (mpatil) |
|
2014-10-13 04:23:44 |
MANJUNATH PATIL |
neutron: assignee |
MANJUNATH PATIL (mpatil) |
|
|
2014-11-07 07:46:27 |
Aniruddha Singh Gautam |
neutron: assignee |
|
Aniruddha Singh Gautam (aniruddha-gautam) |
|
2016-06-16 20:07:41 |
Sean M. Collins |
neutron: status |
New |
Incomplete |
|
2016-06-16 20:07:48 |
Sean M. Collins |
neutron: assignee |
Aniruddha Singh Gautam (aniruddha-gautam) |
|
|
2016-08-16 04:17:44 |
Launchpad Janitor |
neutron: status |
Incomplete |
Expired |
|