From: John Mulligan Date: Tue, 7 Nov 2023 17:32:45 +0000 (-0500) Subject: cephadm: work around pip failure on some envs X-Git-Tag: v19.0.0~125^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=24882deb0264401dba49b10fd3474d5944674961;p=ceph.git cephadm: work around pip failure on some envs Work around an encoding/locale issue when the dashboard tests are run (ubuntu 20.04). The build.py changes brought in a9d1c62ca86 were validated for package builds, teuthology, and other CI jobs but a different error was masking this failure in the dashboard ci job. Signed-off-by: John Mulligan --- diff --git a/src/cephadm/build.py b/src/cephadm/build.py index 87d990e72a356..122767a8ecc85 100755 --- a/src/cephadm/build.py +++ b/src/cephadm/build.py @@ -190,6 +190,7 @@ def _install_deps(tempdir, config): env = os.environ.copy() env['CC'] = '/bin/false' env['CXX'] = '/bin/false' + env['LC_ALL'] = 'C.UTF-8' # work around some env issues with pip if env.get('PYTHONPATH'): env['PYTHONPATH'] = env['PYTHONPATH'] + f':{tempdir}' else: