Deleting network does not remove network namespace
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Committed
|
Medium
|
Brian Haley |
Bug Description
Environment: ML2/OVS
DevStack Version: 2023.2
Change: b10c06027273d12
OS Version: Ubuntu 22.04 jammy
While testing a fix for a bug on a recent devstack, I noticed that network namespaces were not getting deleted when I deleted a network with a subnet attached to it.
$ openstack network list
+------
| ID | Name | Subnets |
+------
| 32171620-
| 6cc3ff11-
| b2fbc798-
| cc47f423-
+------
$ ip netns | grep cc47f423-
qdhcp-cc47f423-
$ openstack network delete cc47f423-
$ openstack network list
+------
| ID | Name | Subnets |
+------
| 32171620-
| 6cc3ff11-
| b2fbc798-
+------
$ ip netns | grep cc47f423-
qdhcp-cc47f423-
I almost would have expected an error since there was a subnet here, will have to re-check the API ref to see.
During one attempt I actually triggered a SubnetNotFound error, but that's probably a different issue as it wasn't necessary to recreate this.
tags: | added: zed-backport-potential |
tags: | removed: zed-backport-potential |
tags: | added: 2023.1-backport-potential |
Changed in neutron: | |
status: | In Progress → Fix Committed |
Fix proposed to branch: master /review. opendev. org/c/openstack /neutron/ +/880006
Review: https:/