Bug 1374838

Summary: Duplicate IP address shown for EXTERNAL-IP when configure ingressIPNetworkCIDR
Product: OpenShift Container Platform Reporter: Weibin Liang <weliang>
Component: NetworkingAssignee: Ivan Chavero <ichavero>
Networking sub component: router QA Contact: zhaozhanqi <zzhao>
Status: CLOSED WONTFIX Docs Contact:
Severity: low    
Priority: unspecified CC: aos-bugs, bbennett, dmace, weliang
Version: 3.3.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: 2018-09-12 21:07:10 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 Weibin Liang 2016-09-09 18:52:16 UTC
Description of problem:
Duplicate IP address shown for  EXTERNAL-IP when configure ingressIPNetworkCIDR

Version-Release number of selected component (if applicable):
oc v3.3.0.22
kubernetes v1.3.0+507d3a7
features: Basic-Auth GSSAPI Kerberos SPNEGO
Server https://dhcp-41-6.bos.redhat.com:8443
openshift v3.3.0.22
kubernetes v1.3.0+507d3a7

How reproducible:
Easy to reproduce, see below steps

Steps to Reproduce:
[root@dhcp-41-6 ~]# oc create -f https://raw.githubusercontent.com/weliang1/Openshift_Networking/master/OSE3.3/ingressIPNetworkCIDR.json

[root@dhcp-41-6 ~]# oc get nodes
NAME                         STATUS                     AGE
dhcp-41-133.bos.redhat.com   Ready                      16d
dhcp-41-197.bos.redhat.com   Ready                      16d
dhcp-41-40.bos.redhat.com    Ready                      16d
dhcp-41-6.bos.redhat.com     Ready,SchedulingDisabled   16d
dhcp-41-62.bos.redhat.com    Ready                      16d
[root@dhcp-41-6 ~]# 
[root@dhcp-41-6 ~]# oc get svc
NAME             CLUSTER-IP       EXTERNAL-IP                     PORT(S)                 AGE
hello-service1   172.30.221.179   172.31.160.147,172.31.160.147   8080/TCP                23s
kubernetes       172.30.0.1       <none>                          443/TCP,53/UDP,53/TCP   34s
[root@dhcp-41-6 ~]# oc describe svc hello-service1
Name:			hello-service1
Namespace:		default
Labels:			<none>
Selector:		name=hello-openshift
Type:			LoadBalancer
IP:			172.30.221.179
LoadBalancer Ingress:	172.31.160.147
Port:			<unset>	8080/TCP
NodePort:		<unset>	30670/TCP
Endpoints:		10.1.0.2:8080,10.1.2.2:8080
Session Affinity:	None
No events.

Actual results:
NAME             CLUSTER-IP       EXTERNAL-IP                     PORT(S)                 AGE
hello-service1   172.30.221.179   172.31.160.147,172.31.160.147   8080/TCP                23s


Expected results:
NAME             CLUSTER-IP       EXTERNAL-IP                     PORT(S)                 AGE
hello-service1   172.30.221.179   172.31.160.147                  8080/TCP                23s


Additional info:

Comment 1 Ivan Chavero 2017-11-14 03:20:25 UTC
Can't access the URL: https://raw.githubusercontent.com/weliang1/Openshift_Networking/master/OSE3.3/ingressIPNetworkCIDR.json

Can you send a new one please?

Comment 2 Weibin Liang 2017-11-14 20:05:05 UTC
@ivan, here is the steps to reproduce the issue in latest 3.7.7 code:

1.Edit/etc/origin/master/master-config.yaml to add  ingress ip range from ingressIPNetworkCIDR: 172.31.0.0/16

2.systemctl restart atomic-openshift-master-controllers.service 

3.systemctl restart atomic-openshift-master-api.service 

4. [root@ip-172-18-1-42 ~]#oc create -f https://raw.githubusercontent.com/weliang1/Openshift_Networking/master/OSE3.3/ipfailover-IngressStaticIP.json

5.[root@ip-172-18-1-42 ~]# oc get svc
NAME             CLUSTER-IP      EXTERNAL-IP             PORT(S)           AGE
hello-service1   172.30.76.220   172.31.0.1,172.31.0.1   27018:31429/TCP   8s
[root@ip-172-18-1-42 ~]# 

You will see two 172.31.0.1 under EXTERNAL-IP

Comment 3 Ivan Chavero 2017-11-23 00:13:28 UTC
Added PR to kubernetes: https://github.com/kubernetes/kubernetes/pull/56251

Comment 4 Dan Mace 2018-09-12 21:07:10 UTC
Closing due to age; please re-open if we're actually going to fix this.