Hey, Greg is at Red Hat Summit this week, in the meantime uninstall
the foreman_default_hostgroup or disable it or something. Or apply a
dirty patch on the line 66:

unless new_host && hostgroup.nil? && reports.empty?

change to

unless new_host && hostgroup.nil? && !respond_to(:reports) && reports.empty?

On Wed, May 3, 2017 at 3:44 AM, Konstantin Orekhov <[email protected]> wrote:
>
>>
>> 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.
>
>
> Lukas and/or Greg - any updates on this?



-- 
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 [email protected].
To post to this group, send email to [email protected].
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