https://community.theforeman.org/t/smart-proxy-sync-issue/31479 <pre> HTTP status code: 400 Response headers: {"date"=>"Tue, 06 Dec 2022 08:46:13 GMT", "server"=>"gunicorn", "content-type"=>"application/json", "vary"=>"Accept,Cookie", "allow"=>"POST, OPTIONS", "x-frame-options"=>"DENY", "content-length"=>"80", "x-content-type-options"=>"nosniff", "referrer-policy"=>"same-origin", "correlation-id"=>"db6665cc-ac06-4170-bb9d-307854ced663", "access-control-expose-headers"=>"Correlation-ID", "via"=>"1.1 ukwdr-foremanp-01.iongroup.net", "connection"=>"close"} Response body: ["Cannot use 'skip_types' in combination with a 'mirror_complete' sync policy."] </pre>
Created from redmine issue https://projects.theforeman.org/issues/35829
Upstream bug assigned to None
Proposing this for 6.13 as this impacts all yum repo capsule syncs where Ignore SRPMs is set to true. Testing steps: 1. Create a repo with Ignore SRPMs checked and Mirroring Policy: Complete mirroring 2. Sync > You should hit the error. 3. If you have a capsule in the environment, try syncing the capsule and you'll see the error for any repos with Ignore SRPMs checked regardless of mirroring policy on the repo.
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35829 has been resolved.
Verified! I am no longer able to set the skip types on repositories that have complete mirroring set. I also tried the migration manually to verify that it works.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Satellite 6.13 Release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2023:2097