Glance can`t create image with unicode name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Invalid
|
Medium
|
Darja Shakhray | ||
7.0.x |
Won't Fix
|
Medium
|
MOS Glance | ||
8.0.x |
Invalid
|
Medium
|
Darja Shakhray |
Bug Description
Glance in MOS 6.1 failes to create image with Cyrillic name. Also it failed with Chinese and other non-English characters.
OpenStack is world-wide used, therefore unicode support is essential.
Other entities (volumes, users, projects, flavors) with Cyrillic names were created and modified successfully.
Steps to reproduce (Horizon):
1) Login as admin
2) Navigate to Project -> Compute -> Images
3) Create Image:
- Fill Cyrillic image name
- Select image by file or by URL.
- Select format ISO.
4) Click Create Image button.
Expected: to have new image with Cyrillic name.
Actual result: rep popup message "Danger: There was an error submitting the form. Please try again."
Browser console:
Remote Address:
Request URL:http://
Request Method:POST
Status Code:500 INTERNAL SERVER ERROR
Part of Response:
<h2>Something went wrong!</h2>
<p>An unexpected error has occurred. Try refreshing the page. If that doesn't help, contact your local administrator.</p>
Steps to reproduce (CLI):
1) Login over SSH to Controller node.
2) Download ISO image and upload by SCP to Controller node.
3) Actual execution and result:
[root@node-1 ~]# glance image-create --name ОБРАЗ --file ./dsl-4.11.rc2.iso --disk-format iso --container-format bare
'ascii' codec can't decode byte 0xd0 in position 19: ordinal not in range(128)
Expected behavior with English imagename:
[root@node-1 ~]# glance image-create --name IMAGE --file ./dsl-4.11.rc2.iso --disk-format iso --container-format bare
+------
| Property | Value |
+------
| checksum | 4b61c7892eefc23
| container_format | bare |
| created_at | 2015-02-17T14:12:15 |
| deleted | False |
| deleted_at | None |
| disk_format | iso |
| id | aa8ffb34-
... etc...
Environment:
{"build_id": "2015-02-
Glance version: 0.14.1
Devstack:
It works on devstack.
glance image-create --name ОБРАЗ --file ~/Downloads/
+------
| Property | Value |
+------
| checksum | 4b61c7892eefc23
| container_format | bare |
| created_at | 2015-02-17T14:25:41 |
| deleted | False |
| deleted_at | None |
| disk_format | iso |
| id | 00ebde52-
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | ОБРАЗ |
| owner | 1e2690c5867f4c2
| protected | False |
| size | 52824064 |
| status | active |
| updated_at | 2015-02-17T14:25:41 |
| virtual_size | None |
+------
And via Horizon on Devstack it also works.
Devstack Info:
os|distro=trusty
os|vendor=Ubuntu
os|release=14.04
git|cinder|
git|glance|
git|heat|
git|heat-
git|heat-
git|horizon|
git|keystone|
Glance version: 0.15.0
Seems that Glance 0.15 can handle unicode
Changed in mos: | |
assignee: | nobody → MOS Glance (mos-glance) |
Changed in mos: | |
milestone: | none → 6.1 |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in mos: | |
milestone: | 6.1 → 7.0 |
The bug does not look that severe as there is a workaround - create image with latin name. Not pretty, but works well, hence lowering to medium.