RHEL 6.3 : autosubscription not always working

After installing RHEL6.3 on a server, the next step is to register your server as a new asset in your local inventory (in Satellite for instance) or at https://access.redhat.com

Registering and giving the right subscriptions to your server can be done with subscription-manager command line utility. If you want to do the both steps in one time, just type :

root@localhost:~#subscription-manager register –autosubscribe

If you want to know the registration and subscription state of your server :

root@localhost:~# subscription-manager list

You may have the following output :

+——————————————-+
Installed Product Status
+——————————————-+
Product Name:             Red Hat Enterprise Linux Server
Product ID:               69
Version:                  6.3
Arch:                     x86_64
Status:                   Not Subscribed           
Starts:
Expires:  

In the web console, you may have the following message looking at your server’s page :

Status  : “System is not properly subscribed”

For the moment, the only workaround found to change this state and make your server properly subscribed is to look at the pool id of one of your subscriptions for an already declared server. (Both servers must be similar in terms of subscriptions).

root@localhost:~#subscription-manager list –available |grep -A3 -w ‘Red Hat Enterprise Linux Server’
Product Name:             Red Hat Enterprise Linux Server, Standard (1-2 sockets) (Up
                        to 1 guest) with Smart Management
Product Id:               RH0184831                
Pool Id:                  8a85f984356102f801356202921d190b

Product Name:             Red Hat Enterprise Linux Server, Standard (1-2 sockets) (Up
                        to 1 guest) with Smart Management
Product Id:               RH0184831RN              
Pool Id:                  8a85f984356102f80135620294061945

Product Name:             Red Hat Enterprise Linux Server, Standard (1-2 sockets) (Up
                        to 1 guest) with Smart Management
Product Id:               RH0184831RN              
Pool Id:                  8a85f984356102f801356202a51b1952

And now, for the server in error, just manually add a subscription to it :

root@localhost:~#subscription-manager subscribe –pool=your_chosen_pool_id

To check after this fresh modification :

root@localhost:~#subscription-manager list
+——————————————-+
Installed Product Status
+——————————————-+
Product Name:             Red Hat Enterprise Linux Server
Product ID:               69
Version:                  6.3
Arch:                     x86_64                   
Status:                   Subscribed               
Starts:                   12/15/11
Expires:                  07/27/13 

 

 

 

Advertisements

One thought on “RHEL 6.3 : autosubscription not always working

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s