Openshift: oc/kubectl get svc showing External IP in pending
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
Invalid
|
Critical
|
Sachchidanand Vaidya |
Bug Description
In Openshift cluster while creating Service Type loadbanacer it is not showing the IP in oc/kubectl output. In contrail FLoating IP is getting created properly and asscoited with Service VMI. But Openshift client is not showing the IP
[root@5b7s18 ~]# oc get svc --all-namespaces
NAMESPACE NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
ctest-namespace
ctest-namespace
default docker-registry 10.98.148.57 <none> 5000/TCP 6d
default kubernetes 10.96.0.1 <none> 443/TCP,
default registry-console 10.100.151.191 <none> 9000/TCP 6d
default router 10.101.6.87 <none> 80/TCP,
juniper frontend 10.111.127.190 <pending> 80:31063/TCP 2h
[root@5b7s18 ~]#
[root@5b7s18 ~]#
[root@5b7s18 ~]# kubectl describe service ctest-nginx-
Name: ctest-nginx-
Namespace: ctest-namespace
Labels: <none>
Annotations: <none>
Selector: app=http_test
Type: LoadBalancer
IP: 10.100.49.246
Port: <unset> 80/TCP
NodePort: <unset> 32385/TCP
Endpoints: <none>
Session Affinity: None
Events: <none>
Service Type is not Loadbalancer it is working fine
[root@5b7s18 ~]# oc get svc --all-namespaces
NAMESPACE NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
ctest-namespace
ctest-namespace
default docker-registry 10.98.148.57 <none> 5000/TCP 6d
default kubernetes 10.96.0.1 <none> 443/TCP,
default registry-console 10.100.151.191 <none> 9000/TCP 6d
default router 10.101.6.87 <none> 80/TCP,
juniper frontend 10.111.127.190 <pending> 80:31063/TCP 2h
[root@5b7s18 ~]# kubectl describe service ctest-nginx-
Name: ctest-nginx-
Namespace: ctest-namespace
Labels: <none>
Annotations: <none>
Selector: app=http_test
Type: ClusterIP
IP: 10.105.68.163
External IPs: 10.87.117.252
Port: <unset> 80/TCP
Endpoints: 10.47.255.
Session Affinity: None
Events: <none>
[root@5b7s18 ~]#
Changed in juniperopenstack: | |
importance: | Undecided → Critical |
assignee: | nobody → Sachchidanand Vaidya (vaidyasd) |
milestone: | none → r4.0.1.0 |
tags: | added: contrail-kube-manager openshift |
information type: | Proprietary → Public |
description: | updated |
contrail- kube-manager was not having required access to post on Openshift API server. Following has solved the problem.
[root@5b7s18 ~]# /5b7s18. englab. juniper. net:8443". role-to- user cluster-admin system: serviceaccount: juniper: useroot serviceaccount: juniper: useroot" serviceaccount: juniper: useroot 1NiIsInR5cCI6Ik pXVCJ9. eyJpc3MiOiJrdWJ lcm5ldGVzL3Nlcn ZpY2VhY2NvdW50I iwia3ViZXJuZXRl cy5pby9zZXJ2aWN lYWNjb3VudC9uYW 1lc3BhY2UiOiJqd W5pcGVyIiwia3Vi ZXJuZXRlcy5pby9 zZXJ2aWNlYWNjb3 VudC9zZWNyZXQub mFtZSI6InVzZXJv b3QtdG9rZW4tNjd jaDciLCJrdWJlcm 5ldGVzLmlvL3Nlc nZpY2VhY2NvdW50 L3NlcnZpY2UtYWN jb3VudC5uYW1lIj oidXNlcm9vdCIsI mt1YmVybmV0ZXMu aW8vc2VydmljZWF jY291bnQvc2Vydm ljZS1hY2NvdW50L nVpZCI6IjczZmE0 NWZlLTg4MDQtMTF lNy1iMWE0LTBjYz Q3YWE4OWU2NCIsI nN1YiI6InN5c3Rl bTpzZXJ2aWNlYWN jb3VudDpqdW5pcG VyOnVzZXJvb3Qif Q.OSX5C2Ms0- lCF4FEhirQCq5UY BGqNubomTXY5Oc6 bIgNhLt- X7bwgg8GCay5kj2 nhfY3EqpdQ4reZr 42MaCFc8sZtCZ2E EDe0fzzhiUTCmxT STXrt9Dbm4kQkHQ lMUk47RL1LYR5yM n9KA0MyzXsXOxpN Lm1aZ4QuCjRxz_ h438bxqMR9OYrUp 18qAZ-kWtefJIPy 17-XK2Tr0xyuX2o KI-9IgVMqDTtnIB sBNc82NalkRGyb8 V-R6-wgrXkeMwlf O5pU2uzZpW4wVTs XeK9ctBC0E4C- z0soYQ- q-JPa5FrletQ_ NxCAB8OIv5ndy5K PiI5cgd39HDCpe7 EIPAOnw
[root@5b7s18 ~]#
[root@5b7s18 ~]# oc project juniper
Already on project "juniper" on server "https:/
[root@5b7s18 ~]# oc create serviceaccount useroot
Error from server (AlreadyExists): serviceaccounts "useroot" already exists
[root@5b7s18 ~]# oadm policy add-cluster-
cluster role "cluster-admin" added: "system:
[root@5b7s18 ~]# oadm policy add-scc-to-user privileged system:
[root@5b7s18 ~]# oc serviceaccounts get-token useroot
eyJhbGciOiJSUzI