Project

General

Profile

Bug #15374

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

Added by Susanne Bachmann almost 3 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Category:
Orchestration
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

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 full_trace.txt 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 mode is disabledClosed2017-04-04

Associated revisions

Revision fd8bf7f1 (diff)
Added by Lukas Zapletal about 2 years ago

Fixes #15374 - move progress_report_id to Host::Base

Revision 88177eb0 (diff)
Added by Lukas Zapletal about 2 years ago

Fixes #15374 - move progress_report_id to Host::Base

(cherry picked from commit fd8bf7f1d0a8ffafc26783cbffe71aacc4b90cc6)

History

#1 Updated by Dominic Cleal almost 3 years ago

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

#2 Updated by Susanne Bachmann almost 3 years 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 almost 3 years ago

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

#4 Updated by Lukas Zapletal almost 3 years ago

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

#5 Updated by Susanne Bachmann almost 3 years 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 almost 3 years ago

  • Target version set to 1.7.1

#7 Updated by Daniel Lobato Garcia almost 3 years ago

  • Target version changed from 1.7.1 to 1.6.2

#8 Updated by Daniel Lobato Garcia over 2 years ago

  • Target version changed from 1.6.2 to 1.5.2

#9 Updated by Dominic Cleal about 2 years ago

  • Status changed from Ready For Testing to New
  • Assignee 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 about 2 years ago

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

#11 Updated by Lukas Zapletal about 2 years ago

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

#12 Updated by Dominic Cleal about 2 years ago

  • Legacy Backlogs Release (now unused) set to 227

#13 Updated by Dominic Cleal about 2 years ago

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

Also available in: Atom PDF