SLAAC/DHCPv6-stateless subnets can be deleted with router ports still in-use
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Andrew Boik |
Bug Description
SLAAC and DHCPv6-stateless subnets can be deleted using the subnet-delete command even when they still have associated internal router ports. This causes the subnet to be deleted from the Neutron database, yet in reality the subnet still exists with radvd continuing to advertise the prefix to clients on the network. Calling subnet-delete on a subnet that still has internal router ports should result in an error.
=======
=======
Steps to reproduce:
=======
=======
=======
1. Create a slaac or dhcpv6-stateless subnet
=======
dboik@dboik-
Created a new subnet:
+------
| Field | Value |
+------
| allocation_pools | {"start": "cafe::2", "end": "cafe::
| cidr | cafe::/64 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | cafe::1 |
| host_routes | |
| id | f878a81c-
| ip_version | 6 |
| ipv6_address_mode | slaac |
| ipv6_ra_mode | slaac |
| name | subv6 |
| network_id | 77b850fd-
| tenant_id | dc748d64a2fc4ec
+------
=======
2. Create a router interface using this subnet
=======
dboik@dboik-
Added interface e86154dd-
dboik@dboik-
+------
| id | name | mac_address | fixed_ips |
+------
| 31640bf5-
| e86154dd-
+------
=================
3. Delete the subnet
=================
dboik@dboik-
Deleted subnet: subv6
dboik@dboik-
+------
| id | name | mac_address | fixed_ips |
+------
| 31640bf5-
| e86154dd-
+------
Subnet is deleted from the router port in Neutron. Subnet still exists in the router namespace:
dboik@dboik-
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
qg-31640bf5-55 Link encap:Ethernet HWaddr fa:16:3e:96:41:b7
inet6 addr: fe80::f816:
inet6 addr: 2001:420:
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:1134 (1.1 KB)
qr-e86154dd-fe Link encap:Ethernet HWaddr fa:16:3e:c3:5a:3e
inet6 addr: fe80::f816:
inet6 addr: cafe::1/64 Scope:Global
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:46 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:5060 (5.0 KB) TX bytes:1294 (1.2 KB)
RADVD continues to advertise this prefix.
Changed in neutron: | |
assignee: | nobody → Andrew Boik (drewboik) |
description: | updated |
Changed in neutron: | |
status: | New → In Progress |
Changed in neutron: | |
milestone: | none → kilo-3 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | kilo-3 → 2015.1.0 |
Review: https:/ /review. openstack. org/158508