summaryrefslogtreecommitdiffstats
path: root/src/cephadm/build.py
diff options
context:
space:
mode:
authorJohn Mulligan <jmulligan@redhat.com>2023-11-07 18:32:45 +0100
committerJohn Mulligan <jmulligan@redhat.com>2023-11-07 19:39:08 +0100
commit24882deb0264401dba49b10fd3474d5944674961 (patch)
treebf5b721446e2177d40043d3ecb232792d869a5a8 /src/cephadm/build.py
parentMerge pull request #54178 from leonid-s-usov/balance-after-stop (diff)
downloadceph-24882deb0264401dba49b10fd3474d5944674961.tar.xz
ceph-24882deb0264401dba49b10fd3474d5944674961.zip
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 <jmulligan@redhat.com>
Diffstat (limited to 'src/cephadm/build.py')
-rwxr-xr-xsrc/cephadm/build.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cephadm/build.py b/src/cephadm/build.py
index 87d990e72a3..122767a8ecc 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: