Ubuntu Suites and Components

This means your underlying pulp instance is not configured to publish under the default/all distribution/component combination.

Background: Right now there is no way of passing distributions (aka releases, aka suite, aka codename) and components all the way to the managed systems, so the ATIX published subscription manager has them hard coded as distribution=default and component=all. Which works fine, so long as Pulp is also configured to publish using the same. (The upload package feature also relies on the default/all combination, since manually uploaded packages will not be associated with any upstream distribution/component combination).

What you need to do to fix it:

  1. Make sure the json config file /etc/pulp/server/plugins.conf.d/deb_distributor.json exists on your server, and contains at least the value "publish_default_release": true. The minimal config file you need should look like this:
    $ cat /etc/pulp/server/plugins.conf.d/deb_distributor.json 
    {
      "publish_default_release": true
    }
    
  2. I am not sure if this is required, but to be safe restart your foreman (or at least your pulp services) to ensure the changes take effect:
    foreman-maintain service restart
    
  3. You now need to republish the metadata of all repositories and content views that were published before the change. There are “Repubish repository metadata” actions throughout the Katello GUI, but the easiest way to ensure this is probably just to publish new content view versions.
  4. If you now browse to those repos via HTTP you should be able to see “paths like” focal-main/dists/default/all/binary-amd64/ (your example) in addition to all the paths you previously had.
  5. If this was all successfull you should now be able to use your content via the subscription manager.

Important: May I ask what guide/documentation you were following to get to this point (or where you would expect to find such documentation in case you did it on your own)? If you, the user, are walking into this, it means we did not document the required Pulp configuration properly and I would like to see that fixed. :wink:

2 Likes