Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1609376

Summary: host deleted before its generate applicability task ran and it then failed with: undefined method `each' for true:TrueClass
Product: Red Hat Satellite Reporter: Jan Hutař <jhutar>
Component: Errata ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Jan Hutař <jhutar>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.4Keywords: Triaged
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-03 18:58:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
full error none

Description Jan Hutař 2018-07-27 19:49:27 UTC
Description of problem:
I have deleted a host before its generate applicability task ran and it then failed with: undefined method `each' for true:TrueClass


Version-Release number of selected component (if applicable):
satellite-6.4.0-10.beta.el7sat.noarch (snap 12)


How reproducible:
once in my setup but for many sub-tasks


Steps to Reproduce:
I'm not sure how I got into that state. what I did was:

1. Register 1300 hosts
2. Start a task to delete them all
3. While deletion task is running, start registration of 50 hosts in parallel, do this 5 times
4. Mark all the newly registered hosts to be deleted again

I believe this got mine Satellite into the state of hanged tasks service, so:

5. katello-service restart
6. ho check tasks with 

Note that every host had one applicable errata/package


Actual results:
This bug is specifically about "Generate applicability" sub tasks who ended in paused&error state and with attached traceback.

Action:

Actions::Pulp::Consumer::GenerateApplicability

Exception:

NoMethodError: undefined method `each' for true:TrueClass


Expected results:
These generate applicability tasks should not end that state and error should be human readable string, not ruby traceback

Comment 1 Jan Hutař 2018-07-27 19:49:56 UTC
Created attachment 1471162 [details]
full error

Comment 3 Bryan Kearney 2019-08-05 12:22:42 UTC
The Satellite Team is attempting to provide an accurate backlog of bugzilla requests which we feel will be resolved in the next few releases. We do not believe this bugzilla will meet that criteria, and have plans to close it out in 1 month. This is not a reflection on the validity of the request, but a reflection of the many priorities for the product. If you have any concerns about this, feel free to contact Red Hat Technical Support or your account team. If we do not hear from you, we will close this bug out. Thank you.

Comment 4 Bryan Kearney 2019-09-03 18:58:39 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this, please do not reopen. Instead, feel free to contact Red Hat Technical Support. Thank you.