[SRU] unicode error when using old unicode non uuid style user id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
In Progress
|
Medium
|
Seyeong Kim | ||
Ubuntu Cloud Archive |
Fix Released
|
High
|
Unassigned | ||
Mitaka |
Fix Released
|
High
|
Unassigned | ||
Ocata |
Fix Released
|
High
|
Unassigned | ||
Pike |
Fix Released
|
High
|
Unassigned | ||
Queens |
Fix Released
|
High
|
Unassigned | ||
Rocky |
Fix Released
|
High
|
Unassigned | ||
heat (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Xenial |
Fix Released
|
High
|
Unassigned | ||
Artful |
Fix Released
|
High
|
Unassigned | ||
Bionic |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
When use old non unicode user id, such as Gāo
heat stack-list shows unicode error
Affected to
Xenial, Artful
UCA Mitaka, Ocata, Pike, Queens
[Test Case]
1. deploy openstack env
2. source novarc ( as admin user ) ( or novarcv3_project as admin )
3. keystone user-create --name test
- openstack user create --domain admin_domain test
4. openstack user set --password-prompt test
4. log into keystone node and install mysql-client
5. connect to mysql with keystone user
6. do below query
- set foreign_key_checks = 0;
- update local_user set user_id='Gāo' where user_id='UUID';
- update user set id='Gāo' where id='UUID';
- set foreign_key_checks = 1;
7. keystone user-role-add --user test --tenant admin --role Admin
- openstack role add --user test --domain admin_domain Admin
- openstack role add --user test --project [admin project id] Admin
- openstack role add --user test --project [admin project id] Member
8. source novarc ( as test user ) ( or novarcv3_project as test user )
9. heat stack-list
result is like [Others]
[Regression]
This patch fixes simple unicode. but heat api needs to be restarted. Could be short outage during restarting.
[Others]
Below is test result
heat --debug stack-list
DEBUG (session) REQ: curl -g -i -X GET http://
INFO (connectionpool) Starting new HTTP connection (1): 10.0.11.184
DEBUG (connectionpool) "GET /v2.0 HTTP/1.1" 200 337
DEBUG (session) RESP: [200] Content-Length: 337 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.18 (Ubuntu) Connection: Keep-Alive Date: Thu, 05 Apr 2018 21:20:39 GMT x-openstack-
on/json X-Distribution: Ubuntu
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-
tp://docs.
DEBUG (v2) Making authentication request to http://
DEBUG (connectionpool) "POST /v2.0/tokens HTTP/1.1" 200 3105
DEBUG (session) REQ: curl -g -i -X GET http://
INFO (connectionpool) Starting new HTTP connection (1): 10.0.11.170
DEBUG (connectionpool) "GET /v1/c9c6d2b72f7
DEBUG (session) RESP: [400] Date: Thu, 05 Apr 2018 21:20:39 GMT Content-Length: 5508 Content-Type: application/json; charset=UTF-8 Connection: keep-alive
RESP BODY: {"explanation": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400, "error": {"message": "'ascii' codec can't encode character u'\\u0101' in position 1: ordinal not in range(128)", "traceback": "Tracebac
k (most recent call last):\n File \"/usr/
, catch_exc_
ll_func(req, *args, **self.kwargs)\n File \"/usr/
_response(
.environ, start_response)\n File \"/usr/
**kwargs)\n File \"/usr/
n File \"/usr/
lf.kwargs)\n File \"/usr/
n File \"/usr/
File \"/usr/
b/python2.
t-packages/
thon2.7/
b/python2.
python2.
packages/
es/heat/
ackages/
/python2.
Traceback (most recent call last):
File "/usr/bin/heat", line 10, in <module>
sys.
File "/usr/lib/
HeatShell(
File "/usr/lib/
args.
File "/usr/lib/
utils.
File "/usr/lib/
for o in objs:
File "/usr/lib/
stacks = self._list(url, 'stacks')
File "/usr/lib/
body = self.client.
File "/usr/lib/
return self.request(url, 'GET', **kwargs)
File "/usr/lib/
raise exc.from_
heatclient.
tags: | added: sts |
Changed in heat: | |
importance: | Undecided → Medium |
summary: |
- unicode error when using old unicode non uuid style user id + [SRU] unicode error when using old unicode non uuid style user id |
description: | updated |
tags: | added: sts-sru-neede |
tags: |
added: sts-sru-needed removed: sts-sru-neede |
Changed in heat: | |
milestone: | none → no-priority-tag-bugs |
Changed in heat (Ubuntu): | |
importance: | Undecided → High |
status: | New → Fix Released |
Changed in heat (Ubuntu Xenial): | |
importance: | Undecided → High |
Changed in heat (Ubuntu Artful): | |
importance: | Undecided → High |
Changed in heat (Ubuntu Bionic): | |
importance: | Undecided → High |
Changed in heat (Ubuntu Xenial): | |
status: | New → Triaged |
Changed in heat (Ubuntu Artful): | |
status: | New → Triaged |
Changed in heat (Ubuntu Bionic): | |
status: | New → Triaged |
tags: |
added: sts-sru-done removed: sts-sru-needed |
Fix proposed to branch: master /review. openstack. org/559195
Review: https:/