Try to delete discovered Host ends in error: undefined method `progress_report_id'

Hi all,

maybe someone have the same problem and find already a solution…

I try to delete a discovered host and get the following error message:

"Oops, we're sorry but something went wrong undefined method
`progress_report_id' for #<Host::Discovered:0x00000004333c78>"

NoMethodError
*undefined method progress_report_id&#39; for #&lt;Host::Discovered:0x007fc192b32bc0&gt;* /opt/rh/rh-ror41/root/usr/share/gems/gems/activemodel-4.1.5/lib/active_model/attribute_methods.rb:435:inmethod_missing'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/attribute_methods.rb:208:in
method_missing&#39; /usr/share/foreman/app/models/nic/managed.rb:16:inprogress_report_id'
/usr/share/foreman/app/models/concerns/orchestration.rb:190:in
update_cache&#39; /usr/share/foreman/app/models/concerns/orchestration.rb:105:inblock in
process'
/usr/share/foreman/app/models/concerns/orchestration.rb:99:in each&#39; /usr/share/foreman/app/models/concerns/orchestration.rb:99:inprocess'
/usr/share/foreman/app/models/concerns/orchestration.rb:43:in on_destroy&#39; /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:424:inblock in make_lambda'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:221:in
call&#39; /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:221:inblock in halting_and_conditional'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:86:in
`call'

When I provision the host I only get one Interface from two and the ipmi
Interface also vanished, after adding them manually I can deploy.
But more confusing is that the host is still in the list of discovered host
and I'm not able to delete it…

Foreman 1.11
Foreman Discovery 5.0.2
Discovery Image 3.0.5

Regards

Susanne

> Foreman 1.11
> Foreman Discovery 5.0.2
> Discovery Image 3.0.5

Please report a bug for us.

Do you have some plugins installed, e.g. Katello?

··· -- Later, Lukas #lzap Zapletal

Thanks for the reply Lukas. I will open a bug, when the site
project.theforeman.org is working again…

The plugins i have installed are:
foreman_bootdisk <http://github.com/theforeman/foreman_bootdisk> Plugin for
Foreman that creates iPXE-based boot disks to provision hosts without the
need for PXE infrastructure. Dominic Cleal 7.0.0
foreman_default_hostgroup
<http://github.com/GregSutcliffe/foreman_default_hostgroup> Adds the option
to specify a default hostgroup for new hosts created from facts/reports Greg
Sutcliffe 3.0.0
foreman_dhcp_browser <https://github.com/theforeman/foreman_dhcp_browser> Plugin
for Foreman to browse and add/edit/delete DHCP leases independent of
Foreman's host creation Ohad Levy 0.0.7
foreman_discovery <http://github.com/theforeman/foreman_discovery> MaaS
Discovery Plugin engine for Foreman Amos Benari,Bryan
Kearney,ChairmanTubeAmp,Daniel Lobato García,Dominic Cleal,Eric D.
Helms,Frank Wall,Greg Sutcliffe,Imri Zvik,Joseph Mitchell Magen,Lukas
Zapletal,Lukáš Zapletal,Marek Hulan,Martin Bačovský,Matt Jarvis,Michael
Moll,Nick,Ohad Levy,Ori Rabin,Petr Chalupa,Phirince
Philip,Scubafloyd,Shlomi Zadok,Stephen Benjamin,Yann Cézard 5.0.2
foreman_setup <http://github.com/theforeman/foreman_setup> Plugin for
Foreman that helps set up provisioning. Dominic Cleal 3.1.0
foreman_templates <http://github.com/theforeman/foreman_templates> Engine
to synchronise provisioning templates from GitHub Greg Sutcliffe 2.0.3So i
think nothing really special…

Regards

Susanne