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 2266149 - 'Remove orphans' task fails on DeleteOrphanAlternateContentSources step
Summary: 'Remove orphans' task fails on DeleteOrphanAlternateContentSources step
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Alternate Content Sources
Version: 6.13.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 6.14.3
Assignee: Samir Jha
QA Contact: Vladimír Sedmík
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-02-26 19:15 UTC by Odilon Sousa
Modified: 2024-03-27 13:19 UTC (History)
7 users (show)

Fixed In Version: rubygem-katello-4.9.0.22
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2208310
Environment:
Last Closed: 2024-03-27 13:19:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 36461 0 Normal Closed 'Remove orphans' task fails on DeleteOrphanAlternateContentSources step 2024-02-26 19:15:36 UTC
Red Hat Issue Tracker SAT-17849 0 None None None 2024-02-26 19:15:36 UTC
Red Hat Issue Tracker SAT-23587 0 None None None 2024-02-26 19:15:52 UTC
Red Hat Product Errata RHSA-2024:1536 0 None None None 2024-03-27 13:19:19 UTC

Comment 2 Bryan Kearney 2024-02-26 20:04:01 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36461 has been resolved.

Comment 3 Vladimír Sedmík 2024-03-06 10:56:07 UTC
Verified in 6.14.3 snap 1.0

Steps:
1. Have a Satellite with registered external Capsule.
2. Disable File content on the Capsule:
[root@caps ~]# satellite-installer --foreman-proxy-content-enable-file false
3. In Administer > Settings set "Orphaned Content Protection Time" to 1
4. Run the orphan cleanup task from Satellite and check it succeeds on both, Sat and Caps:
[root@sat ~]# foreman-rake katello:delete_orphaned_content RAILS_ENV=production
5. Mock the katello/app/services/katello/pulp3/smart_proxy_mirror_repository.rb as per https://github.com/Katello/katello/pull/10582, restart services, rerun the cleanup and check it succeeded:
[root@sat ~]# grep /usr/share/gems/gems/katello-4.9.0.23/app/services/katello/pulp3/smart_proxy_mirror_repository.rb -n -e file2
82:        if RepositoryTypeManager.enabled_repository_types['file2']
83:          file_acs_api = ::Katello::Pulp3::Repository.api(smart_proxy, 'file2').alternate_content_source_api
[root@sat ~]# foreman-maintain service restart
[root@sat ~]# foreman-rake katello:delete_orphaned_content RAILS_ENV=production
[root@sat ~]# hammer task list --search orphans
-------------------------------------|-----------------|---------|---------|---------------------|---------------------|----------|---------------|------------
ID                                   | ACTION          | STATE   | RESULT  | STARTED AT          | ENDED AT            | DURATION | OWNER         | TASK ERRORS
-------------------------------------|-----------------|---------|---------|---------------------|---------------------|----------|---------------|------------
258ce943-3f85-4a53-825f-c79365411ff8 | Remove orphans  | stopped | success | 2024/03/06 10:44:58 | 2024/03/06 10:44:58 | 0.782981 | foreman_admin |            
d1a8deaa-8687-4900-a5bf-22ce1bab3e62 | Remove orphans  | stopped | success | 2024/03/06 10:44:57 | 2024/03/06 10:44:59 | 1.741113 | foreman_admin |            
cc71ead9-5f67-4928-bb57-91ccf5ec5c69 | Remove orphans  | stopped | success | 2024/03/06 10:38:01 | 2024/03/06 10:38:02 | 1.327502 | foreman_admin |            
858337bf-ca03-4e2c-845f-4ac317d5127e | Remove orphans  | stopped | success | 2024/03/06 10:38:00 | 2024/03/06 10:38:02 | 2.008432 | foreman_admin |            
7cf3cac3-c12e-4786-a8d0-5fe19fecb6b2 | Remove orphans  | stopped | success | 2024/03/06 10:23:15 | 2024/03/06 10:23:16 | 1.48405  | foreman_admin |            
7f2a0c7f-e21f-4cae-8834-39b29fb46594 | Remove orphans  | stopped | success | 2024/03/06 10:23:14 | 2024/03/06 10:23:17 | 2.456396 | foreman_admin |            
-------------------------------------|-----------------|---------|---------|---------------------|---------------------|----------|---------------|------------

Comment 8 errata-xmlrpc 2024-03-27 13:19:18 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 (Moderate: Satellite 6.14.3 Async Security Update), 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-2024:1536


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