Bug 1310033 - The existing netnamespace id should be removed after switch network plugin to openshift-ovs-subnet
Summary: The existing netnamespace id should be removed after switch network plugin to...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Eric Paris
QA Contact: Meng Bo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-19 09:44 UTC by Meng Bo
Modified: 2016-04-12 19:13 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-12 19:13:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Meng Bo 2016-02-19 09:44:56 UTC
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:
always

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 19:13:24 UTC
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.