Nova allows creating an Image name with invalid utf8 (thus breaking tools further down the pipeline)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
High
|
Christopher Yeoh | ||
tempest |
Fix Released
|
Medium
|
Sean Dague |
Bug Description
Our tempest tests that checks for 400 Bad Request return code fails with a ComputeFault instead.
Pass multi-byte character image name during Create Image
Actual Response Code: ComputeFault, 500
Expected Response Code: 400 Bad Request
Return an error if the server name has a multi-byte character ... FAIL
=======
FAIL: Return an error if the server name has a multi-byte character
-------
Traceback (most recent call last):
File "/opt/stack/
self.
AssertionError: Should return 400 Bad Request if multi byte characters are used for image name
-------
tempest.config: INFO: Using tempest config file /opt/stack/
tempest.
tempest.
tempest.
tempest.
tempest.
tempest.
tempest.
tempest.
-------
affects: | tempest → nova |
Changed in nova: | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: tempest |
Changed in nova: | |
status: | Invalid → New |
Changed in tempest: | |
status: | In Progress → Fix Released |
Changed in nova: | |
status: | Incomplete → Invalid |
status: | Invalid → Confirmed |
summary: |
- Incorrect error returned during Create Image and multi byte characters - used for Image name + Nova allows creating an Image name with invalid utf8 (thus breaking + tools further down the pipeline) |
Changed in nova: | |
assignee: | Prem Karat (prem-karat) → Christopher Yeoh (cyeoh-0) |
This bug doesn't make sense as this test case is invalid @ the first place.
We can always create a snapshot (image-create) with any string value. So this specific test case is invalid here. As long as mulitbye characters are included in a string it would create the images as shown below.
xxxxx@xxxxx: /opt/stack/ tempest$ nova image-list ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ---+--- -----+- ------- ------- ------- ------- ------- --+ ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ---+--- -----+- ------- ------- ------- ------- ------- --+ d05b-44fc- 9628-f33d0f22a6 da | check-this- @-out\xef\ xbb\xbf | ACTIVE | 21274a7e- df35-4698- 87e9-4ee779a890 98 | 117b-4ca8- 9cbb-19d7e02e22 fc | test-@@@11122nova image-list | ACTIVE | 21274a7e- df35-4698- 87e9-4ee779a890 98 |
+------
| ID | Name | Status | Server |
+------
| 8163d097-
| 3afd61b7-
Submitting a patch to remove this test case from tempest.
--prem