Problem:
Publishing new content view for Oracle Linux 8 and CentOS 8 content view results in errors. Other Oracle Linux 7 and CentOS 7 work as usual.
Expected outcome:
Publishing new content view without errors.
Foreman and Proxy versions:
Foreman 2.3.5
Foreman and Proxy plugin versions:
Katello 3.18.3.1
foreman-tasks 3.0.6
foreman_remote_execution 4.2.2
foreman_docker 5.0.0
foreman_discovery 16.3.4
foreman_chef 0.10.0
Distribution and version:
CentOS Linux release 7.9.2009
Other relevant data:
Error message: the server returns an error
Errors for Oracle Linux 8
Error message: the server returns an error
HTTP status code: 400
Response headers: {"date"=>"Tue, 03 Aug 2021 19:16:21 GMT", "server"=>"gunicorn/20.0.4", "content-type"=>"application/json", "vary"=>"Accept,Cookie", "allow"=>"GET, PUT, PATCH, DELETE, HEAD, OPTIONS", "x-frame-options"=>"SAMEORIGIN", "content-length"=>"62", "via"=>"1.1 katellod02p.d.carfax.us", "connection"=>"close"}
Response body: {"publication":["Invalid hyperlink - Object does not exist."]}
Errors for CentOS 8
HTTP status code: 502
Response headers: {"date"=>"Tue, 03 Aug 2021 19:32:18 GMT", "server"=>"Apache", "content-length"=>"445", "connection"=>"close", "content-type"=>"text/html; charset=iso-8859-1"}
Response body: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Proxy Error</title>
</head><body>
<h1>Proxy Error</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
The proxy server could not handle the request <em><a href="/pulp/api/v3/content/rpm/packages/">GET /pulp/api/v3/content/rpm/packages/</a></em>.<p>
Reason: <strong>Error reading from remote server</strong></p></p>
</body></html>
Error message: the server returns an error