Bug 1310033 - The existing netnamespace id should be removed after switch network plugin to openshift-ovs-subnet
The existing netnamespace id should be removed after switch network plugin to...
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking (Show other bugs)
Unspecified Unspecified
medium Severity low
: ---
: ---
Assigned To: Eric Paris
Meng Bo
Depends On:
  Show dependency treegraph
Reported: 2016-02-19 04:44 EST by Meng Bo
Modified: 2016-04-12 15:13 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-04-12 15:13:24 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Meng Bo 2016-02-19 04:44:56 EST
Description of problem:
After switch network plugin from multitenant to flat, the existing netnamespace id still can be queried from api.

Version-Release number of selected component (if applicable):
openshift v3.1.1.903

How reproducible:

Steps to Reproduce:
1. Setup multi node env with ovs-multitenant networking plugin
2. Create some projects by user
3. Switch the network plugin to ovs-subnet
4. Check the netnamespace via cluster-admin
# oc get netnamespace

Actual results:
The old netnamespace still can be listed.

Expected results:
They should be deleted when switching to flat network.

Additional info:
# oc get netnamespace 
NAME               NETID
default            0
management-infra   12
openshift          10
openshift-infra    11
u1p1               13
Comment 1 Ben Bennett 2016-04-12 15:13:24 EDT
We don't want to teach core or other plugins about all of the cleanup that a plugin would need.  And if you flipped back and forth between the plugins you may not want the netns to be cleaned.

Note You need to log in before you can comment on or make changes to this bug.