Get error on dashboard click on the "Defaults" when there is some resource in Chinese name

Bug #1637681 reported by 李廷
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
New
Undecided
Unassigned

Bug Description

Description
===========
The administrator interface on dashboard click on the "Defaults", "to get quota info. Error:Unable"

Steps to reproduce
==================
* Create a Chinese named volume
* Create an instance of a Chinese name
* The volume is mounted to this instance
* Restart OS all services
* Re login dashboard interface
* Click the default menu interface,found error info

Expected result
===============
Get correct quota information on dashboard click on the "Defaults"

Actual result
=============
Get error on dashboard click on the "Defaults"

Environment
===========
1. cinder version used: stable/mitaka
python-cinder-8.0.0-1.el7.noarch
python-cinderclient-1.6.0-1.el7.noarch
openstack-cinder-8.0.0-1.el7.noarch

2.Libvirt + KVM
libvirt-1.2.17-13.el7_2.5.x86_64
qemu-kvm-ev-2.3.0-31.el7.16.1.x86_64

Logs & Configs
==============
controller node log
/var/log/httpd/error_log

[Wed Oct 26 05:34:03.139876 2016] [:error] [pid 17086] Error while checking action permissions.
[Wed Oct 26 05:34:03.139899 2016] [:error] [pid 17086] Traceback (most recent call last):
[Wed Oct 26 05:34:03.139903 2016] [:error] [pid 17086] File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 1275, in _filter_action
[Wed Oct 26 05:34:03.139921 2016] [:error] [pid 17086] return action._allowed(request, datum) and row_matched
[Wed Oct 26 05:34:03.139924 2016] [:error] [pid 17086] File "/usr/lib/python2.7/site-packages/horizon/tables/actions.py", line 137, in _allowed
[Wed Oct 26 05:34:03.139926 2016] [:error] [pid 17086] return self.allowed(request, datum)
[Wed Oct 26 05:34:03.139929 2016] [:error] [pid 17086] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/access_and_security/security_groups/tables.py", line 82, in allowed
[Wed Oct 26 05:34:03.139932 2016] [:error] [pid 17086] usages = quotas.tenant_quota_usages(request)
[Wed Oct 26 05:34:03.139935 2016] [:error] [pid 17086] File "/usr/lib/python2.7/site-packages/horizon/utils/memoized.py", line 90, in wrapped
[Wed Oct 26 05:34:03.139937 2016] [:error] [pid 17086] value = cache[key] = func(*args, **kwargs)
[Wed Oct 26 05:34:03.139940 2016] [:error] [pid 17086] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/quotas.py", line 371, in tenant_quota_usages
[Wed Oct 26 05:34:03.139943 2016] [:error] [pid 17086] tenant_id=tenant_id):
[Wed Oct 26 05:34:03.139945 2016] [:error] [pid 17086] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/quotas.py", line 171, in get_tenant_quota_data
[Wed Oct 26 05:34:03.139948 2016] [:error] [pid 17086] tenant_id=tenant_id)
[Wed Oct 26 05:34:03.139950 2016] [:error] [pid 17086] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/quotas.py", line 149, in _get_quota_data
[Wed Oct 26 05:34:03.139953 2016] [:error] [pid 17086] quotasets.append(getattr(cinder, method_name)(request, tenant_id))
[Wed Oct 26 05:34:03.139956 2016] [:error] [pid 17086] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/cinder.py", line 587, in tenant_quota_get
[Wed Oct 26 05:34:03.139958 2016] [:error] [pid 17086] return base.QuotaSet(c_client.quotas.get(tenant_id))
[Wed Oct 26 05:34:03.139960 2016] [:error] [pid 17086] File "/usr/lib/python2.7/site-packages/cinderclient/v2/quotas.py", line 37, in get
[Wed Oct 26 05:34:03.139963 2016] [:error] [pid 17086] "quota_set")
[Wed Oct 26 05:34:03.139965 2016] [:error] [pid 17086] File "/usr/lib/python2.7/site-packages/cinderclient/base.py", line 294, in _get
[Wed Oct 26 05:34:03.139967 2016] [:error] [pid 17086] resp=resp)
[Wed Oct 26 05:34:03.139970 2016] [:error] [pid 17086] File "/usr/lib/python2.7/site-packages/cinderclient/openstack/common/apiclient/base.py", line 468, in __init__
[Wed Oct 26 05:34:03.139972 2016] [:error] [pid 17086] self._add_details(info)
[Wed Oct 26 05:34:03.139974 2016] [:error] [pid 17086] File "/usr/lib/python2.7/site-packages/cinderclient/openstack/common/apiclient/base.py", line 492, in _add_details
[Wed Oct 26 05:34:03.139977 2016] [:error] [pid 17086] setattr(self, k, v)
[Wed Oct 26 05:34:03.139979 2016] [:error] [pid 17086] UnicodeEncodeError: 'ascii' codec can't encode characters in position 10-11: ordinal not in range(128)

Tags: i18n
Eric Harney (eharney)
tags: added: i18n
Revision history for this message
wangxiyuan (wangxiyuan) wrote :
Revision history for this message
Yikun Jiang (yikunkero) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.