← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1250366] Re: When removing a router, its namespace is not cleaned from the system

 

As per my discussion with marun@xxxxxxxxxx , marking this bug invalid.

** Changed in: neutron
       Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1250366

Title:
  When removing a router, its namespace is not cleaned from the system

Status in OpenStack Neutron (virtual network service):
  Invalid

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-ce1dfacd-77df-4f6a-819f-a56e17927546
  qrouter-3480f0cf-8f98-4f5c-a5fc-b422cec5a3c1

  $ neutron router-create router2
  Created a new router:
  +-----------------------+--------------------------------------+
  | Field                 | Value                                |
  +-----------------------+--------------------------------------+
  | admin_state_up        | True                                 |
  | external_gateway_info |                                      |
  | id                    | f4069e92-a595-4692-a7a8-9158df5715e7 |
  | name                  | router2                              |
  | status                | ACTIVE                               |
  | tenant_id             | c6218eb9b8c44c91861ea7998db55505     |
  +-----------------------+--------------------------------------+

  $ neutron net-create test_name
  Created a new network:
  +----------------+--------------------------------------+
  | Field          | Value                                |
  +----------------+--------------------------------------+
  | admin_state_up | True                                 |
  | id             | db11452e-2066-4657-915d-4eb6bbb3525a |
  | name           | test_name                            |
  | shared         | False                                |
  | status         | ACTIVE                               |
  | subnets        |                                      |
  | tenant_id      | c6218eb9b8c44c91861ea7998db55505     |
  +----------------+--------------------------------------+

  $ neutron subnet-create db11452e-2066-4657-915d-4eb6bbb3525a 172.16.0.0/24
  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-9a56-4333-b6fb-2ee384beff2c           |
  | ip_version       | 4                                              |
  | name             |                                                |
  | network_id       | db11452e-2066-4657-915d-4eb6bbb3525a           |
  | tenant_id        | c6218eb9b8c44c91861ea7998db55505               |
  +------------------+------------------------------------------------+

  $ neutron router-interface-add f4069e92-a595-4692-a7a8-9158df5715e7 959cabf8-9a56-4333-b6fb-2ee384beff2c
  Added interface b3b109c0-b56e-4fe3-bb51-c6c890f37175 to router f4069e92-a595-4692-a7a8-9158df5715e7.

  $ ip netns
  qlbaas-ce1dfacd-77df-4f6a-819f-a56e17927546
  qrouter-3480f0cf-8f98-4f5c-a5fc-b422cec5a3c1
  qrouter-f4069e92-a595-4692-a7a8-9158df5715e7


  
  $ neutron router-interface-delete f4069e92-a595-4692-a7a8-9158df5715e7 959cabf8-9a56-4333-b6fb-2ee384beff2c
  Removed interface from router f4069e92-a595-4692-a7a8-9158df5715e7.

  $ neutron router-delete router2
  Deleted router: router2

  $ ip netns
  qlbaas-ce1dfacd-77df-4f6a-819f-a56e17927546
  qrouter-3480f0cf-8f98-4f5c-a5fc-b422cec5a3c1
  qrouter-f4069e92-a595-4692-a7a8-9158df5715e7

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1250366/+subscriptions