-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
6.16.2
-
Phoenix - Content
-
3
-
False
-
katello-4.14.0.10
-
Moderate
-
Phoenix Sprint 148
-
None
-
None
-
None
-
To Do
Description of problem:
Weekly orphan cleanup task fails on external capsules, with the following error and the task goes into paused state:
The repository version cannot be deleted because it (or its publications) are currently being used to distribute content. Please update the necessary distributions first.
How reproducible:
Unsure
Is this issue a regression from an earlier version?
Could be ( Unsure )
Steps to Reproduce: [ May or may not be correct ]
1. Install Satellite and Capsule 6.16.2
2. Enable several RHEL 8 \ 9 repos and sync them
3. Create a lifecycle path like Library > Test > Prod and add all of them with Capsules for syncing
4. Create Rhel 8 and rhel 9 specific CVs with respective repos added in them and publish them in all LCEs.
5. Wait for some days to have few new contents in the repos and then re-sync, publish and promote the CVs
6. Delete old versions of the CV and just keep only the latest version intact
7. Wait for the weekly orphan cleanup task to happen
Actual behavior:
The orphan cleanup on satellite is successful but fails ( goes into paused state ) for the external capsules.
Error in WebUI:
Error message: the server returns an error HTTP status code: 400 Response headers: {"Date"=>"Sun, 23 Feb 2025 16:32:48 GMT", "Server"=>"gunicorn", "Content-Type"=>"application/json", "Vary"=>"Accept,Cookie", "Allow"=>"GET, DELETE, HEAD, OPTIONS", "X-Frame-Options"=>"DENY", "Content-Length"=>"174", "X-Content-Type-Options"=>"nosniff", "Referrer-Policy"=>"same-origin", "Cross-Origin-Opener-Policy"=>"same-origin", "Correlation-ID"=>"8dc61a45ce91457ead5065a5a7c83bc0", "Access-Control-Expose-Headers"=>"Correlation-ID", "Via"=>"1.1 breakfix3-cap.syslab.pnq2.redhat.com", "Connection"=>"close"} Response body: ["The repository version cannot be deleted because it (or its publications) are currently being used to distribute content. Please update the necessary distributions first."]
Error traceback:
- "/usr/share/gems/gems/pulp_rpm_client-3.26.1/lib/pulp_rpm_client/api_client.rb:83:in `call_api'" - "/usr/share/gems/gems/pulp_rpm_client-3.26.1/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb:77:in `delete_with_http_info'" - "/usr/share/gems/gems/pulp_rpm_client-3.26.1/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb:28:in `delete'" - "/usr/share/gems/gems/katello-4.14.0.6/app/services/katello/pulp3/smart_proxy_repository.rb:40:in `block (2 levels) in delete_orphan_repository_versions'" - "/usr/share/gems/gems/katello-4.14.0.6/app/services/katello/pulp3/smart_proxy_repository.rb:39:in `collect'" - "/usr/share/gems/gems/katello-4.14.0.6/app/services/katello/pulp3/smart_proxy_repository.rb:39:in `block in delete_orphan_repository_versions'" - "/usr/share/gems/gems/katello-4.14.0.6/app/services/katello/pulp3/smart_proxy_repository.rb:38:in `each'" - "/usr/share/gems/gems/katello-4.14.0.6/app/services/katello/pulp3/smart_proxy_repository.rb:38:in `delete_orphan_repository_versions'" - "/usr/share/gems/gems/katello-4.14.0.6/app/lib/actions/pulp3/orphan_cleanup/delete_orphan_repository_versions.rb:10:in `run'" - "/usr/share/gems/gems/dynflow-1.9.0/lib/dynflow/action.rb:590:in `block (3 levels) in execute_run'"
Error in pulp logs:
Feb 28 13:26:43 breakfix3-cap pulpcore-api[1029598]: pulp [2aec12009b0144cea9c6477947975a9c]: django.request:WARNING: Bad Request: /pulp/api/v3/repositories/rpm/rpm/a87da665-c47b-419e-81fa-eb1441b4d948/versions/2/ Feb 28 13:26:43 breakfix3-cap pulpcore-api[1029598]: pulp [2aec12009b0144cea9c6477947975a9c]: - - [28/Feb/2025:13:26:43 +0000] "DELETE /pulp/api/v3/repositories/rpm/rpm/a87da665-c47b-419e-81fa-eb1441b4d948/versions/2/ HTTP/1.1" 400 174 "-" "OpenAPI-Generator/3.26.1/ruby"
Expected behavior:
No such errors and proper cleanup of orphaned content
Business Impact / Additional info:
Could be related to https://projects.theforeman.org/issues/38205
- clones
-
SAT-31400 Orphan cleanup fails with error "The repository version cannot be deleted because it (or its publications) are currently being used to distribute content"
-
- Release Pending - Upstream
-