Error 400 in agents execution after use Import from puppetmaster

Hi all,

I'm facing a problem with my Foreman environment
CentOS 6.5, Foreman 1.4.2, Puppet 3.4.3

Every time we have to use the "Import from form puppetmaster" button and it
detects a change that we made (doesn't matter what, add, update or delete
any class) all of our hosts get in "Out of Sync" status

Debugging it, we noted that the error is not related to an specific class
when you run puppet agent multiple times (without perform any change) we
get the same error with different classes like:

Could not retrieve catalog from remote server: Error 400 on SERVER: Could
not retrieve apache::log_dir for

Could not retrieve catalog from remote server: Error 400 on SERVER: Could
not retrieve firewall::ensure for

It come back to work after restart httpd a few times.
Does anyone know how to solve this problem?

Thanks,
Renato Armani

Into the production log I just found

error detected, checking if we need to send an email alert

^[[1m^[[36mSetting Load (0.6ms)^[[0m ^[[1mSELECT "settings".* FROM
"settings" WHERE "settings"."name" = 'failed_report_email_notification'
ORDER BY name LIMIT 1^[[0m

And I detected that the same error is happening with different classes when
I run multiple puppet master at the same time.

Any tip?

Regards,
Renato Armani

··· Em quarta-feira, 2 de abril de 2014 15h45min11s UTC-3, Renato Armani escreveu: > > Hi all, > > I'm facing a problem with my Foreman environment > CentOS 6.5, Foreman 1.4.2, Puppet 3.4.3 > > Every time we have to use the "Import from form puppetmaster" button and > it detects a change that we made (doesn't matter what, add, update or > delete any class) all of our hosts get in "Out of Sync" status > > Debugging it, we noted that the error is not related to an specific class > when you run puppet agent multiple times (without perform any change) we > get the same error with different classes like: > > Could not retrieve catalog from remote server: Error 400 on SERVER: Could > not retrieve apache::log_dir for > > Could not retrieve catalog from remote server: Error 400 on SERVER: Could > not retrieve firewall::ensure for > > It come back to work after restart httpd a few times. > Does anyone know how to solve this problem? > > Thanks, > Renato Armani > > >

The problem was solved.

A few weeks ago we installed the foreman_custom_parameters plugin and we
added into /etc/puppet/puppet.conf:

data_binding_terminus = foreman

After removing it from puppet.conf the problem was gone.

We didn't find the reason but is fix.

Someone has a guess?

Cheers,
Renato Armani

··· 2014-04-03 12:53 GMT-03:00 Renato Armani :

Into the production log I just found

error detected, checking if we need to send an email alert

^[[1m^[[36mSetting Load (0.6ms)^[[0m ^[[1mSELECT “settings”.* FROM
"settings" WHERE “settings”.“name” = 'failed_report_email_notification’
ORDER BY name LIMIT 1^[[0m

And I detected that the same error is happening with different classes
when I run multiple puppet master at the same time.

Any tip?

Regards,
Renato Armani

Em quarta-feira, 2 de abril de 2014 15h45min11s UTC-3, Renato Armani > escreveu:

Hi all,

I’m facing a problem with my Foreman environment
CentOS 6.5, Foreman 1.4.2, Puppet 3.4.3

Every time we have to use the “Import from form puppetmaster” button and
it detects a change that we made (doesn’t matter what, add, update or
delete any class) all of our hosts get in “Out of Sync” status

Debugging it, we noted that the error is not related to an specific class
when you run puppet agent multiple times (without perform any change) we
get the same error with different classes like:

Could not retrieve catalog from remote server: Error 400 on SERVER: Could
not retrieve apache::log_dir for

Could not retrieve catalog from remote server: Error 400 on SERVER: Could
not retrieve firewall::ensure for

It come back to work after restart httpd a few times.
Does anyone know how to solve this problem?

Thanks,
Renato Armani


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.