Bug #38096
openAPT repos using flat repo format cannot be synced to smart proxy
Description
Definitely affects APT repos with structured APT enabled, may be a problem even when structured APT is not enabled.
Hosts consuming the repo directly from the server will also get an incorrect repo config if structured APT is enabled.
The root cause is that pulp_deb reports the flat repo distribution that was synced for the repo version, but publishes using a normal distribution named "flat-repo".
This is a poor design choice in pulp_deb, but the quickest and easiest way to fix it is to add special handling for APT repos on the Katello side.
Steps to Reproduce:
1. Use a system with structured APT enabled.
2. Sync an APT repo using "flat" repo format:
- Upstream URL: https://fixtures.pulpproject.org/debian-flat/
- Releases/Distributions: /
3. Add to CV/LCENV, and sync to orcharhino proxy
4. Alternatively try to use on consuming host
Actual results:
sync to orcharhino proxy fails
The consuming host cannot find the repo metadata
Expected results:
Sync to proxy and use on hosts works.