Error during puppet run, but hosts still appear in OK state

Hi, we entered in pretty strange situation with not relevant report status.
We are using exported resources to grab passwords from ldap, and if user is
deleted from ldap, but remains in manifest - puppet run is unsuccessful
with the following error:

err Puppet Could not retrieve catalog; skipping run
notice Puppet Using cached catalog
err Puppet Could not retrieve catalog from remote server: Error 400 on
SERVER: undefined method `[]' for nil:NilClass at
/etc/puppet/modules/users/manifests/useraccount.pp:20 on node *****.com

but from Foreman side hosts remains in green state.
Is it ok? Cause it does not look like =)

Thanks in advance.

> Hi, we entered in pretty strange situation with not relevant report status.
> We are using exported resources to grab passwords from ldap, and if user
> is deleted from ldap, but remains in manifest - puppet run is unsuccessful
> with the following error:
>
> err Puppet Could not retrieve catalog; skipping run
> notice Puppet Using cached catalog
> err Puppet Could not retrieve catalog from remote server: Error 400 on
> SERVER: undefined method `[]' for nil:NilClass at
> /etc/puppet/modules/users/manifests/useraccount.pp:20 on node *****.com
>
> but from Foreman side hosts remains in green state.
> Is it ok? Cause it does not look like =)
>
> Thanks in advance
>

which version of puppet is it? if its older than 2.6.5 then the client does
not send a report on such failures.

Ohad

··· On Wed, Jan 2, 2013 at 5:08 PM, Andrei Burd wrote:

.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/foreman-users/-/T9XG-LYMKgYJ.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.

Great tip, thanks!

··· On Wednesday, January 2, 2013 9:35:30 PM UTC+2, ohad wrote: > > > > > On Wed, Jan 2, 2013 at 5:08 PM, Andrei Burd <burda...@gmail.com > > wrote: > >> Hi, we entered in pretty strange situation with not relevant report >> status. >> We are using exported resources to grab passwords from ldap, and if user >> is deleted from ldap, but remains in manifest - puppet run is unsuccessful >> with the following error: >> >> err Puppet Could not retrieve catalog; skipping run >> notice Puppet Using cached catalog >> err Puppet Could not retrieve catalog from remote server: Error 400 on >> SERVER: undefined method `[]' for nil:NilClass at >> /etc/puppet/modules/users/manifests/useraccount.pp:20 on node *****.com >> >> but from Foreman side hosts remains in green state. >> Is it ok? Cause it does not look like =) >> >> Thanks in advance >> > > which version of puppet is it? if its older than 2.6.5 then the client > does not send a report on such failures. > > Ohad > >> . >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/foreman-users/-/T9XG-LYMKgYJ. >> To post to this group, send email to forema...@googlegroups.com >> . >> To unsubscribe from this group, send email to >> foreman-user...@googlegroups.com . >> For more options, visit this group at >> http://groups.google.com/group/foreman-users?hl=en. >> > >