Problem:
I just remove the content about CentOS 8 from my Foreman 3.3 - Katello 4.5 server (to save backup space before to migrate to EL8 and getting update to date )
But trying to reclaim space from my proxy, the task fails with the following error.
Expected outcome:
Space freed
Foreman and Proxy versions:
Foreman 3.3.1 Katello 4.5.1
Foreman and Proxy plugin versions:
plugin | version |
---|---|
foreman-tasks | 6.0.2 |
foreman_puppet | 4.0.1 |
foreman_remote_execution | 7.2.2 |
katello | 4.5.1 |
Distribution and version:
CentOS 7.9.2009
Other relevant data:
Action:
Actions::Pulp3::CapsuleContent::ReclaimSpace
Input:
{“services_checked”=>[“pulp3”],
“repository_hrefs”=>,
“smart_proxy_id”=>1,
“remote_user”=>“admin”,
“remote_cp_user”=>“admin”,
“current_request_id”=>“baeec99d-ee53-4b43-95c0-c3b223e3308a”,
“current_timezone”=>“Europe/Paris”,
“current_organization_id”=>1,
“current_location_id”=>2,
“current_user_id”=>4}
Output:
{}
Exception:
PulpcoreClient::ApiError: Error message: the server returns an error
HTTP status code: 400
Response headers: {“date”=>“Wed, 11 Jan 2023 13:20:14 GMT”, “server”=>“gunicorn”, “content-type”=>“application/json”, “vary”=>“Accept,Cookie”, “allow”=>“POST, OPTIONS”, “x-frame-options”=>“DENY”, “content-length”=>“34”, “x-content-type-options”=>“nosniff”, “referrer-policy”=>“same-origin”, “correlation-id”=>“baeec99d-ee53-4b43-95c0-c3b223e3308a”, “access-control-expose-headers”=>“Correlation-ID”, “via”=>“1.1 srvtlpfk01.dit.cb”, “connection”=>“close”}
Response body: {“repo_hrefs”:[“Must not be .”]}