Re: [PATCH 0/2] Locales fixes

Chuck Lever <[email protected]> Tue, 14 Oct 2025 17:35:47 -0400
Newsgroups dev.linux.lists.kdevops
Message-ID <[email protected]>
On 10/14/25 2:02 PM, Daniel Gomez wrote:
> 
> On Mon, 29 Sep 2025 21:04:11 +0200, Daniel Gomez wrote:
>> This drops locales-all from devconfig playbook and make en-US.UTF tasks
>> distro agnostic. While at it, also fix guest image permissions when the
>> base image is not copied and ensure idempotency with permissions.
>>
>> Note, the locales-all was in the wrong location (before removing
>> unattended-install Debian package) provoking the apt concurrency issue
>> (logs below) and not needed for en_US-UTF locale configuration added in
>> commit 2514a694 ("guestfs: fix locale warnings in VM deployment").
>>
>> [...]
> 
> Applied, thanks!
> 
> [1/2] devconfig: drop locales-all leftovers
>       (no commit info)
> [2/2] base_image: ensure base image permissions are set
>       (no commit info)
> 
> Best regards,


Hi Daniel!

I'm seeing this on Fedora 41 with guestfs:

TASK [devconfig : Configure en_US.UTF-8 locale files]
******************************************************************************************
changed: [kdevops-nfsd] => (item={'path': '/etc/default/locale', 'line':
'LANG=en_US.UTF-8'})
changed: [kdevops-nfsd] => (item={'path': '/etc/default/locale', 'line':
'LANGUAGE=en_US:en'})
changed: [kdevops-nfsd] => (item={'path': '/etc/locale.gen', 'line':
'en_US.UTF-8 UTF-8'})
 [started TASK: devconfig : Generate and update locales on kdevops-nfsd]

TASK [devconfig : Generate and update locales]
*************************************************************************************************
task path:
/home/cel/src/kdevops/buildbot-configs/playbooks/roles/devconfig/tasks/main.yml:93
fatal: [kdevops-nfsd]: FAILED! => {
    "changed": true,
    "cmd": "locale-gen en_US.UTF-8\nupdate-locale LANG=en_US.UTF-8\n",
    "delta": "0:00:00.003794",
    "end": "2025-10-14 17:30:14.766094",
    "rc": 127,
    "start": "2025-10-14 17:30:14.762300"
}

STDERR:

/bin/sh: line 1: locale-gen: command not found
/bin/sh: line 2: update-locale: command not found


MSG:

non-zero return code


Neither of those commands appears in the Fedora 41 package inventory.


-- 
Chuck Lever