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   <none>        6666/TCP                   9d
ingress               ClusterIP    <none>        80/TCP,443/TCP,18080/TCP   9d
ingress-error-pages   ClusterIP   None            <none>        80/TCP                     9d
ingress-exporter      ClusterIP    <none>        10254/TCP                  9d
kube-dns              ClusterIP      <none>        53/UDP,53/TCP              9d
tiller-deploy         ClusterIP    <none>        44134/TCP,44135/TCP        9d

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

stack@stack:~$ nslookup

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