Ah I get it now.

It's a bug in
https://github.com/theforeman/foreman_default_hostgroup/blob/develop/lib/default_hostgroup_base_host_patch.rb#L66
where it expects "reports" to be present

2017-04-17 11:48:26 e3962d8a [app] [D] undefined local variable or
method `reports' for #<Host::Discovered:0x0000000c8dc078>
 | 
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activemodel-4.2.5.1/lib/active_model/attribute_methods.rb:433:in
`method_missing'
 | 
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_default_hostgroup-4.0.0/lib/default_hostgroup_base_host_patch.rb:66:in
`host_new_or_forced?'
 | 
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_default_hostgroup-4.0.0/lib/default_hostgroup_base_host_patch.rb:16:in
`import_facts_with_match_hostgroup'
 | 
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_discovery-8.0.0/app/models/host/discovered.rb:75:in
`import_facts'
 | 
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_discovery-8.0.0/app/models/host/discovered.rb:67:in
`import_host'

I'd like to ask Greg to take a look, he has experience with both
plugins. I am not available for the whole next week.


On Wed, Apr 19, 2017 at 5:12 PM, 'Konstantin Orekhov' via Foreman users <
foreman-users@googlegroups.com> wrote:

> There are several occurrences of "unprocessible entry" in a log that
> correspond to agent's attempts to register a newly discovered system. That
> results in "invalid/unknown reports" errors seen in both logs. That is the
> same one that disappears after first 5 minutes so system is eventually able
> to finish registration.
>
> Thanks!
> Konstantin.
>
> On Apr 19, 2017, at 02:05, Lukas Zapletal <l...@redhat.com> wrote:
>
> Hey, unfortunately I do not see "Unable to get facts from proxy" in your
> log at all.
>
> LZ
>
> On Mon, Apr 17, 2017 at 9:25 PM, 'Konstantin Orekhov' via Foreman users <
> foreman-users@googlegroups.com> wrote:
>
>> Sorry for a delay - please see production.log and corresponding host.log
>> here https://gist.github.com/korekhov/c691c40dbe8ac61eadd2ebb8d395559c
>>
>> I was working on mac248a078b7886 specifically here - removed it from
>> discovered hosts first, then booted into discovery OS that started Foreman
>> proxy.
>>
>> Thanks!
>>
>> Konstantin Orekhov
>>
>>
>> ------------------------------
>> *From:* Lukas Zapletal <l...@redhat.com>
>> *To:* Foreman users <foreman-users@googlegroups.com>
>> *Sent:* Monday, April 10, 2017 1:04 AM
>> *Subject:* Re: [foreman-users] Re: Occasional ERF50-7522 on facts_refresh
>>
>> Hello,
>>
>> unfortunately due to bug, root exception is swallowed so I can't tell
>> what is wrong. Can you manually apply this patch on your instance and
>> retest, send me production.log again.
>>
>> https://github.com/theforeman/foreman_discovery/pull/338
>>
>> It's oneliner, exception block only. LZ
>>
>> On Fri, Apr 7, 2017 at 8:36 PM, 'Konstantin Orekhov' via Foreman users <
>> foreman-users@googlegroups.com> wrote:
>>
>>
>> Do you have some extra plugins installed? Like OpenSCAP? I cannot
>> reproduce here.
>>
>>
>>
>> List of installed plug-ins:
>>
>> <https://lh3.googleusercontent.com/-faxAApAlmzo/WOfWvMSrgqI/AAAAAAAAADo/VgTdnjRVLGA-UdqI4gsJL41jNs6NyiegACLcB/s1600/Screen%2BShot%2B2017-04-07%2Bat%2B10.56.38%2BAM.png>
>>
>> This Foreman is an upgraded 1.14.1. I did not run foreman-installer after
>> the upgrade. Would it make sense for me to try that? The reason I'm
>> doubtful is that "undefined local variable or method `reports'" error
>> comes from agent to Foreman when the latter asks for the facts. However,
>> the issue magically disappears after first 3-5 minutes.
>>
>>
>>
>> There should be full trace in logs, I don't know why you don't have
>> it. Have you deleted it, Can you increase logging to DEBUG?
>>
>>
>> Gists with debug log level on Foreman side and a host discover process
>> logs are:
>>
>> https://gist.github.com/ korekhov/ 91472cdb225da5cb631162e2e9274d e9
>> <https://gist.github.com/korekhov/91472cdb225da5cb631162e2e9274de9>
>>
>> https://gist.github.com/ korekhov/ 8b8931d95e696ab545f9385c6b465b 9f
>> <https://gist.github.com/korekhov/8b8931d95e696ab545f9385c6b465b9f>
>>
>> Please let me know if I can provide more data.
>>
>> --
>> 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
>> <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
>> <https://groups.google.com/group/foreman-users>.
>> For more options, visit https://groups.google.com/d/ optout
>> <https://groups.google.com/d/optout>.
>>
>>
>>
>>
>> --
>> Later,
>>   Lukas @lzap Zapletal
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Foreman users" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/foreman-users/XzT9iEhpjRg/unsubscribe.
>> To unsubscribe from this group and all its topics, 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.
>>
>>
>> --
>> 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.
>>
>
>
>
> --
> Later,
>   Lukas @lzap Zapletal
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Foreman users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/foreman-users/XzT9iEhpjRg/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>
> --
> 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.
>



-- 
Later,
  Lukas @lzap Zapletal

-- 
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