Saturday, 2024-09-28

SvenKmhm, regarding the centos/rocky locale error, I see we don't log in `system_configs` /etc/locale? that can't be, can it? I'm sure I'm overlooking somethign09:46
SvenKokay, LANG is logged here: https://zuul.opendev.org/t/openstack/build/77b1856c71f04541ab72ea9f8e16745c/log/zuul-info/host-info.primary.yaml#19009:47
SvenKnot sure LANG: C.UTF-8 is a good default :-/ but it depends on the software.09:48
SvenKthis is the code path that errors: https://github.com/ansible/ansible/blob/3d40db1ac07ae65cdae0a72e746308f8d2b34bc1/lib/ansible/cli/__init__.py#L5210:08
SvenKonly thing I can think of is the well known fact that locale.setlocale() is not thread safe, but I have no clue if there could multiprocessing involved here: https://docs.python.org/3/library/locale.html#locale.setlocale10:11
SvenKthe actual error is thrown here (why am I looking at cpython code anyway?): https://github.com/python/cpython/blob/3.12/Modules/_localemodule.c#L13210:23
Clark[m]SvenK I'm not sure C.utf8 is available on our images per my earlier image build inspection and discussion. I suggested earlier that you may be hard coding a locale that isn't available and that would seem to be the case?16:01
Clark[m]As mentioned I think we can add C.utf8 and that it is only missing because I suspect centos7 didn't support it. But also you probably shouldn't hardcode this stuff on an Ansible level and instead only when running specific commands that are locale sensitive?16:02
Clark[m]https://opendev.org/openstack/diskimage-builder/src/branch/master/diskimage_builder/elements/yum-minimal/root.d/08-yum-chroot#L328 is the image build but that needs updating I think16:05

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!