Bug 2164551 - Remove orphans task going to the paused state with error "Cannot delete some instances of model 'Repository' because they are referenced through protected foreign keys" on Red Hat Satellite 6.12 [NEEDINFO]
Summary: Remove orphans task going to the paused state with error "Cannot delete some ...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.12.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-25 18:03 UTC by Puja Singh
Modified: 2023-08-02 00:24 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:
dalley: needinfo? (pujsingh)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github pulp pulpcore issues 4209 0 None open Remove orphan tasks failing on Katello 4.9 2023-07-31 15:59:49 UTC
Red Hat Issue Tracker SAT-15195 0 None None None 2023-01-26 15:13:01 UTC

Description Puja Singh 2023-01-25 18:03:44 UTC
Description of problem:

The task 'Actions::Katello::OrphanCleanup::RemoveOrphans' is going to the paused state instead of finishing successfully.

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

How reproducible:
100%

Steps to Reproduce:
1. Enable and sync repositories on the Satellite server.
2. Sync Library env with Capsule server.
2. Remove some of the synced repositories.
3. Run orphan cleanup command foreman-rake katello:delete_orphaned_content RAILS_ENV=production

Actual results:
The task goes to the paused state with error message:

Katello::Errors::Pulp3Error

("Cannot delete some instances of model 'Repository' because they are referenced through protected foreign keys: 'Addon.repository', 'RpmRepository.repository_ptr'.", {})

Expected results:
The task should complete successfully without any issues.

Comment 1 Brad Buckingham 2023-01-26 15:09:00 UTC
Can you paste the stack trace of the pulp error observed?

Comment 11 Daniel Alley 2023-08-01 01:00:53 UTC
Reducing priority / sev given the case is closed and we have no reproducer available.


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