When you enter an endpoint that isn't running keystone, just sits there

Bug #958740 reported by Anne Gentle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Expired
Low
Unassigned

Bug Description

Did a fairly simple "woops" while walking through install docs, where I put in the wrong IP address for the endpoint. It just sat there for a while until I cancelled the request. I think a more graceful error message "No Keystone server running at <IP address>" would help.

nova@ubuntu:~$ keystone --token 012345SECRET99TOKEN012345 --endpoint http://192.168.206.130:35357/v2.0 tenant-create --name openstackDemo --description "Default Tenant" --enabled true
^X
^CTraceback (most recent call last):
  File "/usr/bin/keystone", line 9, in <module>
    load_entry_point('python-keystoneclient==2012.1', 'console_scripts', 'keystone')()
  File "/usr/lib/python2.7/dist-packages/keystoneclient/shell.py", line 255, in main
    OpenStackIdentityShell().main(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/keystoneclient/shell.py", line 215, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/shell.py", line 114, in do_tenant_create
    enabled=args.enabled)
  File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/tenants.py", line 72, in create
    return self._create('/tenants', params, "tenant")
  File "/usr/lib/python2.7/dist-packages/keystoneclient/base.py", line 82, in _create
    resp, body = self.api.post(url, body=body)
  File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line 169, in post
    return self._cs_request(url, 'POST', **kwargs)
  File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line 150, in _cs_request
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line 115, in request
    **request_kwargs)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1444, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1196, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1170, in _conn_request
    conn.connect()
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 788, in connect
    self.sock.connect(sa)
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)

Revision history for this message
yong sheng gong (gongysh) wrote :

This is my running result with a fake host "test". It seems in the end it will exit as you wish.
[root@robinlinux keystone3]# keystone --token ADMIN --endpoint http://test:35357/v2.0 tenant-create --name testtenat
No handlers could be found for logger "keystoneclient.client"
Unable to communicate with identity service: [Errno 110] Connection timed out. (HTTP 400)

Revision history for this message
Joseph Heck (heckj) wrote :

Anne,

It will eventually time out. Do you think the default CLI timeout should be shorter?

Changed in keystone:
status: New → Incomplete
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Keystone because there has been no activity for 60 days.]

Changed in keystone:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.