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 1598736

Summary: Undefined method 'each' for true:TrueClass (NoMethodError)
Product: Red Hat Satellite Reporter: Ben <ben.argyle>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.15CC: jsherril
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: 2018-07-06 13:43:46 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
Errors in production.log
none
Errors on task resume attempt none

Description Ben 2018-07-06 10:55:43 UTC
Created attachment 1456954 [details]
Errors in production.log

Description of problem:
Yesterday I unsubscribed three Content Hosts and then resubscribed them with a different activation key.  I believe this happened around the same time.  The trace is pretty huge, so it's attached as a text file.

Version-Release number of selected component (if applicable):
Satellite 6.2.15
RHEL7 pretty much up to date

How reproducible:
Unsure.  I don't want it to happen again so I'm unwilling to do what I think are the same actions, again.

Steps to Reproduce:
1. Ran
subscription-manager unsubscribe --all
subscription-manager unregister
subscription-manager clean

on the Content Hosts

2. Ran
subscription-manager register --org="UIS" --activationkey="RHEL7 Servers + HA + Java"
(which subs to a certain set of repos)

3. Saw the attached errors, although the Content Hosts seem to be correctly subscribed.

4. Saw this in the GUI:

Action:

Actions::Pulp::Consumer::GenerateApplicability

Input:

{"uuids"=>["829203e0-7156-4b8c-aae1-6e9705868951"],
 "remote_user"=>"admin",
 "remote_cp_user"=>"admin"}

Output:

{}

Exception:

NoMethodError: undefined method `each' for true:TrueClass

Backtrace attached as separate text file.


Actual results:
Stuck task, unable to resume successfully.

Expected results:
Everything normal.

Additional info:
Please ask if you need any more information.

Comment 1 Ben 2018-07-06 10:56:14 UTC
Created attachment 1456955 [details]
Errors on task resume attempt

Comment 2 Ben 2018-07-06 11:11:58 UTC
# hammer content-host info --id 829203e0-7156-4b8c-aae1-6e9705868951
[Foreman] Password for admin: 
Katello::Resources::Candlepin::Consumer: 410 Gone {"displayMessage":"Unit 829203e0-7156-4b8c-aae1-6e9705868951 has been deleted","requestUuid":"0402ab78-1a40-4919-a52b-479c27dde57d","deletedId":"829203e0-7156-4b8c-aae1-6e9705868951"} (GET /candlepin/consumers/829203e0-7156-4b8c-aae1-6e9705868951)


So it has gone.  How do I get rid of the paused/stuck Generate Applicability task, please?

Comment 3 Justin Sherrill 2018-07-06 13:43:46 UTC

*** This bug has been marked as a duplicate of bug 1595960 ***