Bug #15374

Delete discovered Host ends in error: undefined method `progress_report_id'

Added by Susanne Bachmann about 1 year ago. Updated 4 months ago.

Status:Closed
Priority:Normal
Assigned To:Lukas Zapletal
Category:Orchestration
Target version:Team Daniel - iteration 3
Difficulty: Bugzilla link:
Found in release: Pull request:https://github.com/theforeman/foreman/pull/3672
Story points-
Velocity based estimate-
Release1.14.3Release relationshipAuto

Description

When 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' for #<Host::Discovered:0x007fc192b32bc0>
/opt/rh/rh-ror41/root/usr/share/gems/gems/activemodel-4.1.5/lib/active_model/attribute_methods.rb:435:in `method_missing'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/attribute_methods.rb:208:in `method_missing'
/usr/share/foreman/app/models/nic/managed.rb:16:in `progress_report_id'
/usr/share/foreman/app/models/concerns/orchestration.rb:190:in `update_cache'
/usr/share/foreman/app/models/concerns/orchestration.rb:105:in `block in process'
/usr/share/foreman/app/models/concerns/orchestration.rb:99:in `each'
...

When I rovision 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.

Installed Plugins:
foreman_plugin_default_hostgroup
foreman_plugin_dhcp_browser
foreman_plugin_discovery
foreman_plugin_hooks
foreman_plugin_setup
foreman_plugin_templates
(no puppet, only as SmartProxy)

full_trace.txt Magnifier (24.6 KB) Susanne Bachmann, 06/10/2016 10:08 AM


Related issues

Related to Foreman - Bug #19151: undefined method `progress_report_id' when unattended mod... Ready For Testing 04/04/2017

Associated revisions

Revision fd8bf7f1
Added by Lukas Zapletal 4 months ago

Fixes #15374 - move progress_report_id to Host::Base

History

#1 Updated by Dominic Cleal about 1 year ago

  • Project changed from Foreman to Discovery
  • Category set to Discovery plugin

#2 Updated by Susanne Bachmann 12 months ago

FYI:
After Update to 1.12. Problem is still the same
New Versions:
foreman_bootdisk 8.0.1
foreman_dhcp_browser 0.0.7
foreman_discovery 5.0.2
foreman_hooks 0.3.11
foreman_setup 4.0.0
foreman_templates 2.1.0

Older Versions we run (1.11.0):
foreman_bootdisk 6.1.0
foreman_default_hostgroup 3.0.0
foreman_dhcp_browser 0.0.7
foreman_discovery 5.0.2
foreman_setup 3.1.0
foreman_templates 2.0.3

#3 Updated by The Foreman Bot 12 months ago

  • Status changed from New to Ready For Testing
  • Assigned To set to Lukas Zapletal
  • Pull request https://github.com/theforeman/foreman/pull/3672 added

#4 Updated by Lukas Zapletal 12 months ago

  • Project changed from Discovery to Foreman
  • Category changed from Discovery plugin to Orchestration

#5 Updated by Susanne Bachmann 12 months ago

Hi,

tested the changes from Pull request https://github.com/theforeman/foreman/pull/3672 . It's now working for me i can delete the discovered hosts. I tested it on both versions i wrote on the previous post.

Big thanks to all...

#6 Updated by Daniel Lobato Garcia 12 months ago

  • Target version set to Team Daniel - iteration 1

#7 Updated by Daniel Lobato Garcia 11 months ago

  • Target version changed from Team Daniel - iteration 1 to Team Daniel - iteration 2

#8 Updated by Daniel Lobato Garcia 10 months ago

  • Target version changed from Team Daniel - iteration 2 to Team Daniel - iteration 3

#9 Updated by Dominic Cleal 4 months ago

  • Status changed from Ready For Testing to New
  • Assigned To deleted (Lukas Zapletal)
  • Pull request deleted (https://github.com/theforeman/foreman/pull/3672)

Appears valid still, no response to PR review.

#10 Updated by The Foreman Bot 4 months ago

  • Status changed from New to Ready For Testing
  • Assigned To set to Lukas Zapletal
  • Pull request https://github.com/theforeman/foreman/pull/3672 added

#11 Updated by Lukas Zapletal 4 months ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#12 Updated by Dominic Cleal 4 months ago

  • Release set to 1.14.3

#13 Updated by Dominic Cleal 4 months ago

  • Related to Bug #19151: undefined method `progress_report_id' when unattended mode is disabled added

Also available in: Atom PDF