← Back to team overview

openstack team mailing list archive

Re: euca2ools: Failure communicating with keystone (Essex on Ubuntu 12.04 B1)

 

Ah, one more thing - noticed this in keystone (there is an error after all):

Summary:   File "/usr/lib/python2.7/dist-packages/keystone/service.py",
line 350, in authenticate
    for role_id in metadata_ref.get('roles', []):
UnboundLocalError: local variable 'metadata_ref' referenced before
assignment


Trace:
/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): 2012-03-17 18:31:05,090 DEBUG wsgi __call__ ********************
REQUEST ENVIRON ********************
(root): 2012-03-17 18:31:05,090 DEBUG wsgi __call__ SCRIPT_NAME = /v2.0
(root): 2012-03-17 18:31:05,090 DEBUG wsgi __call__ webob.adhoc_attrs =
{'response': <Response at 0x34bc6d0 200 OK>}
(root): 2012-03-17 18:31:05,090 DEBUG wsgi __call__ REQUEST_METHOD = POST
(root): 2012-03-17 18:31:05,090 DEBUG wsgi __call__ PATH_INFO = /tokens
(root): 2012-03-17 18:31:05,090 DEBUG wsgi __call__ SERVER_PROTOCOL =
HTTP/1.0
(root): 2012-03-17 18:31:05,091 DEBUG wsgi __call__ CONTENT_LENGTH = 396
(root): 2012-03-17 18:31:05,091 DEBUG wsgi __call__ eventlet.posthooks = []
(root): 2012-03-17 18:31:05,091 DEBUG wsgi __call__ SERVER_NAME = 172.16.0.1
(root): 2012-03-17 18:31:05,091 DEBUG wsgi __call__ REMOTE_ADDR = 172.16.0.1
(root): 2012-03-17 18:31:05,091 DEBUG wsgi __call__ eventlet.input =
<eventlet.wsgi.Input object at 0x306ab90>
(root): 2012-03-17 18:31:05,091 DEBUG wsgi __call__ wsgi.url_scheme = http
(root): 2012-03-17 18:31:05,091 DEBUG wsgi __call__ webob._body_file =
(<LimitedLengthFile(<eventlet.wsgi.Input object at 0x306ab90>,
maxlen=396)>, <eventlet.wsgi.Input object at 0x306ab90>)
(root): 2012-03-17 18:31:05,091 DEBUG wsgi __call__ SERVER_PORT = 5000
(root): 2012-03-17 18:31:05,091 DEBUG wsgi __call__ wsgi.input =
<_io.BytesIO object at 0x349c9b0>
(root): 2012-03-17 18:31:05,091 DEBUG wsgi __call__ HTTP_HOST =
172.16.0.1:5000
(root): 2012-03-17 18:31:05,091 DEBUG wsgi __call__ wsgi.multithread = True
(root): 2012-03-17 18:31:05,091 DEBUG wsgi __call__ openstack.params =
{u'auth': {u'OS-KSEC2:ec2Credentials': {u'access': u'demo:cookbook',
u'host': u'172.16.0.1:8773', u'verb': u'POST', u'params':
{u'SignatureVersion': u'2', u'AWSAccessKeyId': u'demo:cookbook',
u'Timestamp': u'2012-03-17T18:31:05Z', u'SignatureMethod': u'HmacSHA256',
u'Version': u'2010-08-31', u'Action': u'DescribeInstances'}, u'signature':
u'gTOCAStBnRG1ZMW8X57hy5c6b+A1HFYH3Yv2UrbRhEc=', u'path':
u'/services/Cloud/'}}}
(root): 2012-03-17 18:31:05,091 DEBUG wsgi __call__ wsgi.version = (1, 0)
(root): 2012-03-17 18:31:05,091 DEBUG wsgi __call__ openstack.context =
{'token_id': None, 'is_admin': False}
(root): 2012-03-17 18:31:05,092 DEBUG wsgi __call__ GATEWAY_INTERFACE =
CGI/1.1
(root): 2012-03-17 18:31:05,092 DEBUG wsgi __call__ wsgi.run_once = False
(root): 2012-03-17 18:31:05,092 DEBUG wsgi __call__ wsgi.errors = <open
file '<stderr>', mode 'w' at 0x7f4ee1699270>
(root): 2012-03-17 18:31:05,092 DEBUG wsgi __call__ wsgi.multiprocess =
False
(root): 2012-03-17 18:31:05,092 DEBUG wsgi __call__ webob.is_body_seekable
= True
(root): 2012-03-17 18:31:05,092 DEBUG wsgi __call__ CONTENT_TYPE =
application/json
(root): 2012-03-17 18:31:05,092 DEBUG wsgi __call__ HTTP_ACCEPT_ENCODING =
identity
(root): 2012-03-17 18:31:05,092 DEBUG wsgi __call__
(root): 2012-03-17 18:31:05,092 DEBUG wsgi __call__ ********************
REQUEST BODY ********************
(root): 2012-03-17 18:31:05,092 DEBUG wsgi __call__ {"auth":
{"OS-KSEC2:ec2Credentials": {"access": "demo:cookbook", "host": "
172.16.0.1:8773", "verb": "POST", "params": {"SignatureVersion": "2",
"AWSAccessKeyId": "demo:cookbook", "Timestamp": "2012-03-17T18:31:05Z",
"SignatureMethod": "HmacSHA256", "Version": "2010-08-31", "Action":
"DescribeInstances"}, "signature":
"gTOCAStBnRG1ZMW8X57hy5c6b+A1HFYH3Yv2UrbRhEc=", "path":
"/services/Cloud/"}}}
(root): 2012-03-17 18:31:05,092 DEBUG wsgi __call__
/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): 2012-03-17 18:31:05,093 DEBUG wsgi __call__ arg_dict: {}
(eventlet.wsgi.server): 2012-03-17 18:31:05,093 DEBUG wsgi write Traceback
(most recent call last):
  File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 336, in
handle_one_response
    result = self.application(self.environ, start_response)
  File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 203, in
__call__
    return app(environ, start_response)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in
__call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in
call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/keystone/common/wsgi.py", line
293, in __call__
    response = request.get_response(self.application)
  File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1086, in
get_response
    application, catch_exc_info=False)
  File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1055, in
call_application
    app_iter = application(self.environ, start_response)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in
__call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in
call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/keystone/common/wsgi.py", line
293, in __call__
    response = request.get_response(self.application)
  File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1086, in
get_response
    application, catch_exc_info=False)
  File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1055, in
call_application
    app_iter = application(self.environ, start_response)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in
__call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in
call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/keystone/common/wsgi.py", line
293, in __call__
    response = request.get_response(self.application)
  File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1086, in
get_response
    application, catch_exc_info=False)
  File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1055, in
call_application
    app_iter = application(self.environ, start_response)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in
__call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in
call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/keystone/common/wsgi.py", line
293, in __call__
    response = request.get_response(self.application)
  File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1086, in
get_response
    application, catch_exc_info=False)
  File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1055, in
call_application
    app_iter = application(self.environ, start_response)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in
__call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in
call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/keystone/common/wsgi.py", line
316, in __call__
    resp = req.get_response(self.application)
  File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1086, in
get_response
    application, catch_exc_info=False)
  File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1055, in
call_application
    app_iter = application(self.environ, start_response)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in
__call__
    return resp(environ, start_response)
  File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131,
in __call__
    response = self.app(environ, start_response)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in
__call__
    return resp(environ, start_response)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in
__call__
    return resp(environ, start_response)
  File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131,
in __call__
    response = self.app(environ, start_response)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in
__call__
    return resp(environ, start_response)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in
__call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in
call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/keystone/common/wsgi.py", line
181, in __call__
    result = method(context, **params)
  File "/usr/lib/python2.7/dist-packages/keystone/service.py", line 350, in
authenticate
    for role_id in metadata_ref.get('roles', []):
UnboundLocalError: local variable 'metadata_ref' referenced before
assignment


(eventlet.wsgi.server): 2012-03-17 18:31:05,096 DEBUG wsgi write 172.16.0.1
- - [17/Mar/2012 18:31:05] "POST /v2.0/tokens HTTP/1.1" 500 5137 0.006497


-- 
Kevin Jackson
@itarchitectkev

Follow ups

References