February 9, 2022, 2:49pm
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.
Foreman and Proxy versions:
Foreman and Proxy plugin versions:
Distribution and version:
Other relevant data:
In Content Hosts > (your host) > Repository Sets, do you see the repositories listed? Are they disabled?
hmm, are the subscriptions listed under List/Remove in the Subscriptions tab?
February 9, 2022, 3:13pm
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.)
February 10, 2022, 7:11am
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?
February 11, 2022, 8:09am
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?
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?
February 18, 2022, 8:38am
[root@client entitlement]# ls -al
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]# 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
-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.