Project

General

Profile

Actions

Bug #15374

closed

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

Added by Susanne Bachmann over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Orchestration
Target version:
Difficulty:
Triaged:
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)


Files

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

Related issues 1 (0 open1 closed)

Related to Foreman - Bug #19151: undefined method `progress_report_id' when unattended mode is disabledClosedLukas Zapletal04/04/2017Actions
Actions #1

Updated by Dominic Cleal over 8 years ago

  • Project changed from Foreman to Discovery
  • Category set to Discovery plugin
Actions #2

Updated by Susanne Bachmann about 8 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

Actions #3

Updated by The Foreman Bot about 8 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
Actions #4

Updated by Lukas Zapletal about 8 years ago

  • Project changed from Discovery to Foreman
  • Category changed from Discovery plugin to Orchestration
Actions #5

Updated by Susanne Bachmann about 8 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...

Actions #6

Updated by Daniel Lobato Garcia about 8 years ago

  • Target version set to 1.7.1
Actions #7

Updated by Daniel Lobato Garcia about 8 years ago

  • Target version changed from 1.7.1 to 1.6.2
Actions #8

Updated by Daniel Lobato Garcia about 8 years ago

  • Target version changed from 1.6.2 to 1.5.2
Actions #9

Updated by Dominic Cleal over 7 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.

Actions #10

Updated by The Foreman Bot over 7 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
Actions #11

Updated by Lukas Zapletal over 7 years ago

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

Updated by Dominic Cleal over 7 years ago

  • Translation missing: en.field_release set to 227
Actions #13

Updated by Dominic Cleal over 7 years ago

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

Also available in: Atom PDF