DHCPv6 stateful doesn't assign IP to ports created before it
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Expired
|
Low
|
Unassigned |
Bug 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-
| cb1f0dad-
With IPv6:
$ neutron net-create netto6
Created a new network:
+------
| Field | Value |
+------
| admin_state_up | True |
| id | b3858d5e-
| name | netto6 |
| provider:
| provider:
| provider:
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | b1be3cf4e956459
+------
$ neutron port-create netto6
Created a new port:
+------
| Field | Value |
+------
| admin_state_up | True |
| allowed_
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| device_id | |
| device_owner | |
| fixed_ips | |
| id | bd12d32c-
| mac_address | fa:16:3e:a2:d8:14 |
| name | |
| network_id | b3858d5e-
| security_groups | b2fdab5e-
| status | DOWN |
| tenant_id | b1be3cf4e956459
+------
$ neutron subnet-create --ipv6-
Created a new subnet:
+------
| Field | Value |
+------
| allocation_pools | {"start": "2002::2", "end": "2002::
| cidr | 2002::/64 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 2002::1 |
| host_routes | |
| id | 66e3e3c6-
| ip_version | 6 |
| ipv6_address_mode | dhcpv6-stateful |
| ipv6_ra_mode | dhcpv6-stateful |
| name | |
| network_id | b3858d5e-
| tenant_id | b1be3cf4e956459
+------
$ neutron port-list | grep bd12d32c-
| bd12d32c-
The same thing also with :
1) --ipv6-
2) --ipv6-
3) --ipv6-
-------
(*) why to do it? is it real user story?
description: | updated |
description: | updated |
tags: | added: api |
Changed in neutron: | |
importance: | Undecided → Low |
Changed in neutron: | |
assignee: | nobody → MANJUNATH PATIL (mpatil) |
Changed in neutron: | |
assignee: | MANJUNATH PATIL (mpatil) → nobody |
Changed in neutron: | |
assignee: | nobody → Aniruddha Singh Gautam (aniruddha-gautam) |
I followed the IPv4 instructions described in this problem but I cannot see the fixed_ip assigned:
# neutron net-create netto ------- ------- ------- +------ ------- ------- ------- ------- ----+ ------- ------- ------- +------ ------- ------- ------- ------- ----+ 8b69-486a- 8ec8-7559298440 ef | network_ type | local | physical_ network | | segmentation_ id | | 58c2997ac7720b4 b7 | ------- ------- ------- +------ ------- ------- ------- ------- ----+
Created a new network:
+------
| Field | Value |
+------
| admin_state_up | True |
| id | b8f3095c-
| name | netto |
| provider:
| provider:
| provider:
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 3a7fb324b205454
+------
# neutron port-create netto ------- ------- ---+--- ------- ------- ------- ------- ------- + ------- ------- ---+--- ------- ------- ------- ------- ------- + address_ pairs | | cdb8-4cd9- b553-92426c8fcb 6f | 8b69-486a- 8ec8-7559298440 ef | ed81-4d48- 9e63-6abf44ea19 76 | 58c2997ac7720b4 b7 | ------- ------- ---+--- ------- ------- ------- ------- ------- +
Created a new port:
+------
| Field | Value |
+------
| admin_state_up | True |
| allowed_
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| device_id | |
| device_owner | |
| fixed_ips | |
| id | 29c1f561-
| mac_address | fa:16:3e:63:a6:90 |
| name | |
| network_id | b8f3095c-
| security_groups | a0b40447-
| status | DOWN |
| tenant_id | 3a7fb324b205454
+------
# neutron subnet-create --ip-version=4 netto "192.168.111.0/24" ------- ------+ ------- ------- ------- ------- ------- ------- ------- -----+ ------- ------+ ------- ------- ------- ------- ------- ------- ------- -----+
Created a new subnet:
+------
| Field | Value |
+------
| allocation_pools | {"start": "192.168.111.2", "end": "192.168.111.254"} |
| cidr | 192.168.111.0/24 |
| dns_nameservers | |
| enable_dhcp | True ...