When removing a router, its namespace is not cleaned from the system
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Invalid
|
Undecided
|
Santosh Kumar |
Bug Description
Version
=======
Hanavan on rhel
Description
===========
Scenario:
1. Create a router
2. Create a network
3. Create a subnet associated with the newly-created network
4. Attach the subnet interface to the router, a namespace for that router should be created (visible in the output of "ip netns" command)
5. Remove the interface from the router
6. Delete the router, this deletion opration should also clean the namespace that was created for the router, however this namespace is not deleted.
Note that the namespace contains the deleted router's id in its name.
$ neutron router-list
<empty output>
$ ip netns
qlbaas-
qrouter-
$ neutron router-create router2
Created a new router:
+------
| Field | Value |
+------
| admin_state_up | True |
| external_
| id | f4069e92-
| name | router2 |
| status | ACTIVE |
| tenant_id | c6218eb9b8c44c9
+------
$ neutron net-create test_name
Created a new network:
+------
| Field | Value |
+------
| admin_state_up | True |
| id | db11452e-
| name | test_name |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | c6218eb9b8c44c9
+------
$ neutron subnet-create db11452e-
Created a new subnet:
+------
| Field | Value |
+------
| allocation_pools | {"start": "172.16.0.2", "end": "172.16.0.254"} |
| cidr | 172.16.0.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 172.16.0.1 |
| host_routes | |
| id | 959cabf8-
| ip_version | 4 |
| name | |
| network_id | db11452e-
| tenant_id | c6218eb9b8c44c9
+------
$ neutron router-
Added interface b3b109c0-
$ ip netns
qlbaas-
qrouter-
qrouter-
$ neutron router-
Removed interface from router f4069e92-
$ neutron router-delete router2
Deleted router: router2
$ ip netns
qlbaas-
qrouter-
qrouter-
Changed in neutron: | |
assignee: | nobody → Santosh Kumar (santosh-kumar4) |
Changed in neutron: | |
status: | Confirmed → Incomplete |
That might be a known common issue: https:/ /bugs.launchpad .net/neutron/ +bug/1052535
Please attach the logs from l3 agent, there should be some additional information on this issue.