Issue with some hosts facts after upgrade to Foreman 1.5

Hi,

We have upgrade to Foreman 1.5 (Puppet 3.4 and Facter 2)
The database has been updated, node.rb and foreman.rb

Everything is working fine for 95% of the hosts, they get their manifests,
reports and facts are avalaible in Foreman.

But for almost 5% of hosts, we have an error on the ENC call.
The report says the ENC script returned 1.
When we use the ENC script directly we have the following error :

Could not generate facts for Foreman: syntax error on line 34, col 14: `
!binary ? "Z2F0ZXdheV9jb25uZXhpb24gYXUgcoJzZWF1IGxvY2Fs\n"'

I check the line 34 it's about the puppet user …
Don't know how to have some debug or more verbose thing.

Anyone any idea or help ?

Thanks,

Cédric

Hey,

the first thing you can do is to visit the host and click on YAML button
to see what Foreman hands over to your ENC script actually.

Then check the YAML syntax with some validator.

LZ

··· On Fri, Jun 13, 2014 at 02:48:06PM +0200, Cédric Dupont wrote: > Hi, > > We have upgrade to Foreman 1.5 (Puppet 3.4 and Facter 2) > The database has been updated, node.rb and foreman.rb > > Everything is working fine for 95% of the hosts, they get their manifests, > reports and facts are avalaible in Foreman. > > But for almost 5% of hosts, we have an error on the ENC call. > The report says the ENC script returned 1. > When we use the ENC script directly we have the following error : > > Could not generate facts for Foreman: syntax error on line 34, col 14: ` > !binary ? "Z2F0ZXdheV9jb25uZXhpb24gYXUgcoJzZWF1IGxvY2Fs\n"' > > > I check the line 34 it's about the puppet user ... > Don't know how to have some debug or more verbose thing. > > Anyone any idea or help ? > > Thanks, > > Cédric > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman