K8S: Service with external_ips: FIP got created with different IP
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
Fix Committed
|
High
|
chhandak |
Bug Description
Description:
Created a service with type Loadbalacer and mentioned list of 2 values as external_IP. In Kubernets API, service got created with mentioned externalIPs. But contrail has created floating IP for the service with different IP than what is mentioned in externalIPs. So Kube API Server and Contrail API server is not in sync.
As per Kube API : Loadbalacer IP is 10.87.117.25 and 10.87.117.250
[root@5b7s18 ~]# kubectl get service
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
ctest-nginx-
kubernetes 10.96.0.1 <none> 443/TCP 25m
[root@5b7s18 ~]# kubectl describe service
Name: ctest-nginx-
Namespace: default
Labels: <none>
Annotations: <none>
Selector: app=http_test
Type: LoadBalancer
IP: 10.111.91.102
External IPs: 10.87.117.
Port: <unset> 80/TCP
NodePort: <unset> 32197/TCP
Endpoints: 10.47.255.
Session Affinity: None
Events: <none>
As per contrail API Server
{
parent_uuid: "be8b81a9-
parent_href: "http://
parent_type: "floating-ip-pool",
href: "http://
floating_
id_perms: {
enable: true,
uuid: {
uuid_mslong: 762834542010756
uuid_lslong: 104572298338729
},
created: "2017-04-
description: null,
creator: null,
user_visible: true,
last_modified: "2017-04-
permissions: {
owner: "cloud-admin",
owner_access: 7,
other_access: 7,
group: "cloud-
group_access: 7
}
},
fq_name: [
"default-domain",
"default",
"__public__",
"__fip_
"ctest-
],
name: "ctest-
project_refs: [
{
to: [
"default-domain",
"default"
],
href: "http://
attr: null,
uuid: "8a529f8f-
}
],
display_name: "ctest-
uuid: "69dd53be-
floating_
port_mappings: [
{
protocol: "TCP",
src_port: 80,
dst_port: 80
}
]
},
Logs from contrail-
04/21/2017 10:07:25 PM [contrail-
04/21/2017 10:07:25 PM [contrail-
04/21/2017 10:07:25 PM [contrail-
04/21/2017 10:07:25 PM [contrail-
04/21/2017 10:07:25 PM [contrail-
04/21/2017 10:07:25 PM [contrail-
04/21/2017 10:07:25 PM [contrail-
04/21/2017 10:07:25 PM [contrail-
04/21/2017 10:07:25 PM [contrail-
04/21/2017 10:07:25 PM [contrail-
04/21/2017 10:07:25 PM [contrail-
04/21/2017 10:07:25 PM [contrail-
04/21/2017 10:07:25 PM [contrail-
04/21/2017 10:07:25 PM [contrail-
04/21/2017 10:07:25 PM [contrail-
04/21/2017 10:07:25 PM [contrail-
04/21/2017 10:07:25 PM [contrail-
04/21/2017 10:07:28 PM [contrail-
04/21/2017 10:07:28 PM [contrail-
04/21/2017 10:07:28 PM [contrail-
04/21/2017 10:07:28 PM [contrail-
Changed in juniperopenstack: | |
milestone: | none → r4.0 |
importance: | Undecided → High |
assignee: | nobody → Sachchidanand Vaidya (vaidyasd) |
description: | updated |
description: | updated |
information type: | Proprietary → Public |
Chhandak, can you also attach the json/yaml service definition file used
for service creation.
Thanks,
Sachin
On 4/21/17, 2:55 PM, "<email address hidden> on behalf of Launchpad Bug
Tracker" <<email address hidden> on behalf of <email address hidden>>
wrote:
>chhandak (chhandak) has assigned this bug to you for Juniper Openstack: nginx-svc- 86590169 10.111.91.102 ,10.87. 117.251, 10.87.117. 250 svc-86590169 251,10. 87.117. 250 250:80, 10.47.255. 251:80 2a9c-4eb9- aec1-29d0e3e923 ed", 10.87.121. 34:8082/ floating- ip-pool/ be8b81a9- 2a9c-4eb9- aec1-29d0e3e 10.87.121. 34:8082/ floating- ip/69dd53be- 2d7d-4614- 911f-8b210e9d70 9d ip_address: "10.87. 117.252" ,------ ------> Diffrent value 5000, 62000 21T21:32: 51.604230" , 21T21:32: 57.981799" , admin-group" , pool_public_ _", nginx-svc- 86590169_ _1272c50b- 26da-11e7- 84a5-0cc47aa89e 64-externalIP nginx-svc- 86590169_ _1272c50b- 26da-11e7- 84a5-0cc47aa89e 64-externalIP 10.87.121. 34:8082/ project/ 8a529f8f- c6ce-4592- a60d-d66125ccfa 63", c6ce-4592- a60d-d66125ccfa 63" nginx-svc- 86590169_ _1272c50b- 26da-11e7- 84a5-0cc47aa89e 64-externalIP 2d7d-4614- 911f-8b210e9d70 9d", ip_port_ mappings: {
>
>Description:
>Created a service with type Loadbalacer and mentioned list of 2 values as
>external_IP. In Kubernets API service got created with mentioned
>externalIP. But contrail has created floating IP for the service with
>diffrent IP than what is mentioned in externalIP. So Kube API Server and
>Contrail API server is not in sync.
>
>
>As per Kube API : Loadbalacer IP is 10.87.117.25 and 10.87.117.250
>[root@5b7s18 ~]# kubectl get service
>NAME CLUSTER-IP EXTERNAL-IP
>PORT(S) AGE
>ctest-
>80:32197/TCP 36s
>kubernetes 10.96.0.1 <none>
>443/TCP 25m
>[root@5b7s18 ~]# kubectl describe service
>Name: ctest-nginx-
>Namespace: default
>Labels: <none>
>Annotations: <none>
>Selector: app=http_test
>Type: LoadBalancer
>IP: 10.111.91.102
>External IPs: 10.87.117.
>Port: <unset> 80/TCP
>NodePort: <unset> 32197/TCP
>Endpoints: 10.47.255.
>Session Affinity: None
>Events: <none>
>
>As per contrail API Server
>{
>parent_uuid: "be8b81a9-
>parent_href:
>"http://
>923ed",
>parent_type: "floating-ip-pool",
>href:
>"http://
>",
>floating_
>id_perms: {
>enable: true,
>uuid: {
>uuid_mslong: 762834542010756
>uuid_lslong: 104572298338729
>},
>created: "2017-04-
>description: null,
>creator: null,
>user_visible: true,
>last_modified: "2017-04-
>permissions: {
>owner: "cloud-admin",
>owner_access: 7,
>other_access: 7,
>group: "cloud-
>group_access: 7
>}
>},
>fq_name: [
>"default-domain",
>"default",
>"__public__",
>"__fip_
>"ctest-
>"
>],
>name:
>"ctest-
>",
>project_refs: [
>{
>to: [
>"default-domain",
>"default"
>],
>href:
>"http://
>attr: null,
>uuid: "8a529f8f-
>}
>],
>display_name:
>"ctest-
>",
>uuid: "69dd53be-
>floating_
>port_mappings: [
>{
>protocol: "TCP",
>src_port: 80,
>dst_port: 80
>}
>]
>},
>
>** Affects: juniperopenstack
> Importance: High
> Assignee: Sachchidanand Vaidya (vaidyasd)
> Status: New
>
>
>** Tags...