Problem:
I’ve got below messages while trying to sync ubuntu packages to foreman proxy server, but according to below foreman-proxy expects the real distro/component names (focal/main or bionic/main)
ATIX, can you help?
Ok, there are several aspects to this that need to be explored more or less independently of one another:
Pulp 2 vs Pulp 3 publish considerations
It looks like you are using Pulp 3 for deb (but I am not 100% sure).
Both Pulp 2 and Pulp 3 can be used to publish what we call “simple” mode (using the dists/default/all path) as well as “structured” mode (using upstream paths like dists/focal/). Pulp can even publish both sets of paths for the same repository (which would work as a workaround for your issue). However, for Pulp 2 it is a matter of configuration file options, which combination of paths is published, while for Pulp 3 it is a matter of what parameters are passed to the API. This means that the Pulp 2 case is within user control (configuration file), while for Pulp 3, Katello is currently hard coded to publish using simple mode only (@mbucher is that correct?).
Smart Proxy considerations:
I was under the impression that the smart proxy sync was hard coded to use “simple” paths only. Your problem indicates that this is not (or no longer) the case. This clashes with my memory of an explicit design choice we made, so I we will need to investigate. If current Katello publishes using a path, that current pulp proxy does not use for sync, then that is of course a bug. If you are on Pulp 2 you can work around that bug by configuring Pulp to use the right publish paths for the proxy. For Pulp 3 that would require changes to the Katello code.
@quba42 thanks so much for your reply
According to the information I provided before, katello server uses pulpcore which is pulp3 and foreman proxy uses pulp2. As I read in the other posts, changing Ubuntu packages from default/all to real names like focal/main can cause issues with subscription manager. Not sure if we can reconfigure smart proxy pulp2 components to use default/all.