Bug 1659839

Summary: Deployment fails at keystone_init_tasks with ascii codec error
Product: Red Hat OpenStack Reporter: PURANDHAR SAIRAM MANNIDI <pmannidi>
Component: puppet-keystoneAssignee: Emilien Macchi <emacchi>
Status: CLOSED EOL QA Contact: Marius Cornea <mcornea>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 12.0 (Pike)CC: cjeanner, dhill, emacchi, jjoyce, jschluet, peli, sbaker, slinaber, tvignaud
Target Milestone: asyncKeywords: Triaged, ZStream
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-11 16:26:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description PURANDHAR SAIRAM MANNIDI 2018-12-17 00:03:01 UTC
Description of problem:
Deployment fails at keystone_init_tasks  with ascii codec error

"Error: Failed to apply catalog: Execution of '/usr/bin/openstack project list --quiet --format csv --long' returned 1: 'ascii' codec can't encode character u'\\u1ea3' in position 2: ordinal not in range"

openstack project list --quiet --format csv --long is working fine after upgrading to latest python-cliff package but still deployment fails, suspecting puppet-keystone.

Version-Release number of selected component (if applicable):
Red Hat OpenStack Platform 12

How reproducible:

Steps to Reproduce:
1. Have UTF-8 language characters in the description of openstack project
2. deployment fails with the above error

Actual results:
Deployment fails

Expected results:
Deployment should succeed and proceed

Additional info:

Comment 2 Steve Baker 2018-12-17 03:01:49 UTC
When running a container manually with the image I can replicate this issue if LC_ALL or LANG are set to something which doesn't include UTF-8, so these commands fail:
LANG=C openstack project list --format csv --long
LC_ALL=C openstack project list --format csv --long
LANG=en_US openstack project list --format csv --long

but this command works:
LANG=en_US.UTF-8 openstack project list --format csv --long

I think docker-puppet.py is being invoked without a UTF-8 LANG value set, I'll see if this has been fixed in later releases