← Back to team overview

openstack team mailing list archive

Re: [OpenStack][Glance] Failure in Glance install: 'NoneType' object has no attribute 'method'

 

What version of webob do you have installed? stable/essex explicitly depends on v1.0.8, which ensures that the 'request' attribute is not-None on a Response object. As of v1.1.1, the 'request' attribute was no longer a supported part of the API. We treat this in Folsom and Grizzly by explicitly setting the 'request' attribute in glance/common/wsgi.py

On Feb 24, 2013, at 6:32 AM, Zhiqiang Zhao wrote:

> Hi,
> 
> I'm a new beginner. I'm trying to learn devstack installation step by step. I set essex/stable braches. But always failure in glance install. Log file shows as following:
> 
> File "/usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py", line 383, in handle_one_response
>     result = self.application(self.environ, start_response)
>   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
>     resp = self.call_func(req, *args, **self.kwargs)
>   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
>     return self.func(req, *args, **kwargs)
>   File "/opt/stack/glance/glance/common/wsgi.py", line 284, in __call__
>     response = req.get_response(self.application)
>   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1296, in send
>     application, catch_exc_info=False)
>   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application
>     app_iter = application(self.environ, start_response)
>   File "/opt/stack/keystone/keystone/middleware/auth_token.py", line 176, in __call__
>     return self.app(env, start_response)
>   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
>     resp = self.call_func(req, *args, **self.kwargs)
>   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
>     return self.func(req, *args, **kwargs)
>   File "/opt/stack/glance/glance/common/wsgi.py", line 284, in __call__
>     response = req.get_response(self.application)
>   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1296, in send
>     application, catch_exc_info=False)
>   File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application
>     app_iter = application(self.environ, start_response)
>   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
>     resp = self.call_func(req, *args, **self.kwargs)
>   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
>     return self.func(req, *args, **kwargs)
>   File "/opt/stack/glance/glance/common/wsgi.py", line 285, in __call__
>     return self.process_response(response)
>   File "/opt/stack/glance/glance/api/middleware/cache.py", line 108, in process_response
>     if request.method not in ('GET', 'DELETE'):
> AttributeError: 'NoneType' object has no attribute 'method'
> 
> If I use command 'glance index', the error is the same.
> Attachment is config files for glance.
> Did I miss something?
> 
> 
> <configs.rar>_______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp


References