incorrect result when executed glance index with keystone

Asked by smallma on 2012-04-11

Hello all,

I try to use glance with remote keystone, but the following incorrect result is occurred when I executed glance index with keystone. Please help me out.

Failed to show index. Got error:
An object with the specified identifier was not found.
Details: 404 Not Found

The resource could not be found.

glance-api log:
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req

root@glance:/etc/glance# export | grep OS
declare -x LESSCLOSE="/usr/bin/lesspipe %s %s"
declare -x OS_AUTH_KEY="openstack"
declare -x OS_AUTH_TENANT="adminTenant"
declare -x OS_AUTH_URL="http://172.16.70.129:5000/v2.0"
declare -x OS_AUTH_USER="admin"
declare -x OS_REGION_NAME="RegionOne"

keystone log:
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] ******************** REQUEST ENVIRON ********************
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] SCRIPT_NAME = /v2.0
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] webob.adhoc_attrs = {'response': <Response at 0x3272610 200 OK>}
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] REQUEST_METHOD = POST
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] PATH_INFO = /tokens
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] SERVER_PROTOCOL = HTTP/1.0
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] CONTENT_LENGTH = 110
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] HTTP_USER_AGENT = glance-client
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] eventlet.posthooks = []
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] SERVER_NAME = 172.16.70.129
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] REMOTE_ADDR = 172.16.70.236
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] eventlet.input = <eventlet.wsgi.Input object at 0x370ce10>
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] wsgi.url_scheme = http
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] webob._body_file = (<LimitedLengthFile(<eventlet.wsgi.Input object at 0x370ce10>, maxlen=110)>, <eventlet.wsgi.Input object at 0x370ce10>)
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] SERVER_PORT = 5000
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] wsgi.input = <_io.BytesIO object at 0x37169b0>
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] HTTP_HOST = 172.16.70.129:5000
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] wsgi.multithread = True
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] openstack.params = {u'auth': {u'tenantName': u'adminTenant', u'passwordCredentials': {u'username': u'admin', u'password': u'openstack'}}}
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] wsgi.version = (1, 0)
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] openstack.context = {'token_id': None, 'is_admin': False}
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] GATEWAY_INTERFACE = CGI/1.1
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] wsgi.run_once = False
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] wsgi.errors = <open file '<stderr>', mode 'w' at 0x7f0145cb1270>
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] wsgi.multiprocess = False
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] webob.is_body_seekable = True
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] CONTENT_TYPE = application/json
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] HTTP_ACCEPT_ENCODING = gzip, deflate
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi]
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] ******************** REQUEST BODY ********************
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] {"auth": {"tenantName": "adminTenant", "passwordCredentials": {"username": "admin", "password": "openstack"}}}
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi]
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
2012-04-12 16:27:15 DEBUG [routes.middleware] Matched POST /tokens
2012-04-12 16:27:15 DEBUG [routes.middleware] Route path: '{path_info:.*}', defaults: {'controller': <keystone.service.PublicRouter object at 0x3257bd0>}
2012-04-12 16:27:15 DEBUG [routes.middleware] Match dict: {'controller': <keystone.service.PublicRouter object at 0x3257bd0>, 'path_info': '/tokens'}
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
2012-04-12 16:27:15 DEBUG [routes.middleware] Matched POST /tokens
2012-04-12 16:27:15 DEBUG [routes.middleware] Route path: '/tokens', defaults: {'action': u'authenticate', 'controller': <keystone.service.TokenController object at 0x3257f50>}
2012-04-12 16:27:15 DEBUG [routes.middleware] Match dict: {'action': u'authenticate', 'controller': <keystone.service.TokenController object at 0x3257f50>}
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] arg_dict: {}
2012-04-12 16:27:15 DEBUG [root] TOKEN_REF {'metadata': {u'roles': [u'dabb429a0e214115a90426f28ea8f72a']}, 'expires': datetime.datetime(2012, 4, 13, 8, 27, 15, 843191), 'user': {u'email': None, u'enabled': True, 'id': u'5755855ca8514efd879435172e32163e', 'name': u'admin', u'tenantId': u'ded7bc13ad7449b9ba2ba8f7d1de3382'}, 'tenant': {u'enabled': True, 'id': u'ded7bc13ad7449b9ba2ba8f7d1de3382', 'name': u'adminTenant', u'description': u'Admin Tenant'}, 'id': '859bb1176bef468d9969798bb0a07271'}
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] ******************** RESPONSE HEADERS ********************
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] Content-Type = application/json
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] Vary = X-Auth-Token
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] Content-Length = 669
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi]
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] ******************** RESPONSE BODY ********************
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] {"access": {"token": {"expires": "2012-04-13T08:27:15Z", "id": "859bb1176bef468d9969798bb0a07271", "tenant": {"enabled": true, "id": "ded7bc13ad7449b9ba2ba8f7d1de3382", "name": "adminTenant", "description": "Admin Tenant"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://172.16.70.236:9292/v1/", "region": "RegionOne", "internalURL": "http://172.16.70.236:9292/v1/", "publicURL": "http://172.16.70.236:9292/v1/"}], "endpoints_links": [], "type": "image", "name": "Glance"}], "user": {"username": "admin", "roles_links": [], "id": "5755855ca8514efd879435172e32163e", "roles": [{"id": "dabb429a0e214115a90426f28ea8f72a", "name": "adminRole"}], "name": "admin"}}}

2012-04-12 16:27:15 DEBUG [eventlet.wsgi.server] 172.16.70.236 - - [12/Apr/2012 16:27:15] "POST /v2.0/tokens HTTP/1.1" 200 817 0.067484

/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] ******************** REQUEST ENVIRON ********************
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] SCRIPT_NAME = /v2.0
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] webob.adhoc_attrs = {'response': <Response at 0x370fdd0 200 OK>}
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] REQUEST_METHOD = GET
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] PATH_INFO = /tokens/859bb1176bef468d9969798bb0a07271
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] SERVER_PROTOCOL = HTTP/1.0
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] HTTP_X_AUTH_TOKEN = ADMIN
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] eventlet.posthooks = []
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] SERVER_NAME = 172.16.70.129
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] REMOTE_ADDR = 172.16.70.236
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] eventlet.input = <eventlet.wsgi.Input object at 0x3272a50>
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] wsgi.url_scheme = http
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] SERVER_PORT = 35357
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] wsgi.input = <eventlet.wsgi.Input object at 0x3272a50>
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] HTTP_HOST = 172.16.70.129:35357
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] wsgi.multithread = True
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] HTTP_ACCEPT = application/json
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] wsgi.version = (1, 0)
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] openstack.context = {'token_id': 'ADMIN', 'is_admin': True}
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] GATEWAY_INTERFACE = CGI/1.1
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] wsgi.run_once = False
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] wsgi.errors = <open file '<stderr>', mode 'w' at 0x7f0145cb1270>
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] wsgi.multiprocess = False
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] CONTENT_TYPE = application/json
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] HTTP_ACCEPT_ENCODING = identity
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi]
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] ******************** REQUEST BODY ********************
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi]
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
2012-04-12 16:27:15 DEBUG [routes.middleware] Matched GET /tokens/859bb1176bef468d9969798bb0a07271
2012-04-12 16:27:15 DEBUG [routes.middleware] Route path: '{path_info:.*}', defaults: {'controller': <keystone.contrib.admin_crud.core.CrudExtension object at 0x3249990>}
2012-04-12 16:27:15 DEBUG [routes.middleware] Match dict: {'controller': <keystone.contrib.admin_crud.core.CrudExtension object at 0x3249990>, 'path_info': '/tokens/859bb1176bef468d9969798bb0a07271'}
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
2012-04-12 16:27:15 DEBUG [routes.middleware] Matched GET /tokens/859bb1176bef468d9969798bb0a07271
2012-04-12 16:27:15 DEBUG [routes.middleware] Route path: '{path_info:.*}', defaults: {'controller': <keystone.service.AdminRouter object at 0x25e2910>}
2012-04-12 16:27:15 DEBUG [routes.middleware] Match dict: {'controller': <keystone.service.AdminRouter object at 0x25e2910>, 'path_info': '/tokens/859bb1176bef468d9969798bb0a07271'}
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
2012-04-12 16:27:15 DEBUG [routes.middleware] Matched GET /tokens/859bb1176bef468d9969798bb0a07271
2012-04-12 16:27:15 DEBUG [routes.middleware] Route path: '/tokens/{token_id}', defaults: {'action': u'validate_token', 'controller': <keystone.service.TokenController object at 0x3142e10>}
2012-04-12 16:27:15 DEBUG [routes.middleware] Match dict: {'action': u'validate_token', 'token_id': u'859bb1176bef468d9969798bb0a07271', 'controller': <keystone.service.TokenController object at 0x3142e10>}
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated
  req.response.request = req
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] arg_dict: {'token_id': u'859bb1176bef468d9969798bb0a07271'}
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] ******************** RESPONSE HEADERS ********************
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] Content-Type = application/json
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] Vary = X-Auth-Token
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] Content-Length = 410
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi]
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] ******************** RESPONSE BODY ********************
2012-04-12 16:27:15 DEBUG [keystone.common.wsgi] {"access": {"token": {"expires": "2012-04-13T08:27:15Z", "id": "859bb1176bef468d9969798bb0a07271", "tenant": {"id": "ded7bc13ad7449b9ba2ba8f7d1de3382", "enabled": true, "description": "Admin Tenant", "name": "adminTenant"}}, "user": {"username": "admin", "roles_links": [], "id": "5755855ca8514efd879435172e32163e", "roles": [{"id": "dabb429a0e214115a90426f28ea8f72a", "name": "adminRole"}], "name": "admin"}}}

2012-04-12 16:27:15 DEBUG [eventlet.wsgi.server] 172.16.70.236 - - [12/Apr/2012 16:27:15] "GET /v2.0/tokens/859bb1176bef468d9969798bb0a07271 HTTP/1.1" 200 558 0.015854

Thanks,

Rain.

Question information

Language:
English Edit question
Status:
Solved
For:
Glance Edit question
Assignee:
No assignee Edit question
Solved by:
smallma
Solved:
2012-04-18
Last query:
2012-04-18
Last reply:
2012-04-12
Jay Pipes (jaypipes) said : #1

Anything in the glance-api log, Rain?

Best,
-jay

smallma (s-rain) said : #2

Jay Thanks,

I fixed it after add glance endpoint in keystone.

There is a error as below when I install keyston in glance node.

Unpacking python-glance (from python-glance_2012.1~rc3-0ubuntu1_all.deb) ...
dpkg: error processing python-glance_2012.1~rc3-0ubuntu1_all.deb (--install):
 trying to overwrite '/usr/share/pyshared/glance-2012.1.egg-info/dependency_links.txt', which is also in package glance 2012.1.4
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

After using "dpkg --force-overwrite -i python-glance_2012.1~rc3-0ubuntu1_all.deb" to install, keystone installed success.
Is there any solution to avoid this error occurred?

Thanks,

Rain.

Jay Pipes (jaypipes) said : #3

Turning this into a packaging bug, Rain..

smallma (s-rain) said : #4

Thanks :)