Some ports assigned to routers don't have the correspondent routerport register
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Rodolfo Alonso |
Bug Description
When running a few subnet detaching from router and deletion, some subnets are not possible to be deleted with this error:
$ openstack subnet delete e81929f6-
Failed to delete subnet with name or ID 'e81929f6-
1 of 1 subnets failed to delete.
After checking the ports in that subnet, only the router_interface port is left behing (but in DOWN status):
$ openstack subnet show e81929f6-
+------
| Field | Value |
+------
| allocation_pools | 10.128.
| cidr | 10.128.8.0/24 |
| created_at | 2019-08-
| description | |
| dns_nameservers | |
| enable_dhcp | False |
| gateway_ip | 10.128.8.1 |
| host_routes | |
| id | e81929f6-
| ip_version | 4 |
| ipv6_address_mode | None |
| ipv6_ra_mode | None |
| name | ns/openshift-
| network_id | af217883-
| project_id | dcb34bf98dea469
| revision_number | 1 |
| segment_id | None |
| service_types | |
| subnetpool_id | c87c9254-
| tags | openshiftCluste
| updated_at | 2019-08-
+------
$ openstack port list | grep 10.128.8
| 15c52021-
Trying to detach that subnet from router does not return any error, but if run with '-vvv' the next appears:
$ openstack -vvv router remove subnet 33114251-
RESP BODY: {"NeutronError": {"message": "Router 33114251-
And checking the database it is true that it is NOT there:
MariaDB [ovs_neutron]> select * from routerports;
+------
| router_id | port_id | port_type |
+------
| 33114251-
| 33114251-
+------
However, by checking the router we get it is there:
$ openstack router show 33114251-
[
{
"port_id": "15c52021-
"ip_address": "10.128.8.1",
"subnet_id": "e81929f6-
},
{
Changed in neutron: | |
assignee: | nobody → Rodolfo Alonso (rodolfo-alonso-hernandez) |
Changed in neutron: | |
status: | New → In Progress |
tags: | added: neutron-proactive-backport-potential |
Patch submitted: https:/ /review. opendev. org/#/c/ 680413/