]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: work around pip failure on some envs 54397/head
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 7 Nov 2023 17:32:45 +0000 (12:32 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 7 Nov 2023 18:39:08 +0000 (13:39 -0500)
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 <jmulligan@redhat.com>
src/cephadm/build.py

index 87d990e72a3565d24ab373acd8befd18b125afaf..122767a8ecc855185e2db6b0c2c3b120b01a1b38 100755 (executable)
@@ -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: