Bug 2109254
Summary: | 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.11 | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Dhaval Joshi <dhjoshi> | |
Component: | Pulp | Assignee: | satellite6-bugs <satellite6-bugs> | |
Status: | CLOSED ERRATA | QA Contact: | ||
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 6.11.0 | CC: | ahumbe, akapse, bshahu, dalley, daniel-oliveira, dkliban, ggainey, JONATHAN.SATTELBERGER, momran, osousa, rchan, risantam, rrajput, saydas, zhunting | |
Target Milestone: | 6.12.0 | Keywords: | Regression, Triaged | |
Target Release: | Unused | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | pulp_rpm-3.14.16-1, pulp_rpm-3.17.7-1 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 2112368 (view as bug list) | Environment: | ||
Last Closed: | 2022-11-16 13:34: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: |
Description
Dhaval Joshi
2022-07-20 18:52:52 UTC
The issue seems to have been addressed in pulp_rpm via: Katello 4.3.0 rake katello:delete_orphaned_content fails with error · Issue #2459 · pulp/pulp_rpm https://github.com/pulp/pulp_rpm/issues/2459 Fix a bug preventing orphan cleanup for some subrepos by dralley · Pull Request #2619 · pulp/pulp_rpm https://github.com/pulp/pulp_rpm/pull/2619 Going through the PR, It seems like the issue is supposed to be fixed in pulp_rpm 3.17.7 and 3.14.16 Looping @dalley here .. *** Bug 2104736 has been marked as a duplicate of this bug. *** Steps to retest: 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 Expected: Orphan cleanup should finish successfully Actual: Orphan cleanup finishes successfully verified on 6.12 snap 6.1 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 (Important: Satellite 6.12 Release), 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-2022:8506 |