[Openstack] dashboard don't support chinese

ljvsss ljvsss at gmail.com
Wed Nov 30 13:38:54 UTC 2011


hi:
i am a chinese, i want use dashboard in chinese;is there anyone can help me? thanks



in the /var/log/apache/error.log:
[Wed Nov 30 21:31:24 2011] [error] DEBUG:django_openstack.api:admin_api connection created using token "ee56dcd8ff2ef8e02001" and url "http://192.168.1.2:8774/v1.1/1"
[Wed Nov 30 21:31:24 2011] [error] ERROR:django_openstack.forms:Nonspecific error while handling form
[Wed Nov 30 21:31:24 2011] [error] Traceback (most recent call last):
[Wed Nov 30 21:31:24 2011] [error]   File "/opt/openstack-dashboard/django-openstack/django_openstack/forms.py", line 177, in maybe_handle
[Wed Nov 30 21:31:24 2011] [error]     return form, form.handle(request, data)
[Wed Nov 30 21:31:24 2011] [error]   File "/opt/openstack-dashboard/django-openstack/django_openstack/syspanel/views/flavors.py", line 56, in handle
[Wed Nov 30 21:31:24 2011] [error]     int(data['flavorid']))
[Wed Nov 30 21:31:24 2011] [error]   File "/opt/openstack-dashboard/django-openstack/django_openstack/api.py", line 450, in flavor_create
[Wed Nov 30 21:31:24 2011] [error]     name, int(memory), int(vcpu), int(disk), flavor_id))
[Wed Nov 30 21:31:24 2011] [error]   File "/opt/openstackx/openstackx/admin/flavors.py", line 34, in create
[Wed Nov 30 21:31:24 2011] [error]     return self._create('/admin/flavors', body, "flavor")
[Wed Nov 30 21:31:24 2011] [error]   File "/opt/openstackx/openstackx/api/base.py", line 40, in _create
[Wed Nov 30 21:31:24 2011] [error]     resp, body = self.api.connection.post(url, body=body)
[Wed Nov 30 21:31:24 2011] [error]   File "/opt/openstackx/openstackx/api/connection.py", line 81, in post
[Wed Nov 30 21:31:24 2011] [error]     return self._cs_request(url, 'POST', **kwargs)
[Wed Nov 30 21:31:24 2011] [error]   File "/opt/openstackx/openstackx/api/connection.py", line 63, in _cs_request
[Wed Nov 30 21:31:24 2011] [error]     **kwargs)
[Wed Nov 30 21:31:24 2011] [error]   File "/opt/openstackx/openstackx/api/connection.py", line 48, in request
[Wed Nov 30 21:31:24 2011] [error]     raise exceptions.from_response(resp, body)
[Wed Nov 30 21:31:24 2011] [error] ApiException: Cannot create instance_type with name \\u6d4b\\u8bd5 and flavorid 10 (HTTP 500)
[Wed Nov 30 21:31:24 2011] [error] DEBUG:django_openstack.api:admin_api connection created using token "ee56dcd8ff2ef8e02001" and url http://192.168.1.2:8774/v1.1/1

in the /var/log/nova/nova-api.log:

(nova.exception): TRACE:   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1359, in flush
(nova.exception): TRACE:     self._flush(objects)
(nova.exception): TRACE:   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1447, in _flush
(nova.exception): TRACE:     raise
(nova.exception): TRACE: TypeError: exceptions must be old-style classes or derived from BaseException, not NoneType
(nova.exception): TRACE:
(nova.instance_types): TRACE: Traceback (most recent call last):
(nova.instance_types): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/compute/instance_types.py", line 56, in create
(nova.instance_types): TRACE:     rxtx_cap=rxtx_cap))
(nova.instance_types): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 1334, in instance_type_create
(nova.instance_types): TRACE:     return IMPL.instance_type_create(context, values)
(nova.instance_types): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 101, in wrapper
(nova.instance_types): TRACE:     return f(*args, **kwargs)
(nova.instance_types): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 3331, in instance_type_create
(nova.instance_types): TRACE:     raise exception.DBError(e)
(nova.instance_types): TRACE: DBError: exceptions must be old-style classes or derived from BaseException, not NoneType
(nova.instance_types): TRACE:
2011-11-30 21:31:24,376 ERROR nova.api.openstack [-] Caught error: Cannot create instance_type with name 娴.. and flavorid 10
(nova.api.openstack): TRACE: Traceback (most recent call last):
(nova.api.openstack): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 64, in __call__
(nova.api.openstack): TRACE:     return req.get_response(self.application)
(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__
2011-11-30 21:31:00,938 INFO nova.api.openstack.wsgi [-] GET http://192.168.1.2:8774/v1.1/1/flavors/detail?fresh=1322659860.88
2011-11-30 21:31:03,445 INFO nova.api.openstack.wsgi [-] GET http://192.168.1.2:8774/v1.1/1/admin/services?fresh=1322659863.39
2011-11-30 21:31:24,293 INFO nova.api.openstack.wsgi [-] POST http://192.168.1.2:8774/v1.1/1/admin/flavors
(nova.exception): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 78, in _wrap
(nova.exception): TRACE:     return f(*args, **kwargs)
(nova.exception): TRACE:   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1359, in flush
(nova.exception): TRACE:     self._flush(objects)
(nova.exception): TRACE:   File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1447, in _flush
(nova.exception): TRACE:     raise
(nova.exception): TRACE: TypeError: exceptions must be old-style classes or derived from BaseException, not NoneType
(nova.exception): TRACE:
(nova.instance_types): TRACE: Traceback (most recent call last):
(nova.instance_types): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/compute/instance_types.py", line 56, in create
(nova.instance_types): TRACE:     rxtx_cap=rxtx_cap))
(nova.instance_types): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 1334, in instance_type_create
(nova.instance_types): TRACE:     return IMPL.instance_type_create(context, values)
(nova.instance_types): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 101, in wrapper
(nova.instance_types): TRACE:     return f(*args, **kwargs)
(nova.instance_types): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 3331, in instance_type_create
(nova.instance_types): TRACE:     raise exception.DBError(e)
(nova.instance_types): TRACE: DBError: exceptions must be old-style classes or derived from BaseException, not NoneType
(nova.instance_types): TRACE:
2011-11-30 21:31:24,376 ERROR nova.api.openstack [-] Caught error: Cannot create instance_type with name 娴.. and flavorid 10
(nova.api.openstack): TRACE: Traceback (most recent call last):
(nova.api.openstack): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 64, in __call__
(nova.api.openstack): TRACE:     return req.get_response(self.application)
(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/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 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/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 494, in __call__
(nova.api.openstack): TRACE:     action_result = self.dispatch(request, action, args)
(nova.api.openstack): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 522, in dispatch
(nova.api.openstack): TRACE:     return controller_method(req=request, **action_args)
(nova.api.openstack): TRACE:   File "/opt/openstackx/extensions/admin.py", line 356, in create
(nova.api.openstack): TRACE:     swap, rxtx_quota, rxtx_cap)
(nova.api.openstack): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/compute/instance_types.py", line 61, in create
(nova.api.openstack): TRACE:     % locals())
(nova.api.openstack): TRACE: ApiError: Cannot create instance_type with name \u6d4b\u8bd5 and flavorid 10
(nova.api.openstack): TRACE:









ljvsss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20111130/5b60f558/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.png
Type: image/png
Size: 14072 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20111130/5b60f558/attachment.png>


More information about the Openstack mailing list