Issue (or not?) with id/timezone in facts using Windows 7 (french) + Puppet Agent + Foreman :/

Hi everyone,
I'm working with puppet agent on Windows 7 with french culture.

When I am on the host list, I've got an error report by foreman. In
reports, I can find this message :

Could not retrieve catalog from remote server: Error 400 on SERVER: Failed
when searching for node rhozet01: Failed to find rhozet01 via exec:
Execution of '/etc/puppet/node.rb rhozet01' returned 1:

If I execute this command manually, I've got the following message :

Could not generate facts for Foreman: "\x8A" from ASCII-8BIT to UTF-8

If I have a look to rhozet01 facts, I can found some binary field :

— !ruby/object:Puppet::Node::Facts
name: rhozet01
values:
dir: "C:\x5cProgram Files (x86)\x5cPuppet Labs\x5cPuppet\x5cfacter"
env_windows_installdir: "C:\x5cProgram Files (x86)\x5cPuppet
Labs\x5cPuppet"
architecture: x64
kernel: windows
macaddress: "80:EE:73:5C:85:AE"
osfamily: windows
operatingsystem: windows
facterversion: "1.7.5"
hardwaremodel: x64
hostname: RHOZET01
id: !binary "YXV0b3JpdGUgbnRcc3lzdIptZQ==\n"

… rubyversion: "1.9.3"
timezone: !binary "VGVtcHMgdW5pdmVyc2VsIGNvb3Jkb25u6Q==\n"
uptime: "71 days"

If I change "id" and "timezone" value with non-binary data, it's ok… but
it's just a workaround. Each time fact are regenerate, the problem come
back. It's seems that the problem is link to ruby/rake with some specials
characters.

Do you know how to fix that definitely?

Thank you!!!

(and sorry for my bad english )

Mhhhhhh… the issue come from Windows timezone sent by puppet. The
timezone have the word "heure d'été" that's is not cool.

Any Idea for the solution ?

··· On Friday, October 3, 2014 4:09:43 PM UTC+2, Romain Dary wrote: > > Hi everyone, > I'm working with puppet agent on Windows 7 with french culture. > > When I am on the host list, I've got an error report by foreman. In > reports, I can find this message : > > Could not retrieve catalog from remote server: Error 400 on SERVER: Failed > when searching for node rhozet01: Failed to find rhozet01 via exec: > Execution of '/etc/puppet/node.rb rhozet01' returned 1: > > If I execute this command manually, I've got the following message : > > Could not generate facts for Foreman: "\x8A" from ASCII-8BIT to UTF-8 > > > If I have a look to rhozet01 facts, I can found some binary field : > > --- !ruby/object:Puppet::Node::Facts > name: rhozet01 > values: > dir: "C:\x5cProgram Files (x86)\x5cPuppet Labs\x5cPuppet\x5cfacter" > env_windows_installdir: "C:\x5cProgram Files (x86)\x5cPuppet > Labs\x5cPuppet" > architecture: x64 > kernel: windows > macaddress: "80:EE:73:5C:85:AE" > osfamily: windows > operatingsystem: windows > facterversion: "1.7.5" > hardwaremodel: x64 > hostname: RHOZET01 > id: !binary "YXV0b3JpdGUgbnRcc3lzdIptZQ==\n" > > ... rubyversion: "1.9.3" > timezone: !binary "VGVtcHMgdW5pdmVyc2VsIGNvb3Jkb25u6Q==\n" > uptime: "71 days" > > > If I change "id" and "timezone" value with non-binary data, it's ok... but > it's just a workaround. Each time fact are regenerate, the problem come > back. It's seems that the problem is link to ruby/rake with some specials > characters. > > Do you know how to fix that definitely? > > Thank you!!! > > (and sorry for my bad english ) > >