Handing required for 4 byte unicode characters in Nova

Registered by Sheel Rana

If any operation is executed with 4byte unicode name, Nova reports 500 error without any proper error message to user.
This will be confusing for user as no information is present about why this issue occurred.

Please refer below for details:

nova secgroup-create sheel 🌋
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'oslo_db.exception.DBError'> (HTTP 500) (Request-ID: req-a4eef1d6-11fa-4188-b116-ffdf728e04f4)

This happens becuase Nova uses mysql database for storing different entity details and
MySql does not support 4 byte unicode due to its utf8 character set.

To handle 4 byte unicode character set, we need to update mysql characterset from utf8 to utf8mb4.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Sheel Rana
Direction:
Needs approval
Assignee:
Sheel Rana
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Whiteboard

We are going to discuss this issue in cross project meeting.
Till then we can keep this BP as it is.
Once fix strategy is fixed, I will go ahead and add supprot for 4 byte unicode characters.

In case utf8 to utf8mb4 update is not suggested, we will use oslo-db exception handling for fixing this issue through Bug#1545729

cross project spec: https://review.openstack.org/#/c/280371/

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.