Problem:
Publishing a CV with a filter fails
Both when applying the filter on a published CV but new version and a fresh CV.
Expected outcome:
CV published and packages filtered
Foreman and Proxy versions:
Foreman 3.0.1
Foreman and Proxy plugin versions:
Katello 4.2.1
Distribution and version:
RHEL 8.5
Other relevant data:
Upgraded from foreman 2.5 to 3.0.1 about 2 weeks ago. Repo syncs and CV publish when no filter is present run without issue. Applying a filter to a published CV as well as publishing a new CV with a filter result in errors.
In Dynflow we observe that the error takes place at step : Actions::Pulp3::Repository::CopyContent
Below the message displayed in Foreman UI
Error message: the server returns an error
HTTP status code: 400
Response headers: {"date"=>"Fri, 26 Nov 2021 12:11:48 GMT", "server"=>"gunicorn", "content-type"=>"application/json", "vary"=>"Accept,Cookie", "allow"=>"POST, OPTIONS", "x-frame-options"=>"SAMEORIGIN", "content-length"=>"202", "correlation-id"=>"e512c836-79d5-4c60-947e-205b2dc1033e", "access-control-expose-headers"=>"Correlation-ID", "via"=>"1.1 foremanserver.domain", "connection"=>"close"}
Response body: ["Could not find the following content units: ['/pulp/api/v3/content/rpm/advisories/3d0b3867-5689-4be5-8ed6-8a3a3721e0b0/', '/pulp/api/v3/content/rpm/advisories/c77fd86a-5379-45a1-b790-ac16aed44a94/']"]Error message: the server returns an error
HTTP status code: 400
Response headers: {"date"=>"Fri, 26 Nov 2021 12:11:27 GMT", "server"=>"gunicorn", "content-type"=>"application/json", "vary"=>"Accept,Cookie", "allow"=>"POST, OPTIONS", "x-frame-options"=>"SAMEORIGIN", "content-length"=>"202", "correlation-id"=>"e512c836-79d5-4c60-947e-205b2dc1033e", "access-control-expose-headers"=>"Correlation-ID", "via"=>"1.1 foremanserver.domain", "connection"=>"close"}
Response body: ["Could not find the following content units: ['/pulp/api/v3/content/rpm/advisories/683600e2-c300-4181-babb-b14f687e16c7/', '/pulp/api/v3/content/rpm/advisories/3671b62e-0808-42c8-abf9-9ec4a03b1830/']"]
Filter we are trying to use (displays matching content as expected):
exclude kernel* Greater than version 4.18.0-348.el8.x86_64
Repos in the CV:
- Red Hat Enterprise Linux 8 for x86_64 - BaseOS RPMs 8
- Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8