LANG is explicitly set to C, but some services (like glance) want to read files with utf8 characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
New
|
Undecided
|
Unassigned | ||
devstack |
Fix Released
|
Undecided
|
Sean Dague |
Bug Description
glance-manage throws errors under the python3.5 job because it attempts to open and read a file with utf8 characters in it, but devstack has hard set LANG=C.
ERROR glance.
This only happens under python3 because python3 open() will refer to locale.
Devstack sets LANG=C at:
https:/
Example job run where this happens:
http://
One thing that makes this tricky is that open() under python2 doesn't take an encoding while open() under python3 does. Easy enough to handle this in code but maybe we should try and get six to address this?
Also worth noting that the infra test nodes should have a locale of C.utf8 or C.UTF-8, but these locales are apparently (not yet) universal.
Considering that devstack wants to enforce and ascii locale the simplest option here may just be to remove the utf8 characters from the metadata json files. '®' and '–' are the two characters which can be replaced with '(R)' and '-'.
Changed in devstack: | |
assignee: | Clark Boylan (cboylan) → Sean Dague (sdague) |
Fix proposed to branch: master /review. openstack. org/473919
Review: https:/