You forgot the question mark, did you? Or maybe I did in the previous 
> mail, anyway its really this: 
>
> respond_to?(:reports) 
>
>
I don't think so, but I just repeated the patching just in case:

# diff 
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_default_hostgroup-4.0.0/lib/default_hostgroup_base_host_patch.rb
 
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_default_hostgroup-4.0.0/lib/default_hostgroup_base_host_patch.rb-orig
66c66
<       unless new_host && hostgroup.nil? && respond_to?(:reports) && 
reports.empty?
---
>       unless new_host && hostgroup.nil? && reports.empty?

However, instead of a httpd reload, I did a full restart this time around 
and it made all the difference and now I see *new* clients registering on a 
first try. Previously discovered hosts, if rebooted into discovery OS, get 
the following responses from Foreman:

<snip>

Discovered by URL: spc.vip
Registering host with Foreman (spc.vip)
Could not send facts to Foreman: undefined method `+' for nil:NilClass
Fact cache invalid, reloading to foreman
<snip>

This error, unlike before patching one, does not prevent facts refresh from 
Foreman though, but also this error does not seem to go away - waited for more 
than 15 minutes so far and it is still there on every attempt client makes to 
send a register payload. If you have any suggestions to try for the above, I'll 
try it out.

I'll do more watching on this front and report issues if found.


Thanks!

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to