Bug 1310033

Summary: The existing netnamespace id should be removed after switch network plugin to openshift-ovs-subnet
Product: OpenShift Container Platform Reporter: Meng Bo <bmeng>
Component: NetworkingAssignee: Eric Paris <eparis>
Status: CLOSED WONTFIX QA Contact: Meng Bo <bmeng>
Severity: low Docs Contact:
Priority: medium    
Version: 3.2.0CC: aos-bugs, bbennett
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-12 19:13:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.