Activity log for bug #1160644

Date Who What changed Old value New value Message
2013-03-27 00:04:40 Alex Xu bug added bug
2013-03-27 00:04:50 Alex Xu quantum: assignee Alex Xu (xuhj)
2013-03-27 02:37:44 OpenStack Infra quantum: status New In Progress
2013-03-27 03:05:12 yong sheng gong quantum: importance Undecided High
2013-03-27 03:05:18 yong sheng gong quantum: milestone havana-1
2013-03-27 09:07:47 Alex Xu description When enable Chinese translation file and raise an error that with Chinese error message will get exception as below: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py", line 382, 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/local/lib/python2.7/dist-packages/python_keystoneclient-0.2.2.21.g92bf8a7-py2.7.egg/keystoneclient/middleware/auth_token.py", line 348, in __call__ return self.app(env, start_response) File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__ return resp(environ, start_response) File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, 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/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__ return resp(environ, start_response) File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, 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/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__ return resp(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 "/home/soulxu/work-code/openstack/quantum/quantum/api/v2/resource.py", line 86, in resource body = serializer.serialize({'QuantumError': str(e)}) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-4: ordinal not in range(128) When enable Chinese translation file and raise an error that with Chinese error message will get exception as below: Traceback (most recent call last):   File "/usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py", line 382, 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/local/lib/python2.7/dist-packages/python_keystoneclient-0.2.2.21.g92bf8a7-py2.7.egg/keystoneclient/middleware/auth_token.py", line 348, in __call__     return self.app(env, start_response)   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__     return resp(environ, start_response)   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, 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/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__     return resp(environ, start_response)   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, 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/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__     return resp(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 "/home/soulxu/work-code/openstack/quantum/quantum/api/v2/resource.py", line 86, in resource     body = serializer.serialize({'QuantumError': str(e)}) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-4: ordinal not in range(128) How to reproduce: 1. initialize or update template to chinese template initialize: python ./setup.py init_catalog -l zh_CN -i quantum/locale/quantum.pot -o quantum/locale/zh_CN/LC_MESSAGES/quantum.po update: python ./setup.py update_catalog -l zh_CN -i quantum/locale/quantum.pot -o quantum/locale/zh_CN/LC_MESSAGES/quantum.po 2. Translate a message of exception that you want to raise. There is chinese for test '中文中文' 3. compile catalog python ./setup.py compile_catalog --directory quantum/locale --locale zh_CN 4. cp quantum/locale/zh_CN/LC_MESSAGES/quantum.mo /usr/share/locale/zh_CN/LC_MESSAGES/ 5. running quantum with env varables: LANGUAGE=zh_CN:zh LANG=zh_CN.UTF-8 LC_ALL=zh_CN.UTF-8 6. then try to raise the error that you have translated.
2013-03-27 09:09:19 Alex Xu description When enable Chinese translation file and raise an error that with Chinese error message will get exception as below: Traceback (most recent call last):   File "/usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py", line 382, 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/local/lib/python2.7/dist-packages/python_keystoneclient-0.2.2.21.g92bf8a7-py2.7.egg/keystoneclient/middleware/auth_token.py", line 348, in __call__     return self.app(env, start_response)   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__     return resp(environ, start_response)   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, 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/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__     return resp(environ, start_response)   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, 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/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__     return resp(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 "/home/soulxu/work-code/openstack/quantum/quantum/api/v2/resource.py", line 86, in resource     body = serializer.serialize({'QuantumError': str(e)}) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-4: ordinal not in range(128) How to reproduce: 1. initialize or update template to chinese template initialize: python ./setup.py init_catalog -l zh_CN -i quantum/locale/quantum.pot -o quantum/locale/zh_CN/LC_MESSAGES/quantum.po update: python ./setup.py update_catalog -l zh_CN -i quantum/locale/quantum.pot -o quantum/locale/zh_CN/LC_MESSAGES/quantum.po 2. Translate a message of exception that you want to raise. There is chinese for test '中文中文' 3. compile catalog python ./setup.py compile_catalog --directory quantum/locale --locale zh_CN 4. cp quantum/locale/zh_CN/LC_MESSAGES/quantum.mo /usr/share/locale/zh_CN/LC_MESSAGES/ 5. running quantum with env varables: LANGUAGE=zh_CN:zh LANG=zh_CN.UTF-8 LC_ALL=zh_CN.UTF-8 6. then try to raise the error that you have translated. When enable Chinese translation file and raise an exception that translated by Chinese will get exception as below: Traceback (most recent call last):   File "/usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py", line 382, 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/local/lib/python2.7/dist-packages/python_keystoneclient-0.2.2.21.g92bf8a7-py2.7.egg/keystoneclient/middleware/auth_token.py", line 348, in __call__     return self.app(env, start_response)   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__     return resp(environ, start_response)   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, 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/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__     return resp(environ, start_response)   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, 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/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__     return resp(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 "/home/soulxu/work-code/openstack/quantum/quantum/api/v2/resource.py", line 86, in resource     body = serializer.serialize({'QuantumError': str(e)}) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-4: ordinal not in range(128) How to reproduce: 1. initialize or update template to chinese template initialize: python ./setup.py init_catalog -l zh_CN -i quantum/locale/quantum.pot -o quantum/locale/zh_CN/LC_MESSAGES/quantum.po update: python ./setup.py update_catalog -l zh_CN -i quantum/locale/quantum.pot -o quantum/locale/zh_CN/LC_MESSAGES/quantum.po 2. Translate a message of exception that you want to raise. There is chinese for test '中文中文' 3. compile catalog python ./setup.py compile_catalog --directory quantum/locale --locale zh_CN 4. cp quantum/locale/zh_CN/LC_MESSAGES/quantum.mo /usr/share/locale/zh_CN/LC_MESSAGES/ 5. running quantum with env varables: LANGUAGE=zh_CN:zh LANG=zh_CN.UTF-8 LC_ALL=zh_CN.UTF-8 6. then try to raise the error that you have translated.
2013-03-27 09:10:18 Alex Xu description When enable Chinese translation file and raise an exception that translated by Chinese will get exception as below: Traceback (most recent call last):   File "/usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py", line 382, 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/local/lib/python2.7/dist-packages/python_keystoneclient-0.2.2.21.g92bf8a7-py2.7.egg/keystoneclient/middleware/auth_token.py", line 348, in __call__     return self.app(env, start_response)   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__     return resp(environ, start_response)   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, 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/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__     return resp(environ, start_response)   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, 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/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__     return resp(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 "/home/soulxu/work-code/openstack/quantum/quantum/api/v2/resource.py", line 86, in resource     body = serializer.serialize({'QuantumError': str(e)}) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-4: ordinal not in range(128) How to reproduce: 1. initialize or update template to chinese template initialize: python ./setup.py init_catalog -l zh_CN -i quantum/locale/quantum.pot -o quantum/locale/zh_CN/LC_MESSAGES/quantum.po update: python ./setup.py update_catalog -l zh_CN -i quantum/locale/quantum.pot -o quantum/locale/zh_CN/LC_MESSAGES/quantum.po 2. Translate a message of exception that you want to raise. There is chinese for test '中文中文' 3. compile catalog python ./setup.py compile_catalog --directory quantum/locale --locale zh_CN 4. cp quantum/locale/zh_CN/LC_MESSAGES/quantum.mo /usr/share/locale/zh_CN/LC_MESSAGES/ 5. running quantum with env varables: LANGUAGE=zh_CN:zh LANG=zh_CN.UTF-8 LC_ALL=zh_CN.UTF-8 6. then try to raise the error that you have translated. When enable Chinese translation file and raise an exception that translated by Chinese will get exception as below: Traceback (most recent call last):   File "/usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py", line 382, 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/local/lib/python2.7/dist-packages/python_keystoneclient-0.2.2.21.g92bf8a7-py2.7.egg/keystoneclient/middleware/auth_token.py", line 348, in __call__     return self.app(env, start_response)   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__     return resp(environ, start_response)   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, 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/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__     return resp(environ, start_response)   File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 144, 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/local/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__     return resp(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 "/home/soulxu/work-code/openstack/quantum/quantum/api/v2/resource.py", line 86, in resource     body = serializer.serialize({'QuantumError': str(e)}) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-4: ordinal not in range(128) How to reproduce: 1. initialize or update template to chinese template initialize: python ./setup.py init_catalog -l zh_CN -i quantum/locale/quantum.pot -o quantum/locale/zh_CN/LC_MESSAGES/quantum.po update: python ./setup.py update_catalog -l zh_CN -i quantum/locale/quantum.pot -o quantum/locale/zh_CN/LC_MESSAGES/quantum.po 2. Translate a message of exception that you want to raise. There is chinese for test '中文中文' 3. compile catalog python ./setup.py compile_catalog --directory quantum/locale --locale zh_CN 4. cp quantum/locale/zh_CN/LC_MESSAGES/quantum.mo /usr/share/locale/zh_CN/LC_MESSAGES/ 5. running quantum with env varables: LANGUAGE=zh_CN:zh LANG=zh_CN.UTF-8 LC_ALL=zh_CN.UTF-8 6. then use quantum cli tools to raise the error that you have translated.
2013-03-29 13:57:54 Mark McClain tags quantum-core
2013-04-01 21:23:25 Mark McClain tags quantum-core grizzly-backport-potential quantum-core
2013-04-02 12:06:34 Thierry Carrez quantum: milestone havana-1 grizzly-rc3
2013-04-02 15:50:24 OpenStack Infra quantum: status In Progress Fix Committed
2013-04-02 19:00:06 OpenStack Infra quantum: status Fix Committed Fix Released
2013-04-04 10:28:23 Thierry Carrez quantum: milestone grizzly-rc3 2013.1
2014-03-31 12:01:31 Alan Pevec tags grizzly-backport-potential quantum-core quantum-core