Can't attach subscription to a host collection in 3.10?

Problem:
Prior to Foreman 3.10, I could attach a subscription to a host collection by navigating to “Host → Host Collections → Select Collection → Actions → Subscription Management → Select Subscription → Attach”

After upgrading to 3.10, the option for “Subscription Management” in the Actions list has been removed, breaking this workflow.

What’s the new way of attaching a subscription/product to an existing Host Collection?

Expected outcome:
Easily attach a subscription to an existing Host Collection

Foreman and Proxy versions:
[root@foreman ~]# rpm -qa | grep ‘foreman-release’
foreman-release-3.10.0-1.el8.noarch

Distribution and version:
[root@foreman ~]# cat /etc/os-release
NAME=“AlmaLinux”
VERSION=“8.10 (Cerulean Leopard)”

As described in the changelog, entitlement/subscription based content access was removed with Foreman 3.10/Katello 4.12 in favor of SCA (Simple Content Access).
This has also been in the deprecations for 3.9/4.11 and at least on this version, there was also a warning about that upcoming removal on the subscriptions page.

You can find a long post about SCA at RedHat, and the Katello docs should outline the basics of how the new workflow works.
TL;DR: Access to certain content/repos is no longer governed by subscriptions, but solely by what is in a host’s content view. If a repo is in a content view, all hosts that use that CV can access it. All you need to do is enable/disable the repository in question (e.g. via an Activation Key). If you have repos that certain hosts should absolutely never be able to access, you will need to create a seperate (C)CV for that.

Hope this helps

1 Like