Project

General

Profile

Bug #34932

Space reclaiming fails on a blank Satellite

Added by William Clark 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman Proxy Content
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2070001

Description of problem:
There is new functionality to reclaim space on the internal capsule. However, when I try it on a blank (no content sync yet), it fails with error.

Version-Release number of selected component (if applicable):
6.11 snap 14

How reproducible:
always

Steps to Reproduce:
1. Have a blank SAT
2. Go to Infrastructure > Capsules > {SAT_FQDN} > click Reclaim Space

Actual results:
Reclaim task is started and fails with this error:

Error message: the server returns an error
HTTP status code: 400
Response headers: {"Date"=>"Wed, 30 Mar 2022 08:14:43 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"=>"417075ed-101f-4b36-99ab-1e1c75c037cf", "Access-Control-Expose-Headers"=>"Correlation-ID", "Via"=>"1.1 dhcp-3-103.vms.sat.rdu2.redhat.com", "Connection"=>"close"}
Response body: {"repo_hrefs":["Must not be []."]}

Expected results:
No errors.

Additional info:
When some content is synced, the reclaim succeeds.

Associated revisions

Revision ba4eacff (diff)
Added by William Clark 3 months ago

Fixes #34932 - Prevent reclaim_space task in the absence of downloaded content (#10121)

History

#1 Updated by Lucy Fu 3 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 4.6.0

#2 Updated by The Foreman Bot 3 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/10121 added

#3 Updated by The Foreman Bot 3 months ago

  • Fixed in Releases Katello 4.5.0 added

#4 Updated by William Clark 3 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF