Bug 1388800

Summary: [networking_public_155] The hostsubnet for F5 cannot be created after changing the clusternetwork CIDR
Product: OpenShift Container Platform Reporter: Hongan Li <hongli>
Component: NetworkingAssignee: Rajat Chopra <rchopra>
Networking sub component: router QA Contact: zhaozhanqi <zzhao>
Status: CLOSED WORKSFORME Docs Contact:
Severity: medium    
Priority: unspecified CC: aos-bugs, bbennett, hongli, rchopra
Version: 3.4.0   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-01 12:58:19 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:

Description Hongan Li 2016-10-26 08:25:16 UTC
Description of problem:

After changing master-config.yaml to enlarge the clusternetwork CIDR, admin cannot create the hostsubnet for f5.


Version-Release number of selected component (if applicable):
openshift v3.4.0.15+9c963ec
kubernetes v1.4.0+776c994
etcd 3.1.0-alpha.1


How reproducible:
Always

Steps to Reproduce:
1. make sure the hostsubnet for f5 can be created with default setting, then delete it.

2. vi /etc/origin/master/master-config.yaml and change the clusternetwork CIDR to:
     clusterNetworkCIDR: 10.0.0.0/14   ## default is 10.1.0.0/16

3. restart master and check the clusternetwork
   [root@ip-172-18-12-194 ~]# oc get clusternetwork 
NAME      NETWORK       HOST SUBNET LENGTH   SERVICE NETWORK   PLUGIN NAME
default   10.0.0.0/14   8                    172.30.0.0/16     redhat/openshift-ovs-multitenant
[root@ip-172-18-12-194 ~]#
 
4. Create the hostsubnet again.
   oc create -f f5host.yaml (see additiontal info for file content)


Actual results:
It shows hostsubnet "f5-server" created but cannot find it when getting the resource.

[root@ip-172-18-12-194 ~]# oc create -f f5host.yaml 
hostsubnet "f5-server" created
[root@ip-172-18-12-194 ~]# 
[root@ip-172-18-12-194 ~]# oc get hostsubnet 
NAME                            HOST                            HOST IP         SUBNET
ip-172-18-12-194.ec2.internal   ip-172-18-12-194.ec2.internal   172.18.12.194   10.1.2.0/24
ip-172-18-9-101.ec2.internal    ip-172-18-9-101.ec2.internal    172.18.9.101    10.0.0.0/24
ip-172-18-9-102.ec2.internal    ip-172-18-9-102.ec2.internal    172.18.9.102    10.1.0.0/24
[root@ip-172-18-12-194 ~]# 
[root@ip-172-18-12-194 ~]# 


Expected results:
The hostsubnet for f5 can be created after changing the clusternetwork CIDR.


Additional info:
<f5host.yaml>
apiVersion: v1
host: f5-server
hostIP: 10.3.89.213
kind: HostSubnet
metadata:
  annotations:
    pod.network.openshift.io/assign-subnet: "true"
  name: f5-server

Comment 1 Ben Bennett 2016-10-28 15:01:07 UTC
If this needs manual steps, there's a docs PR on how to resize things open:
  https://github.com/openshift/openshift-docs/pull/3112

Comment 2 Rajat Chopra 2016-10-31 22:10:06 UTC
Could not reproduce the problem. The hostsubnet gets created just fine and can be viewed too.
Do you have any logs from the master when this is observed?

Comment 3 Hongan Li 2016-11-01 05:16:39 UTC
not sure the root cause, but tried the same steps also cannot reproduce it in OCP 3.4.0.18.

Comment 4 Ben Bennett 2016-11-01 12:58:19 UTC
There have been a bunch of fixes to networking recently, so I'm going to mark this as unreproducible.  Please re-open if you see it again.