Package: vmdb2 Version: 0.26-2 Severity: important Tags: patch -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Hi, I recently started to receive errors when building images using the ansible directive: DEBUG STDERR: ERROR: Ansible requires the locale encoding to be UTF-8; Detected None. There is a check in /usr/lib/python3/dist-packages/ansible/cli/__init__.py in initialize_locale() to ensure that the locale is an UTF-8 locale. However, the vmdb2 ansible plugin runs ansible-playbook via vmdb.runcmd() and this sets LC_ALL to "C", thus the ansible test is failing. Unfortunately, there is no way for the user to override this. The quick and easy solution would be to set: env["LC_ALL"] = "C.UTF-8" in vmdb/runcmd.py in runcmd(). Please consider fixing this for Bookworm, otherwise using ansible will be broken. Regards, Daniel - -- System Information: Debian Release: 12.0 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.1.0-5-amd64 (SMP w/20 CPU threads; PREEMPT) Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages vmdb2 depends on: ii cmdtest 0.32.14.gcdfe14e-5 ii debootstrap 1.0.128+nmu2 hi e2fsprogs 1.46.6-1 ii kpartx 0.9.4-3 ii parted 3.5-3 ii python3 3.11.2-1 ii python3-jinja2 3.1.2-1 ii python3-yaml 6.0-3+b2 ii qemu-utils 1:7.2+dfsg-4 Versions of packages vmdb2 recommends: ii ansible 7.3.0+dfsg-1 ii dosfstools 4.2-1 ii qemu-user-static 1:7.2+dfsg-4 vmdb2 suggests no packages. - -- no debconf information - -- debsums errors found: debsums: changed file /usr/lib/python3/dist-packages/vmdb/runcmd.py (from vmdb2 package) -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEvu1N7VVEpMA+KD3HS80FZ8KW0F0FAmQD/o4ACgkQS80FZ8KW 0F1aoBAA2WFaRlX6pW+BNWTx+sc5MPnIh4rrK6yvWpwX0Mb0IDfFnSezlz64HHaj MHT8mI7mdD2wpEuHyUF6jxD/7IzAIyd4L3yaUV2d7pYjL3IDfeLa6GqKRYhthfiF UtSLuy2Q4kUnfllWxOC7Y3BUd5sAVcw/L+dwoEQKwjz0XAHLPMq1A9gHvZlt5pcX g03dvIimobNzeELvOY4Caa2CpfVxIRkVIaSz/s99qE9p0jPgD8LDhg4oJfF3migv VTCb6k3g/bHgyuUI0h8GWEre4J/B+H7DPfVFb3p+av5p3fI1PhgsD6Tk+U5m7OJm nR+R0zmCTnzT5YxS45TLeSFJJ5Yq34ae6jKASup3s6UIVM288ALDgSNm18+akjdo E50hwBH2mMGkKfqcg15MkNOc3XWJFGT9g4ymXP/lmwnucHcPIvqfl8Bjy5m0RPfg Z3F4BwkmE83NcF6v7L1MK/YogjeRC7EO85Xsb1puuUBER2ripIj6d2c7HzpEHuAr PqxSTIhVjBFDItINnNqY6Cd6PBbcfxkUGIBbKUEOSOJTVTIBC+baj76JzrhR92G7 rCNgQNVk+FOm4Ysau4/Qawnex0xivNvnqQUt5RR5vxv0msokoXGWI9ZUCCqGhCKc 63mspc20+PP2xvLsGjQ34ye5JnrWgjhrGIp6UQhNksPqTxPke4M= =ZE4q -----END PGP SIGNATURE-----