Bug 2160264
| Summary: | delete orphans task does not remove pulp3 remotes from capsules when removing repositories | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Joniel Pasqualetto <jpasqual> |
| Component: | Capsule - Content | Assignee: | Ian Ballou <iballou> |
| Status: | CLOSED ERRATA | QA Contact: | Vladimír Sedmík <vsedmik> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.10.7 | CC: | aruzicka, iballou, zhunting |
| Target Milestone: | 6.13.0 | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | tfm-rubygem-katello-4.7.0.8-1 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-05-03 13:24:04 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
Joniel Pasqualetto
2023-01-11 22:08:49 UTC
Joniel, are there any error that are stopping the orphan deletion? Do you see that the 'Actions::Pulp3::OrphanCleanup::DeleteOrphanRemotes' action is planned and runs as part of orphan cleanup? Hello @iballou Yes, I see the action "Actions::Pulp3::OrphanCleanup::DeleteOrphanRemotes (success) [ 0.33s / 0.33s ]", but the remotes are not gone. Looking at capsule logs, no requests to DELETE the remotes get there, so no errors appear to be happening. This is also easily reproducible and appears to always happen. Didn't test in newer versions. Let me know if you want to have a look at a reproducer. Created redmine issue https://projects.theforeman.org/issues/35965 from this bug Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35965 has been resolved. Verified in 6.13.0 snap 10 (rubygem-katello-4.7.0.9-1.el8sat.noarch): Steps: 1) Have a Satellite with registered external Capsule. 2) Sync several repositories (rpm, KS, file, docker) to the Capsule (via Library LCE). 3) Check the repos and remotes are there: # pulp --profile caps rpm repository list ... # pulp --profile caps rpm remote list ... 4) Disassociate the Library LCE from the Capsule. 5) Run orphan cleanup: [root@sat ~]# foreman-rake katello:delete_orphaned_content RAILS_ENV=production SMART_PROXY_ID=2 Orphaned content deletion started in background. 6) Check the repo and remote was cleaned: [root@sat ~]# pulp --profile caps rpm repository list [] [root@sat ~]# pulp --profile caps rpm remote list [] [root@sat ~]# pulp --profile caps file repository list [] [root@sat ~]# pulp --profile caps file remote list [] [root@sat ~]# pulp --profile caps container repository list [] [root@sat ~]# pulp --profile caps container remote list [] Remotes were removed together with repositories after cleanup, checked also by curling API. 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.13 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-2023:2097 |