← Back to team overview

openstack team mailing list archive

Re: keystoneclient cannot work .

 

The port specified in the SERVICE_ENDPOINT may not be correct. The
default admin port is
35357.
Please try with:
$ export SERVICE_ENDPOINT=http://192.168.1.211:35357/v2.0
$ keystone user-list

Its working for me. I am using the latest trunk code.

Cheers,
Deepak

2012/3/6 DeadSun <mwjpiero@xxxxxxxxx>:
> Hi, all
>
>   I have installed nova, glance , keystone and dashboard well.
>   Then I use keystone command to do something.
>
> # export SERVICE_ENDPOINT=http://192.168.1.211:5000/v2.0/
> # export SERVICE_TOKEN=9876543210
>
> stack@vm-openstack-1:~$ keystone user-list
> 2012-03-06 17:35:23 DEBUG [root] ******************** REQUEST ENVIRON
> ********************
> 2012-03-06 17:35:23 DEBUG [root] SCRIPT_NAME = /v2.0
> 2012-03-06 17:35:23 DEBUG [root] webob.adhoc_attrs = {'response': <Response
> at 0x3b45e10 200 OK>}
> 2012-03-06 17:35:23 DEBUG [root] REQUEST_METHOD = GET
> 2012-03-06 17:35:23 DEBUG [root] PATH_INFO = /users
> 2012-03-06 17:35:23 DEBUG [root] SERVER_PROTOCOL = HTTP/1.0
> 2012-03-06 17:35:23 DEBUG [root] QUERY_STRING = fresh=1331026523.16
> 2012-03-06 17:35:23 DEBUG [root] HTTP_X_AUTH_TOKEN = 9876543210
> 2012-03-06 17:35:23 DEBUG [root] HTTP_USER_AGENT = python-keystoneclient
> 2012-03-06 17:35:23 DEBUG [root] eventlet.posthooks = []
> 2012-03-06 17:35:23 DEBUG [root] SERVER_NAME = 192.168.1.211
> 2012-03-06 17:35:23 DEBUG [root] REMOTE_ADDR = 192.168.1.211
> 2012-03-06 17:35:23 DEBUG [root] eventlet.input = <eventlet.wsgi.Input
> object at 0x367d690>
> 2012-03-06 17:35:23 DEBUG [root] wsgi.url_scheme = http
> 2012-03-06 17:35:23 DEBUG [root] SERVER_PORT = 5000
> 2012-03-06 17:35:23 DEBUG [root] wsgi.input = <eventlet.wsgi.Input object at
> 0x367d690>
> 2012-03-06 17:35:23 DEBUG [root] HTTP_HOST = 192.168.1.211:5000
> 2012-03-06 17:35:23 DEBUG [root] wsgi.multithread = True
> 2012-03-06 17:35:23 DEBUG [root] wsgi.version = (1, 0)
> 2012-03-06 17:35:23 DEBUG [root] openstack.context = {'token_id':
> '9876543210', 'is_admin': True}
> 2012-03-06 17:35:23 DEBUG [root] GATEWAY_INTERFACE = CGI/1.1
> 2012-03-06 17:35:23 DEBUG [root] wsgi.run_once = False
> 2012-03-06 17:35:23 DEBUG [root] wsgi.errors = <open file '<stderr>', mode
> 'w' at 0x7fa060cc3270>
> 2012-03-06 17:35:23 DEBUG [root] wsgi.multiprocess = False
> 2012-03-06 17:35:23 DEBUG [root] CONTENT_TYPE = text/plain
> 2012-03-06 17:35:23 DEBUG [root] HTTP_ACCEPT_ENCODING = gzip, deflate
> 2012-03-06 17:35:23 DEBUG [root]
> 2012-03-06 17:35:23 DEBUG [root] ******************** REQUEST BODY
> ********************
> 2012-03-06 17:35:23 DEBUG [root]
> 2012-03-06 17:35:23 DEBUG [routes.middleware] Matched GET /users
> 2012-03-06 17:35:23 DEBUG [routes.middleware] Route path: '{path_info:.*}',
> defaults: {'controller': <keystone.contrib.s3.core.S3Extension object at
> 0x36616d0>}
> 2012-03-06 17:35:23 DEBUG [routes.middleware] Match dict: {'controller':
> <keystone.contrib.s3.core.S3Extension object at 0x36616d0>, 'path_info':
> '/users'}
> 2012-03-06 17:35:23 DEBUG [routes.middleware] Matched GET /users
> 2012-03-06 17:35:23 DEBUG [routes.middleware] Route path: '{path_info:.*}',
> defaults: {'controller': <keystone.service.PublicRouter object at
> 0x3656b90>}
> 2012-03-06 17:35:23 DEBUG [routes.middleware] Match dict: {'controller':
> <keystone.service.PublicRouter object at 0x3656b90>, 'path_info': '/users'}
> 2012-03-06 17:35:23 DEBUG [routes.middleware] No route matched for GET
> /users
> 2012-03-06 17:35:23 DEBUG [root] ******************** RESPONSE HEADERS
> ********************
> 2012-03-06 17:35:23 DEBUG [root] Content-Length = 52
> 2012-03-06 17:35:23 DEBUG [root] Content-Type = text/plain; charset=UTF-8
> 2012-03-06 17:35:23 DEBUG [root]
> 2012-03-06 17:35:23 DEBUG [root] ******************** RESPONSE BODY
> ********************
> 2012-03-06 17:35:23 DEBUG [root] 404 Not Found
>
> The resource could not be found.
>
>
>
> No handlers could be found for logger "keystoneclient.client"
> Unable to communicate with identity service: 404 Not Found
>
> The resource could not be found.
>
> . (HTTP 404)
> 2012-03-06 17:35:23 DEBUG [eventlet.wsgi.server] 192.168.1.211 - -
> [06/Mar/2012 17:35:23] "GET /v2.0//users?fresh=1331026523.16 HTTP/1.1" 404
> 176 0.023331
>
> ##########################################################################################################################
>
> the keystone service is started and 5000 port is opened, why it happened?
> --
> 非淡薄无以明志,非宁静无以致远
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>


References