Unable to find available subscriptions for installed products.

Latest response

I am using Red Hat Version 7.6.

-unname -a

3.10.0-1062.4.3.el7.x86_64 #1 SMP Tue Nov 12 10:42:40 EST 2019 x86_64 x86_64 x86_64 GNU/Linux

I have successfully registered my system, but, am unable to to get any subscriptions assigned to it.

I have tried the following several times and none of it seems to help. Any assistance would be greatly appreciated.

The system was registered as follows.

subscription-manager register --username (login-id) --password 'password' --auto-attach

subscription-manager repos --enable="rhel-7-server-rpms"

This system has no repositories available through subscriptions.

subscription-manager list --available --all

No available subscription pools to list

yum repolist all

This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
repolist: 0

subscription-manager attach --auto

Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status: Not Subscribed

Unable to find available subscriptions for all your installed products.

yum check-update

This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
There are no enabled repos.
Run "yum repolist all" to see the repos you have.
To enable Red Hat Subscription Management repositories:
subscription-manager repos --enable
To enable custom repositories:
yum-config-manager --enable

Responses

Hi Paul,

Execute the following steps in exactly the given order. :)

Un-register the system :

sudo subscription-manager remove --all
sudo subscription-manager unregister
sudo subscription-manager clean

Re-register the system :

sudo subscription-manager register
sudo subscription-manager refresh

Search for the Pool ID :

sudo subscription-manager list --available

Attach to subscription :

sudo subscription-manager attach --pool=<Pool-ID>

Clean YUM and cache :

sudo yum clean all
sudo rm -r /var/cache/yum

Update the resources :

sudo yum upgrade

Regards,
Christian

Hi Christian, thanks for this. Your solution helped me with a similar problem for RHEL8.

Before:

[root@rhel8 ~]# subscription-manager attach --auto
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64 Beta
Status:       Not Subscribed

Unable to find available subscriptions for all your installed products.

After:

Using list --available and then attach --pool= worked for me (instead of --auto which would not work).

Thanks a lot.

You're welcome, Dan ! I'm glad that it worked for you. :)

Regards,
Christian

Thanks a lot its working!!!1

Great ... you're welcome, Raju ! :)

Hi Christian,

Many thanks for your response. Unfortunately as you can see below I get the same result. i.e. No available subscription pools to list.

Kind Regards

Paul

[root@pgrhel ~]# sudo subscription-manager remove --all
0 subscriptions removed at the server.

[root@pgrhel ~]# sudo subscription-manager unregister
Unregistering from: subscription.rhsm.redhat.com:443/subscription
System has been unregistered.

[root@pgrhel ~]# sudo subscription-manager clean
All local data removed

[root@pgrhel ~]# sudo subscription-manager register
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: paulgriffinau-1
Password: 
The system has been registered with ID: f2204c27-c589-4638-a3f0-7780db191738
The registered system name is: pgrhel

[root@pgrhel ~]# sudo subscription-manager refresh
All local data refreshed

[root@pgrhel ~]# sudo subscription-manager list --available
No available subscription pools to list

[root@pgrhel ~]# sudo yum clean all
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 To enable Red Hat Subscription Management repositories:
     subscription-manager repos --enable <repo>
 To enable custom repositories:
     yum-config-manager --enable <repo>

[root@pgrhel ~]# sudo rm -r /var/cache/yum
[root@pgrhel ~]# sudo yum upgrade
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign 
subscriptions.
There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 To enable Red Hat Subscription Management repositories:
     subscription-manager repos --enable <repo>
 To enable custom repositories:
     yum-config-manager --enable <repo>

Hi Paul,

Do you possibly have registered another system already ?

sudo subscription-manager list --consumed

If you have, un-register the other system and try again. :)

Regards,
Christian

Hi Christian,

Again many thanks for taking the time. I did have two (2) systems registered on different machines. I did as follows.

I unregistered both using the following commands :

sudo subscription-manager remove --all
sudo subscription-manager unregister
sudo subscription-manager clean

I then deleted both VM's and started fresh on one (1) machine. I reinstalled and still sadly get the same results. Is there something I'm missing?

[root@localhost ~]# sudo subscription-manager list --consumed
No consumed subscription pools were found.
[root@localhost ~]#

[root@localhost ~]# subscription-manager list --available --all
No available subscription pools to list
[root@localhost ~]#

Kind Regards

Paul

Hi Paul,

Looks like you don't have a valid subscription ... check https://access.redhat.com/management/products.
Next step would be to contact the Red Hat Customer Service team ... ask them to clarify the situation. :)

Regards,
Christian

Hi Christian,

Many thanks again for your help. I have just sent a note of to the RedHat team. If I get something back I will update you and post in the thread.

Kind Regards

Paul

You're welcome, Paul and thanks for the information. Hope the problem gets resolved soon ! :)

Regards,
Christian

Great I got it to work thank you very much C.L.!! Your instructions were very helpful, I was pulling my hair all day :)

You're welcome, Hansy ! I'm glad to see that the instructions were useful for you. :)

Regards,
Christian

Hi Christian,

The Subscription was register on another VM , which was deleted , when i am trying to use register on new VM getting below errror.

root@rhel195 ~]# subscription-manager attach Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Not Subscribed

Unable to find available subscriptions for all your installed products.

Please sugget .. Thanks in advance.

Hi Divya,

You have to unregister the old system ... go to https://access.redhat.com/management/systems and do it there. :)

Regards,
Christian

Thanks a lot this helped me as well.

You're welcome, Desmond ! :)