[SRU] Fixing UUID coerce function for unicode non uuid form
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
Fix Released
|
Undecided
|
Unassigned | ||
Mitaka |
Won't Fix
|
High
|
Unassigned | ||
Ocata |
Fix Released
|
High
|
Unassigned | ||
Pike |
Fix Released
|
High
|
Unassigned | ||
Queens |
Fix Released
|
Undecided
|
Unassigned | ||
oslo.versionedobjects |
Fix Released
|
Undecided
|
Unassigned | ||
python-oslo.versionedobjects (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Xenial |
Won't Fix
|
High
|
Unassigned | ||
Artful |
Fix Released
|
High
|
Unassigned | ||
Bionic |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
In Kilo, with ldap integrated, user_id can have non uuid format ( e.g. Gāo )
Then after upgrading kilo to mitaka ( in trusty env )
Gāo user can't create cinder volume with unicode error.
Affected Xenial, UCA Mitaka ( this is modified after i re-testing all )
Please refer to error code like below [1]
[Test Case]
1. deploy openstack env
2. source novarc ( as admin )
3. keystone user-create --name 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
8. source novarc ( as test )
9. cinder create --name test 1
got unicode error on cinder-api node logs
[Regression Potential]
This patch make code handles unicode non uuid form user id. Basically this has little risk. but cinder-api service need to be restarted.
[Others]
[1] ###########
2018-03-14 10:58:56.932 2198 ERROR cinder.
2018-03-14 10:58:56.932 2198 ERROR cinder.
2018-03-14 10:58:56.932 2198 ERROR cinder.
2018-03-14 10:58:56.932 2198 ERROR cinder.
2018-03-14 10:58:56.932 2198 ERROR cinder.
2018-03-14 10:58:56.932 2198 ERROR cinder.
2018-03-14 10:58:56.932 2198 ERROR cinder.
2018-03-14 10:58:56.932 2198 ERROR cinder.
2018-03-14 10:58:56.932 2198 ERROR cinder.
2018-03-14 10:58:56.932 2198 ERROR cinder.
2018-03-14 10:58:56.932 2198 ERROR cinder.
2018-03-14 10:58:56.932 2198 ERROR cinder.
2018-03-14 10:58:56.932 2198 ERROR cinder.
2018-03-14 10:58:56.932 2198 ERROR cinder.
2018-03-14 10:58:56.932 2198 ERROR cinder.
2018-03-14 10:58:56.932 2198 ERROR cinder.
2018-03-14 10:58:56.932 2198 ERROR cinder.
2018-03-14 10:58:56.932 2198 ERROR cinder.
2018-03-14 10:58:56.932 2198 ERROR cinder.
2018-03-14 10:58:56.932 2198 ERROR cinder.
2018-03-14 10:58:56.932 2198 ERROR cinder.
Changed in oslo.versionedobjects: | |
assignee: | nobody → Seyeong Kim (xtrusia) |
status: | New → In Progress |
tags: | added: sts |
description: | updated |
description: | updated |
summary: |
- Fixing UUID coerce function for unicode non uuid form + [SRU] Fixing UUID coerce function for unicode non uuid form |
Changed in python-oslo.versionedobjects (Ubuntu Xenial): | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in python-oslo.versionedobjects (Ubuntu Artful): | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in python-oslo.versionedobjects (Ubuntu Bionic): | |
importance: | Undecided → High |
Changed in oslo.versionedobjects: | |
assignee: | Seyeong Kim (xtrusia) → nobody |
Changed in python-oslo.versionedobjects (Ubuntu Bionic): | |
assignee: | Seyeong Kim (xtrusia) → nobody |
description: | updated |
tags: |
added: sts-sru-done removed: sts-sru-needed |
Changed in cloud-archive: | |
status: | Fix Committed → Fix Released |
Reviewed: https:/ /review. openstack. org/557778 /git.openstack. org/cgit/ openstack/ oslo.versionedo bjects/ commit/ ?id=b1d0b5d886a fef8c08330bf3c2 291e180aa1f534
Committed: https:/
Submitter: Zuul
Branch: master
commit b1d0b5d886afef8 c08330bf3c2291e 180aa1f534
Author: Seyeong Kim <email address hidden>
Date: Thu Mar 29 10:03:51 2018 -0700
Fixing UUID coerce function for unicode non uuid form
If we use non uuid unicode user id in py27 env,
unicode error pop up when function is called.
Closes-bug: #1760918
Change-Id: Ic6b6308fb1960e c40407e6efde301 37b64543e72