Get error on dashboard click on the "Defaults" when there is some resource in Chinese name
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-
python-
openstack-
2.Libvirt + KVM
libvirt-
qemu-kvm-
Logs & Configs
==============
controller node log
/var/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/
[Wed Oct 26 05:34:03.139921 2016] [:error] [pid 17086] return action.
[Wed Oct 26 05:34:03.139924 2016] [:error] [pid 17086] File "/usr/lib/
[Wed Oct 26 05:34:03.139926 2016] [:error] [pid 17086] return self.allowed(
[Wed Oct 26 05:34:03.139929 2016] [:error] [pid 17086] File "/usr/share/
[Wed Oct 26 05:34:03.139932 2016] [:error] [pid 17086] usages = quotas.
[Wed Oct 26 05:34:03.139935 2016] [:error] [pid 17086] File "/usr/lib/
[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/
[Wed Oct 26 05:34:03.139943 2016] [:error] [pid 17086] tenant_
[Wed Oct 26 05:34:03.139945 2016] [:error] [pid 17086] File "/usr/share/
[Wed Oct 26 05:34:03.139948 2016] [:error] [pid 17086] tenant_
[Wed Oct 26 05:34:03.139950 2016] [:error] [pid 17086] File "/usr/share/
[Wed Oct 26 05:34:03.139953 2016] [:error] [pid 17086] quotasets.
[Wed Oct 26 05:34:03.139956 2016] [:error] [pid 17086] File "/usr/share/
[Wed Oct 26 05:34:03.139958 2016] [:error] [pid 17086] return base.QuotaSet(
[Wed Oct 26 05:34:03.139960 2016] [:error] [pid 17086] File "/usr/lib/
[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/
[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/
[Wed Oct 26 05:34:03.139972 2016] [:error] [pid 17086] self._add_
[Wed Oct 26 05:34:03.139974 2016] [:error] [pid 17086] File "/usr/lib/
[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)
https:/ /review. openstack. org/#/c/ 395684/