This might be related to http_proxy http_proxy being set in the environment. I have faced this a couple of times because of the http_proxy http_proxy being set, after removing http_proxy http_proxy from the environment system starts working fine. This happens for an environment where the you have a local network behind proxy and all the request to keystone for validation is sent to the proxy instead which fails, you may also want to add no proxy for localhost.