[Satellite 6.10] Repository sync ends in warning with HTTP 400 error and Response body: {"sync_policy":["Unexpected field"]}
Environment
- Red Hat Satellite 6.10
Issue
After updating packages on Satellite server via the satellite-maintain packages update command, all repository sync tasks fail with HTTP 400 error. For each of the repository sync tasks, the 6: Actions::Pulp3::Repository::Sync subtask is skipped with the following error reported:
PulpRpmClient::ApiError
Error message: the server returns an error HTTP status code: 400 Response headers: {"Date"=>"Tue, 15 Mar 2022 10:16:06 GMT", "Server"=>"gunicorn", "Content-Type"=>"application/json", "Vary"=>"Accept,Cookie", "Allow"=>"POST, OPTIONS", "X-Frame-Options"=>"SAMEORIGIN", "Content-Length"=>"36", "Correlation-ID"=>"2f436ec3-7755-4049-8527-ade7b25d1197", "Access-Control-Expose-Headers"=>"Correlation-ID", "Via"=>"1.1 satellite.example.com", "Connection"=>"close"} Response body: {"sync_policy":["Unexpected field"]}
Resolution
Reboot the Satellite server.
For more KB articles/solutions related to Red Hat Satellite 6.x Repository Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Repository Issues.
Root Cause
A new kernel was installed as part of the update, and the Satellite server needs to be rebooted after the kernel update.
Diagnostic Steps
- Confirm that the Download Policy of the affected repository is not blank:
# hammer repository info --name=<repository_name> --product=<product_name> --organization=<organization_name> --fields="Download Policy"
Download Policy: on_demand
- Check /var/log/yum.log to confirm that the kernel has been updated:
Mar 09 08:05:20 Installed: kernel-3.10.0-1160.59.1.el7.x86_64
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.