Couldn`t get keystone authorized after rebooting

asked 2019-02-06 22:50:51 -0500

Mr.chun gravatar image

Hi guys.

I manage to resolve openstack-helm issue.

After i deployed openstack using the project openstack-helm on my desktop machine.

It worked well before i rebooted my machine.

But after reboot, i can`t get authorized from keystone.

When i try access openstack system over python openstack CLI , it always fail to establish a new connection.

I checked my config such as /etc/nsswitch and /etc/host. But i can`t figure out what is a problem.

If someone knows a solution, plz let me know.

Thank you.

Below is logs.

    stack@stack:~$ openstack stack list
Failed to discover available identity versions when contacting http://keystone.openstack.svc.cluster.local/v3. Attempting to parse version from URL.
Unable to establish connection to http://keystone.openstack.svc.cluster.local/v3/auth/tokens: HTTPConnectionPool(host='keystone.openstack.svc.cluster.local', port=80): Max retries exceeded with url: /v3/auth/tokens (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2edcc166d0>: Failed to establish a new connection: [Errno -2] Name or service not known',))


stack@stack:~$ kubectl get svc --namespace=kube-system
NAME                  TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)                    AGE
etcd                  ClusterIP   10.96.232.136   <none>        6666/TCP                   9d
ingress               ClusterIP   10.96.28.127    <none>        80/TCP,443/TCP,18080/TCP   9d
ingress-error-pages   ClusterIP   None            <none>        80/TCP                     9d
ingress-exporter      ClusterIP   10.102.46.75    <none>        10254/TCP                  9d
kube-dns              ClusterIP   10.96.0.10      <none>        53/UDP,53/TCP              9d
tiller-deploy         ClusterIP   10.102.187.1    <none>        44134/TCP,44135/TCP        9d

stack@stack:~$ kubectl get svc -n openstack
...
keystone                      ClusterIP   10.99.64.151     <none>        80/TCP,443/TCP                 9d
...

stack@stack:~$ nslookup
 keystone.openstack.svc.cluster.local
Server:     10.96.0.10
Address:    10.96.0.10#53

Name:   keystone.openstack.svc.cluster.local
Address: 10.99.64.151
edit retag flag offensive close merge delete