OracleLinux 7.9 activation key

Problem:
I have a problem with activation key for OracleLinux (7.9). In activation key all the repos are enabled and subscriptions are added. But i still do not get the repos listed?

[root@host1 yum.repos.d]# subscription-manager register --org=“ORG” --activationkey=“OracleLinux_7_9” --force
The system with UUID 4fb77729-29a9-4ff3-a257-07a8f1882079 has been unregistered
The system has been registered with ID: d5c73409-a4f2-4364-b779-1e11fd264d85

No products installed.

Expected outcome:

Foreman and Proxy versions:

  • foreman-3.0.1-1.el7.noarch
  • katello-4.2.1-1.el7.noarch

Foreman and Proxy plugin versions:

Distribution and version:
CentOS 7.9

Other relevant data:

In Content Hosts > (your host) > Repository Sets, do you see the repositories listed? Are they disabled?

There are no repos?

hmm, are the subscriptions listed under List/Remove in the Subscriptions tab?

They are not listed like in my first message…i can only add them manually?

It seems like the subscriptions are not getting attached via the activation key. You can attach them manually here on the content host page, but you may also want to check the activation key itself and confirm that the subscriptions you want are listed in List/remove there.

(To be clear, fixing the activation key won’t affect the host unless you re-register.)

Thanks, I know.
I have recreated the key and re-registered the host and it will not add the subscriptions.

Are the subscriptions correctly listed on the activation key? If not, what happens when you try to add them?

They are normally listed in Activation key:

But when i register a host they do not get the subscriptions…i can only add them manually.

hmm… This all looks like it should be working. Can you provide the output of production.log at the moment when you are registering the system?

Production log:

Would you be able to show the subscriptions tab of the OracleLinux_7_9 activation key? Also, after registration, is there anything in /etc/pki/entitlement/ on the client?

[root@client entitlement]# ls -al
total 4
drwxr-xr-x 2 root root 6 Feb 18 09:12 .
drwxr-xr-x. 14 root root 4096 Feb 8 15:01 …
[root@client entitlement]#
[root@client entitlement]#
[root@client entitlement]#
[root@client entitlement]#
[root@client entitlement]# subscription-manager register --org=“ORG” --activationkey=“OracleLinux_7_9” --force
Unregistering from: foreman.com.lan:443/rhsm
The system with UUID 5d4959ec-977c-4f98-b33d-de8e0a8dfc26 has been unregistered
All local data removed
The system has been registered with ID: 0ea65089-77c6-4415-8994-e533c86cdf8e
The registered system name is: client.org
No products installed.
[root@client entitlement]# ll
total 40
-rw-r–r-- 1 root root 3243 Feb 18 09:15 1862153515705074056-key.pem
-rw-r–r-- 1 root root 2826 Feb 18 09:15 1862153515705074056.pem
-rw-r–r-- 1 root root 3243 Feb 18 09:15 4221580365434671705-key.pem
-rw-r–r-- 1 root root 2851 Feb 18 09:15 4221580365434671705.pem
-rw-r–r-- 1 root root 3243 Feb 18 09:15 4513915910421612158-key.pem
-rw-r–r-- 1 root root 2855 Feb 18 09:15 4513915910421612158.pem
-rw-r–r-- 1 root root 3243 Feb 18 09:15 5501203988497676357-key.pem
-rw-r–r-- 1 root root 2814 Feb 18 09:15 5501203988497676357.pem
-rw-r–r-- 1 root root 3243 Feb 18 09:15 5763068523174769989-key.pem
-rw-r–r-- 1 root root 2847 Feb 18 09:15 5763068523174769989.pem

At the end of registration i get “No products installed”.
Somehow he is registering now with activation key and i can see al the products…but i have not changed anything. :slight_smile: