Smart proxies sync Ubuntu 24.04

Problem:
After upgrade to Foreman 3.14 and katello 4.16.1 my Ubuntu sync to other Smart proxies is not right like on main Foreman server. For example in noble-security it fails folder noble-security/ under dists/? Sync is working with no errors?

ON MAIN FOREMAN server:
Index of /pulp/content/COM/PRODUCTIVE/Ubuntu_24_04/custom/Ubuntu_24_04/noble-security/dists/
../
default/                                                                                            25-Apr-2025 05:20  2.3 kB
noble-security/                                                                                     25-Apr-2025 05:22  9.3 kB
On other Smart proxies:
Index of /pulp/content/COM/PRODUCTIVE/Ubuntu_24_04/custom/Ubuntu_24_04/noble-security/dists/
../
default/                                                                                            23-May-2025 22:20  2.6 MB

image

Expected outcome:

Foreman and Proxy versions:
Foreman 3.14
Katello 4.16.1
RHEL 9.6
Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data:

This is by design, since syncing both “structured” and “simple” repository structure to proxy can cause serious issues in certain situations.

All packages that are found under the noble-security release/distribution, can also be found under default (which uses a single component named all). So your choices are the following:

  1. Configure your hosts to use deb <url> default all for now.
  2. Migrate your instance to use structured APT.

Once you migrate your instance to structured APT both the server and the proxy will stop publishing the default path, but both of them will publish the noble-security path. In other words all deb/APT repositories will start using only the structure of the upstream repository that you synced, but not default/all.

There is a guide for how to enable structured APT here: Managing content

Note that we plan to migrate all users to structured APT with some future release of Katello (possibly 4.18). At that point the migration will happen automatically during upgrade. If you already enable structured APT mode before then, this step during the upgrade will be trivial.

Note also that there are some minor known issues with structured APT, that will be fixed in Katello 4.17, but are not currently planned for backport to 4.16.

2 Likes