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 1733182

Summary: when disabling Red Hat repository: Module::DelegationError: Katello::Repository#content_id delegated to root.content_id, but root is nil
Product: Red Hat Satellite Reporter: Jan Hutař <jhutar>
Component: RepositoriesAssignee: John Mitsch <jomitsch>
Status: CLOSED ERRATA QA Contact: vijsingh
Severity: medium Docs Contact:
Priority: unspecified    
Version: UnspecifiedCC: aruzicka, inecas, zhunting
Target Milestone: 6.6.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-katello-3.12.0.24-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-22 19:47:38 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
task error: Module::DelegationError: Katello::Repository#content_id delegated to root.content_id, but root is nil
none
Screenshots none

Description Jan Hutař 2019-07-25 10:49:31 UTC
Created attachment 1593369 [details]
task error: Module::DelegationError: Katello::Repository#content_id delegated to root.content_id, but root is nil

Description of problem:
When disabling multiple (~10) Red Hat repositories, one task failed. Error attached


Version-Release number of selected component (if applicable):
satellite-6.6.0-5.beta.el7sat.noarch
rubygem-smart_proxy_dynflow-0.2.2-2.el7sat.noarch
tfm-rubygem-dynflow-1.2.3-1.el7sat.noarch
tfm-rubygem-foreman-tasks-0.15.5-2.el7sat.noarch
tfm-rubygem-foreman-tasks-core-0.3.0-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_tasks-0.0.13-2.el7sat.noarch
tfm-rubygem-smart_proxy_dynflow_core-0.2.2-1.el7sat.noarch


How reproducible:
seen for a first time


Steps to Reproduce:
1. I have enabled all RHEL6 i386 KS repositories (all on UI)
2. Then I have noticed it is not x86_64 repos I wanted and enabled these
3. Then I have disabled thse i386 KS repos


Actual results:
One of them failed


Expected results:
It should not fail


Additional info:
Resuming the task made it to finish correctly

Comment 2 Adam Ruzicka 2019-07-25 10:53:34 UTC
Changing the component to repositories as it looks the error comes from there, not from the tasking system itself.

Comment 4 John Mitsch 2019-09-10 20:21:32 UTC
Created redmine issue https://projects.theforeman.org/issues/27823 from this bug

Comment 5 Bryan Kearney 2019-09-11 18:05:05 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27823 has been resolved.

Comment 7 vijsingh 2019-09-18 06:05:12 UTC
ON_QA Verified

@Satellite 6.6.0 snap 20.1

Steps:

 1. Enabled all RHEL6 i386 KS repositories (all on UI)
 2. Then Disabled these i386 KS repos


Observation:

 Able to disable i386 KS repos

Comment 8 vijsingh 2019-09-18 06:06:37 UTC
Created attachment 1616092 [details]
Screenshots

Comment 9 Bryan Kearney 2019-10-22 19:47:38 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-2019:3172