The netns db seems to require that all resources allocated in the namespace be cleared before deleting the namespace.
Currently , the code in quantum has a problem in that when a network delete is issued it does not ensure a recursive release of subnet resources- it just cleans the subnet quantum db entries
I have attached a patch with this which solves the cleanup issue with dhcp namespace.
The following works with the patch.
1. create a network
2. create a subnet
3. delete the network
4. quantum-netns-cleanup
5. check the dhcp-xxx namespace is deleted
I am expecting that trying the same patch with a router namespace also will work.
The netns db seems to require that all resources allocated in the namespace be cleared before deleting the namespace.
Currently , the code in quantum has a problem in that when a network delete is issued it does not ensure a recursive release of subnet resources- it just cleans the subnet quantum db entries
I have attached a patch with this which solves the cleanup issue with dhcp namespace. netns-cleanup
The following works with the patch.
1. create a network
2. create a subnet
3. delete the network
4. quantum-
5. check the dhcp-xxx namespace is deleted
I am expecting that trying the same patch with a router namespace also will work.