Bug #15374
closedDelete discovered Host ends in error: undefined method `progress_report_id'
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
Updated by Dominic Cleal over 8 years ago
- Project changed from Foreman to Discovery
- Category set to Discovery plugin
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
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
Updated by Lukas Zapletal about 8 years ago
- Project changed from Discovery to Foreman
- Category changed from Discovery plugin to Orchestration
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...
Updated by Daniel Lobato Garcia about 8 years ago
- Target version changed from 1.7.1 to 1.6.2
Updated by Daniel Lobato Garcia about 8 years ago
- Target version changed from 1.6.2 to 1.5.2
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.
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
Updated by Lukas Zapletal over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset fd8bf7f1d0a8ffafc26783cbffe71aacc4b90cc6.
Updated by Dominic Cleal over 7 years ago
- Translation missing: en.field_release set to 227
Updated by Dominic Cleal over 7 years ago
- Related to Bug #19151: undefined method `progress_report_id' when unattended mode is disabled added