openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #04187
Re: diablo 4 dashboar launch instance error
I was also preparing to post on this subject but my stack trace is
different. I am running milestone-proposed versions of Nova and Glance,
with the latest Git versions of Dashboard and Keystone. There was another
thread on this subject a few weeks ago (
https://lists.launchpad.net/openstack/msg04002.html) and I've confirmed I
actually have the fixes mentioned there already in place. Below is my stack
trace:
2011-09-19 07:36:12,927 INFO nova.api.openstack.wsgi [-] POST
http://127.0.0.1:8774/v1.1/1/extras/servers
2011-09-19 07:36:12,933 INFO nova.api.openstack.wsgi [-] HTTP exception
thrown:
2011-09-19 07:36:12,933 INFO nova.api.openstack.wsgi [-]
http://127.0.0.1:8774/v1.1/1/extras/servers returned with HTT
P 400
2011-09-19 07:36:12,934 ERROR nova.api.openstack [-] Caught error: 'Fault'
object has no attribute 'explanation'
(nova.api.openstack): TRACE: Traceback (most recent call last):
(nova.api.openstack): TRACE: File
"/usr/lib/pymodules/python2.7/nova/api/openstack/__init__.py", line 64, in
__call_
_
(nova.api.openstack): TRACE: return req.get_response(self.application)
(nova.api.openstack): TRACE: File
"/usr/lib/pymodules/python2.7/webob/request.py", line 1053, in get_response
(nova.api.openstack): TRACE: application, catch_exc_info=False)
(nova.api.openstack): TRACE: File
"/usr/lib/pymodules/python2.7/webob/request.py", line 1022, in
call_application
(nova.api.openstack): TRACE: app_iter = application(self.environ,
start_response)
(nova.api.openstack): TRACE: File
"/usr/lib/python2.7/dist-packages/keystone/middleware/auth_token.py", line
185, in
__call__
(nova.api.openstack): TRACE: return self._forward_request(env,
start_response, proxy_headers)
(nova.api.openstack): TRACE: File
"/usr/lib/python2.7/dist-packages/keystone/middleware/auth_token.py", line
309, in
_forward_request
(nova.api.openstack): TRACE: return self.app(env, start_response)
(nova.api.openstack): TRACE: File
"/usr/lib/pymodules/python2.7/webob/dec.py", line 159, in __call__
(nova.api.openstack): TRACE: return resp(environ, start_response)
(nova.api.openstack): TRACE: File
"/usr/lib/pymodules/python2.7/webob/dec.py", line 159, in __call__
(nova.api.openstack): TRACE: return resp(environ, start_response)
(nova.api.openstack): TRACE: File
"/usr/lib/pymodules/python2.7/webob/dec.py", line 159, in __call__
(nova.api.openstack): TRACE: return resp(environ, start_response)
(nova.api.openstack): TRACE: File
"/usr/lib/pymodules/python2.7/routes/middleware.py", line 131, in __call__
(nova.api.openstack): TRACE: response = self.app(environ,
start_response)
(nova.api.openstack): TRACE: File
"/usr/lib/pymodules/python2.7/webob/dec.py", line 159, in __call__
(nova.api.openstack): TRACE: return resp(environ, start_response)
(nova.api.openstack): TRACE: File
"/usr/lib/pymodules/python2.7/webob/dec.py", line 159, in __call__
(nova.api.openstack): TRACE: return resp(environ, start_response)
(nova.api.openstack): TRACE: File
"/usr/lib/pymodules/python2.7/webob/dec.py", line 147, in __call__
(nova.api.openstack): TRACE: resp = self.call_func(req, *args,
**self.kwargs)
(nova.api.openstack): TRACE: File
"/usr/lib/pymodules/python2.7/webob/dec.py", line 208, in call_func
(nova.api.openstack): TRACE: return self.func(req, *args, **kwargs)
(nova.api.openstack): TRACE: File
"/usr/lib/pymodules/python2.7/nova/api/openstack/faults.py", line 55, in
__call__
(nova.api.openstack): TRACE: 'message': self.wrapped_exc.explanation}}
(nova.api.openstack): TRACE: AttributeError: 'Fault' object has no attribute
'explanation'
I'm not sure how helpful the trace actually is, since we cannot see the
contents of the POST or the associated response. Without going through the
code in depth, I am not sure how to simulate the request to nova-api myself
in order to provide more detail.
On Mon, Sep 19, 2011 at 10:03 AM, 董志斌 <atkisc@xxxxxxxxx> wrote:
> Error
>
> Unable to launch instance: 'Fault' object has no attribute 'explanation'
>
>
> DEBUG:django_openstack.api:extras_api connection created using token
> "atkisc" and url "http://127.0.0.1:8774/v1.1/cloud"
> ERROR:django_openstack.dash.views.images:ApiException while creating
> instances of image "1"
> Traceback (most recent call last):
> File
> "/opt/openstack-dashboard/django-openstack/django_openstack/dash/views/images.py",
> line 102, in handle
> data.get('security_groups'))
> File "/opt/openstack-dashboard/django-openstack/django_openstack/api.py",
> line 503, in server_create
> security_groups=security_groups), request)
> File
> "/opt/openstack-dashboard/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/extras/servers.py",
> line 115, in create
> return self._create("/extras/servers", body, "server")
> File
> "/opt/openstack-dashboard/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/base.py",
> line 40, in _create
> resp, body = self.api.connection.post(url, body=body)
> File
> "/opt/openstack-dashboard/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/connection.py",
> line 81, in post
> return self._cs_request(url, 'POST', **kwargs)
> File
> "/opt/openstack-dashboard/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/connection.py",
> line 63, in _cs_request
> **kwargs)
> File
> "/opt/openstack-dashboard/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/connection.py",
> line 48, in request
> raise exceptions.from_response(resp, body)
> ApiException: 'Fault' object has no attribute 'explanation' (HTTP 500)
> DEBUG:django_openstack.api:auth_api connection created using url "
> http://localhost:5000/v2.0/"
> [20/Sep/2011 01:03:05] "POST /dash/cloud/images/1/launch HTTP/1.1" 200 5518
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
References