Problem:
Katello suddently stopped listing installed subscriptions on new registered clients. Subscriptions can be added by GUI and hammer cli but they do not show up in Web or with “hammer host subscription product-content”. I can remove subscriptions only by hammer cli by using the product id.
Expected outcome:
Katello GUI or hammer cli to show subscribed content of a host
Foreman and Proxy versions:
foreman-3.0.0-1.el8.noarch
katello-4.2.0.1-0.1.rc3.el8.noarch
foreman-proxy-3.0.0-1.el8.noarch
Distribution and version:
CentOS 8.4
Other relevant data:
Adding a subscription to my host
[root@fm /]# hammer host subscription attach --host XXX --subscription-id 8ab19e8b7a2f3e33017a3385b6f600eb
Subscription attached to the host successfully.
Show Subscription Status on this host
[root@fm /]# hammer host subscription product-content --host XXX
—|------|------|-----|---------|-------|------------------|---------
ID | NAME | TYPE | URL | GPG KEY | LABEL | DEFAULT ENABLED? | OVERRIDE |
---|
Nothing here? no base subscriptions and no trace of the newly added subscription. Same on Web.
Check if client gets this repo:
[root@xxx /]# subscription-manager repos | grep Microsoft
Repo ID: XXX_Microsoft_Prod_el8_msprod
Repo URL: https://foreman/pulp/content/myorg/Library/al8/custom/Microsoft_Prod/el8_msprod
Yep, that repo is here and dnf update also loading the metadata of it.
Remove subscription on my host
[root@fm /]# hammer host subscription remove --host XXX --subscription-id 8ab19e8b7a2f3e33017a3385b6f600eb
Subscription removed from the host successfully.
Check if this repo disappear on the client
[root@xxx /]# subscription-manager repos | grep Microsoft
[root@xxx /]#
as expected, dnf update no longer shows this repo.
Again lets see what hammer give us about the subscription status
[root@fm /]# hammer host subscription product-content --host XXX
—|------|------|-----|---------|-------|------------------|---------
ID | NAME | TYPE | URL | GPG KEY | LABEL | DEFAULT ENABLED? | OVERRIDE |
---|
Still nothing.
Conclusion: adding and removing subscriptions work but katello suddently started to no longer show up subscription status on newly added hosts.
I added around 60 new hosts on sunday and all worked well and subscriptions status still show up for these hosts. Today every host i add show no subscriptions on the hosts. Yesterday i did only one thing on this installation, pressing import roles in the ansible roles window as a preperation to work with ansible in foreman, nothing got assigned to any hosts.