yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #11627
[Bug 1250300] Re: chinese secgroup description make nova list failed
Original poster confirms this is no longer a problem
** Changed in: nova
Status: Incomplete => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1250300
Title:
chinese secgroup description make nova list failed
Status in OpenStack Compute (Nova):
Invalid
Bug description:
I create a secgroup with chinese description just as following:
hzguanqiang@debian:/data/log/nova$ nova secgroup-list
+----+----------+-------------+
| Id | Name | Description |
+----+----------+-------------+
| 11 | bingoxxx | 无 |
Then I create an instance with this secgroup, It report an 500 error.
And when I execute 'nova list' command, it failed with such error info
in nova-api.log:
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack Traceback (most recent call last):
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 111, in __call__
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack return req.get_response(self.application)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1053, in get_response
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack application, catch_exc_info=False)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/request.py", line 1022, in call_application
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack app_iter = application(self.environ, start_response)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack return resp(environ, start_response)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/keystoneclient/middleware/auth_token.py", line 571, in __call__
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack return self.app(env, start_response)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack return resp(environ, start_response)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack return resp(environ, start_response)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack response = self.app(environ, start_response)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack return resp(environ, start_response)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack resp = self.call_func(req, *args, **self.kwargs)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/webob/dec.py", line 208, in call_func
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack return self.func(req, *args, **kwargs)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 904, in __call__
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack content_type, body, accept)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 963, in _process_stack
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack action_result = self.dispatch(meth, request, action_args)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 1044, in dispatch
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack return method(req=request, **action_args)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 505, in detail
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack servers = self._get_servers(req, is_detail=True)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 567, in _get_servers
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack want_objects=True)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/nova/compute/api.py", line 1668, in get_all
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack marker=marker)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/nova/compute/api.py", line 1695, in _get_instances_by_filters
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack limit=limit, marker=marker, expected_attrs=fields)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/nova/objects/base.py", line 107, in wrapper
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack result = fn(cls, context, *args, **kwargs)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/nova/objects/instance.py", line 514, in get_by_filters
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack expected_attrs)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/nova/objects/instance.py", line 489, in _make_instance_list
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack expected_attrs=expected_attrs)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/nova/objects/instance.py", line 252, in _from_db_object
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack db_inst['security_groups'])
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/nova/objects/security_group.py", line 72, in _make_secgroup_list
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack secgroup = SecurityGroup._from_db_object(SecurityGroup(), db_secgroup)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/nova/objects/security_group.py", line 32, in _from_db_object
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack secgroup[field] = db_secgroup[field]
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/nova/objects/base.py", line 381, in __setitem__
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack setattr(self, name, value)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack File "/usr/local/lib/python2.7/dist-packages/nova/objects/base.py", line 66, in setter
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack return setattr(self, get_attrname(name), typefn(value))
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack UnicodeEncodeError: 'ascii' codec can't encode character u'\u65e0' in position 0: ordinal not in range(128)
2013-11-12 11:12:24.137 26386 TRACE nova.api.openstack
2013-11-12 11:12:24.139 26386 INFO nova.api.openstack [req-97cf054c-0e7f-474a-a4a7-3cb82a6d1eb5 7a8786f4a75c41e8a6741865a64a6cb8 9b55f00769924d969880c0955c2871b0] http://10.120.120.21:8774/v2/9b55f00769924d969880c0955c2871b0
/servers/detail returned with HTTP 500
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1250300/+subscriptions