Puppet: System Administration Automated

Support

Ticket #595 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

puppet choke on non english LANG settings

Reported by: puppet Assigned to: mpalmer
Priority: normal Milestone:
Component: server Version: 0.22.3
Severity: normal Keywords: puppet facter lang
Cc: Triage Stage: Accepted
Attached Patches: None Complexity: Trivial

Description

i got a little idea there,

should not puppet use environement LANG=C when managing facts or packages etc... ?

i have LANG=fr_FR.UTF-8

and puppet choke on quite a few facts (erors messages with uname for exemple: Pour en savoir davantage, faites: « uname --help ». ) and also with packages updates :

/usr/bin/apt-cache policy mysql-client-4.1 => err: Package[mysql-client-4.1](provider=apt): Could not find latest version err: Package[mysql-client-4.1](provider=apt): Could not find latest version err: Package[mysql-client-4.1](provider=apt): Could not find latest version

just fails in puppet but works on command line.

when doing setenv LANG C it then works. What do you think ?

regards, Ghislain.

Change History

04/18/07 21:24:29 changed by ajax

  • complexity changed from Unknown to Trivial.
  • stage changed from Unreviewed to Needs design decision.

Setting LANG=C should take care of it until we internationalize/localize.

04/18/07 22:15:04 changed by DavidS

This has nothing to do with puppet's i18n/l10n. As long as puppet has to parse some command output, LANG should be set to C for each call to avoid such surprises.

04/19/07 08:38:35 changed by mpalmer

  • owner changed from luke to mpalmer.
  • status changed from new to assigned.
  • stage changed from Needs design decision to Accepted.

I think this is a fantastic idea. The best place to put the env change would probably be in the exec/system wrapper(s) that everything does/should use. As Russ Allbery noted, though, I think it should be LC_ALL=C rather than LANG=C, although going nuts and setting both of them might be an idea (I vaguely recall some apps that only looked at LANG).

05/03/07 06:40:02 changed by mpalmer

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in [2456].