Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1572560 - Host bulk delete fails with undefined method `provided_attributes' for nil:NilClass
Summary: Host bulk delete fails with undefined method `provided_attributes' for nil:Ni...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Compute Resources
Version: 6.3.1
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: 6.4.0
Assignee: satellite6-bugs
QA Contact: Sanket Jagtap
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-04-27 10:26 UTC by Stefan Meyer
Modified: 2021-12-10 16:03 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 19:17:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Screenshot of tasks (37.99 KB, image/png)
2018-08-29 10:38 UTC, Sanket Jagtap
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 21714 0 Normal Closed Always use Current User middleware 2020-06-18 15:15:41 UTC

Description Stefan Meyer 2018-04-27 10:26:38 UTC
Description of problem:
When selecting one or more hosts in the Hosts => All Hosts tab and selecting to delete them 
the tasks fail with error message "undefined method `provided_attributes' for nil:NilClass"

When accessing a single host and deleting the host via the Host tab it does however work correctly.


Version-Release number of selected component (if applicable):
Satellite 6.3.1

How reproducible:
- Everytime a bulk delete happens,
- tested with hosts on RHV and libvirt

Steps to Reproduce:
1. Select one or more hosts in Hosts => All Hosts
2. Select "Delete Hosts" in "Select Action" dropdown list
3. Try to delete hosts

Actual results:
The task fails with error message:

[foreman-tasks/action] [E] undefined method `provided_attributes' for nil:NilClass (NoMethodError)
 | /usr/share/foreman/app/models/concerns/orchestration/compute.rb:29:in `compute_provides?'
 | /usr/share/foreman/app/models/nic/base.rb:169:in `compute_provides_ip?'
 | /usr/share/foreman/app/models/nic/managed.rb:78:in `ip6_available?'
 | /usr/share/foreman/app/models/concerns/orchestration/dns.rb:23:in `dns6?'
 | /usr/share/foreman/app/models/concerns/dns_interface.rb:29:in `dns_feasible?'
 | /usr/share/foreman/app/models/concerns/orchestration/dns.rb:84:in `block in queue_dns_destroy'
 | /usr/share/foreman/app/models/concerns/orchestration/dns.rb:82:in `each'
 | /usr/share/foreman/app/models/concerns/orchestration/dns.rb:82:in `queue_dns_destroy'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:432:in `block in make_lambda'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:164:in `block in halting'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:504:in `block in call'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:504:in `each'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:504:in `call'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:778:in `_run_destroy_callbacks'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/activerecord-4.2.6/lib/active_record/callbacks.rb:292:in `destroy'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/activerecord-4.2.6/lib/active_record/transactions.rb:281:in `block in destroy'
 | /opt/rh/rh-ror42/root/usr/share/gems/gems/activerecord-4.2.6/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' 

Expected results:
To be able to delete more than one host ata a time

Additional info:

Comment 2 Lee Whitty 2018-05-28 11:44:04 UTC
Confirming issue with Satellite 6.3.1 using libvirt as an infrastructure compute resource.

Comment 3 Mike McCune 2018-05-29 17:25:41 UTC
This is a regression, flagging for 6.3.z and later

Comment 15 Sanket Jagtap 2018-08-29 10:38:10 UTC
Build:Satellite 6.4.0 snap19

I was able to delete 5 hosts using bulk delete options

PFA

Comment 16 Sanket Jagtap 2018-08-29 10:38:37 UTC
Created attachment 1479444 [details]
Screenshot of tasks

Comment 19 Bryan Kearney 2018-10-16 19:17:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2927


Note You need to log in before you can comment on or make changes to this bug.