Actions
Bug #32738
closedError 404 Not Found on katello:delete_orphaned_content
Description
See also here: https://community.theforeman.org/t/katello-4-0-katello-delete-orphaned-content/23601/4
When calling
# foreman-rake katello:delete_orphaned_content RAILS_ENV=production --trace ** Invoke katello:delete_orphaned_content (first_time) ** Invoke dynflow:client (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute dynflow:client ** Execute katello:delete_orphaned_content
It fails with an error "There was an issue with the backend service pulp: 404 Not Found".
It looks as if it calls a ping via pulp2 even when pulp2 isn't available.
2021-06-04T14:37:59 [I|bac|] Task {label: Actions::Katello::OrphanCleanup::RemoveOrphans, id: c91ebbd2-5f92-4370-8d16-7eeee4b21944, execution_plan_id: 3769b7ea-31fa-4bdf-8027-026991029a3c} state changed: planning 2021-06-04T14:37:59 [W|app|] 404 Not Found | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/abstract_response.rb:223:in `exception_with_response' | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/abstract_response.rb:103:in `return!' | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:809:in `process_result' | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:725:in `block in transmit' | /opt/rh/rh-ruby25/root/usr/share/ruby/net/http.rb:910:in `start' | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:715:in `transmit' | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:145:in `execute' | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:52:in `execute' | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.2/lib/restclient/resource.rb:51:in `get' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.0.1.1/app/models/katello/ping.rb:263:in `backend_status' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.0.1.1/app/models/katello/ping.rb:172:in `pulp_without_auth' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.0.1.1/app/models/katello/ping.rb:88:in `block in ping_pulp_without_auth' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.0.1.1/app/models/katello/ping.rb:144:in `exception_watch' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.0.1.1/app/models/katello/ping.rb:87:in `ping_pulp_without_auth' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.0.1.1/app/models/katello/ping.rb:236:in `ping_services_for_capsule' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.0.1.1/app/models/katello/ping.rb:27:in `ping' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.0.1.1/app/lib/actions/middleware/backend_services_check.rb:13:in `block in plan' ...
It calls ping_pulp_without_auth which is pulp2, if I understand the code correctly.
Updated by j s over 3 years ago
- Related to Bug #32740: Katello:delete_orphaned_content still checking for pulp2 services and failing with 404s. added
Updated by James Jeffers over 3 years ago
- Status changed from New to Duplicate
- Target version set to Katello Recycle Bin
- Triaged changed from No to Yes
Actions