openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #04000
Re: Can't create an instance with openstack-dashboard
Pushing this back to the list because I have little experience with Nova.
Mark
2011/9/8 Jae Sang Lee <hyangii@xxxxxxxxx>
> Hi, Mark, you're right. there are also error in nova-api.
>
> this is error log when I launched a instance.
>
> 11555 2011-09-07 21:24:20,829 INFO nova.api.openstack.wsgi [-]
> http://localhost:8774/v1.1/admin/extras/servers returned with HTTP 400
> 11556 2011-09-07 21:24:20,829 ERROR nova.api.openstack [-] Caught error:
> 'Fault' object has no attribute 'explanation'
> 11557 (nova.api.openstack): TRACE: Traceback (most recent call last):
> 11558 (nova.api.openstack): TRACE: File
> "/usr/lib/pymodules/python2.6/nova/api/openstack/__init__.py", line 64, in
> __call__
> 11559 (nova.api.openstack): TRACE: return
> req.get_response(self.application)
> 11560 (nova.api.openstack): TRACE: File
> "/usr/lib/pymodules/python2.6/webob/request.py", line 1053, in get_response
> 11561 (nova.api.openstack): TRACE: application, catch_exc_info=False)
> 11562 (nova.api.openstack): TRACE: File
> "/usr/lib/pymodules/python2.6/webob/request.py", line 1022, in
> call_application
> 11563 (nova.api.openstack): TRACE: app_iter = application(self.environ,
> start_response)
> 11564 (nova.api.openstack): TRACE: File
> "/usr/lib/pymodules/python2.6/keystone/middleware/auth_token.py", line 186,
> in __call__
> 11565 (nova.api.openstack): TRACE: return self._forward_request(env,
> start_response, proxy_headers)
> 11566 (nova.api.openstack): TRACE: File
> "/usr/lib/pymodules/python2.6/keystone/middleware/auth_token.py", line 312,
> in _forward_request
> 11567 (nova.api.openstack): TRACE: return self.app(env, start_response)
> 11568 (nova.api.openstack): TRACE: File
> "/usr/lib/pymodules/python2.6/webob/dec.py", line 159, in __call__
> 11569 (nova.api.openstack): TRACE: return resp(environ, start_response)
> 11570 (nova.api.openstack): TRACE: File
> "/usr/lib/pymodules/python2.6/webob/dec.py", line 159, in __call__
> 11571 (nova.api.openstack): TRACE: return resp(environ, start_response)
> 11572 (nova.api.openstack): TRACE: File
> "/usr/lib/pymodules/python2.6/webob/dec.py", line 159, in __call__
> 11573 (nova.api.openstack): TRACE: return resp(environ, start_response)
> 11574 (nova.api.openstack): TRACE: File
> "/usr/lib/pymodules/python2.6/routes/middleware.py", line 131, in __call__
> 11575 (nova.api.openstack): TRACE: response = self.app(environ,
> start_response)
> 11576 (nova.api.openstack): TRACE: File
> "/usr/lib/pymodules/python2.6/webob/dec.py", line 159, in __call__
> 11577 (nova.api.openstack): TRACE: return resp(environ, start_response)
> 11578 (nova.api.openstack): TRACE: File
> "/usr/lib/pymodules/python2.6/webob/dec.py", line 159, in __call__
> 11579 (nova.api.openstack): TRACE: return resp(environ, start_response)
> 11580 (nova.api.openstack): TRACE: File
> "/usr/lib/pymodules/python2.6/webob/dec.py", line 147, in __call__
> 11581 (nova.api.openstack): TRACE: resp = self.call_func(req, *args,
> **self.kwargs)
> 11582 (nova.api.openstack): TRACE: File
> "/usr/lib/pymodules/python2.6/webob/dec.py", line 208, in call_func
> 11583 (nova.api.openstack): TRACE: return self.func(req, *args,
> **kwargs)
> 11584 (nova.api.openstack): TRACE: File
> "/usr/lib/pymodules/python2.6/nova/api/openstack/faults.py", line 55, in
> __call__
> 11585 (nova.api.openstack): TRACE: 'message':
> self.wrapped_exc.explanation}}
> 11586 (nova.api.openstack): TRACE: AttributeError: 'Fault' object has no
> attribute 'explanation'
> 11587 (nova.api.openstack): TRACE:
>
>
>
>
> 2011/9/9 Mark Gius <mark@xxxxxxxxxxxx>
>
>> If I am reading this error correctly the source of the error is in Nova,
>> and the dashboard error you are seeing is related to not handling the error
>> received from Nova properly. I would take a look at the Nova logs to see if
>> you can find a root cause there.
>>
>> Mark
>>
>> On Thu, Sep 8, 2011 at 12:37 AM, 이재상 <hyangii@xxxxxxxxx> wrote:
>>
>>> Hi, everyone.
>>>
>>> I installed Nova environment(trunk version) with keystone(git clone),
>>> dashboard(git clone). so I login and can see user dashboard, system panel.
>>>
>>> (I can make user, tanant, keypair, network, etc on.)
>>>
>>> I also connect glance image service. I tried to make a instance with
>>> glance image.
>>>
>>> but there was somthing wrong. when I clicked create instance in
>>> dashboard, this is dashboard error message.
>>>
>>> ==========================
>>> Traceback (most recent call last):
>>> File
>>> "/root/openstack-dashboard/django-openstack/django_openstack/dash/views/images.py",
>>> line 93, in handle
>>> data.get('user_data'))
>>> File
>>> "/root/openstack-dashboard/django-openstack/django_openstack/api.py", line
>>> 431, in server_create
>>> name, image, flavor, key_name=key_name, user_data=user_data),
>>> File
>>> "/root/openstack-dashboard/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/extras/servers.py",
>>> line 115, in create
>>> return self._create("/extras/servers", body, "server")
>>> File
>>> "/root/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
>>> "/root/openstack-dashboard/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/connection.py",
>>> line 83, in post
>>> return self._cs_request(url, 'POST', **kwargs)
>>> File
>>> "/root/openstack-dashboard/openstack-dashboard/.dashboard-venv/src/openstackx/openstackx/api/connection.py",
>>> line 65, in _cs_request
>>> **kwargs)
>>> File
>>> "/root/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)
>>> ======================
>>>
>>> I tried to find point of error, but I can't find. How can I fix this
>>> problem?
>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~openstack
>>> Post to : openstack@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~openstack
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>
References