Trouble registering a system

Latest response

Hello,

I have a recently built server that was originally connected to a different Satellite server to get its initial updates, and then was moved to a new network with a new Satellite server. I'm having issues registering the system to the new Satellite server.

The step in the host configuration guide where you run "rpm -Uvh http://satellite.example.com/pub/katello-ca-consumerlatest.noarch.rpm" from the host you want to register said it failed to connect, so I found the RPM on the Satellite server, copied it over to the host, and ran the RPM to install the CA cert.

After installing the CA cert, I ran "subscription-manager register --org "Default_Organization" --activationkey "Test_Key"" (filled in with appropriate strings), and got an error "This system has already been registered with Red Hat using RHN classic".

I checked on the Red Hat portal itself and the hostname was not registered there. I checked on the Satellite server where it first got its update and that hostname was registered twice. I deleted both of them.

On the host I ran "subscription-manager clean" and "subscription-manager unregister". The 2nd command gave me the message "This system is currently not registered", even though the command above tells me its registered with RHN Classic.

This is the first system I'm trying to register to this new Satellite, so I'm sure I'm just missing some important detail.

Any suggestions?

Responses

It looks like your client is still pointing to your old satellite.

You can check this by:

cat /etc/rhsm/rhsm.conf | grep hostname

The best way is to clean the existing cert rpm by:

# subscription-manager unregister  (Note: its okay if this errors saying that the system is not registered now)
# subscription-manager clean
# yum erase -y $(rpm -qa |grep katello-ca-consumer)     
# rpm -Uvh http://satellite.example.com/pub/katello-ca-consumerlatest.noarch.rpm     
   (Note1 : satellite.example.com is the new satellite)
   (Note2: This command should work fine without errors for proper cert install and updation of /etc/rhsm/rhsm.conf)
# subscription-manager register --org "Default_Organization" --activationkey "Test_Key"

You can check the host of /etc/rhsm/rhsm.conf and it should show the new satellite.

I got through the first 4 steps ok, but these are the errors I got when trying to re-register it again. I tried running "yum update" after the register command to see if it would at least try to go to the correct Satellite server:

[root@ rhsm]# subscription-manager register --org="ORG_Name" --activationkey="Activation Key" WARNING

This system has already been registered with Red Hat using RHN Classic.

Your system is being registered again using Red Hat Subscription Management. Red Hat recommends that customers only register once.

To learn how to unregister from either service please consult this Knowledge Base Article: https://access.redhat.com/kb/docs/DOC-45563 At least one activation key must have a lifecycle environment and content view assigned to it [root@ rhsm]# yum update Loaded plugins: product-id, rhnplugin, search-disabled-repos, subscription-manager There was an error communicating with RHN. Red Hat Satellite or RHN Classic support will be disabled. Error communicating with server. The message was:

Error Message: Please run rhn_register as root on this client Error Class Code: 9 Error Class Info: Invalid System Credentials. Explanation: An error has occured while processing your request. If this problem persists please consult the Red Hat Customer Portal Knowledge Base landing page on common registration Error Class Codes at https://access.redhat.com/solutions/17036 for a possible resolution. If you choose to open a support case in the Red Hat Customer Portal, please be sure to include details of what you were trying to do when this error occurred and specifics on how to reproduce this problem.

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

what is the hostname shown in:

cat /etc/rhsm/rhsm.conf | grep hostname

If this shows hostname = subscription.rhsm.redhat.com your katello-ca-consumerlatest.noarch.rpm is not installed correctly or installed with errors.

It's got the correct FQDN in rhsm.conf - it was actually in there before I did the above steps.

Can you get the output for the following?

# cat /etc/yum/pluginconf.d/rhnplugin.conf | grep enabled
# cat /etc/yum/pluginconf.d/product-id.conf | grep enabled

On the first one -> enabled=0 On the second one -> enabled=1

Thank you for your responses. I have exhausted all my ideas. May be open up a support ticket so this can be analyzed with logs, etc.

Ok, thanks. I'll open a ticket this afternoon to pursue the resolution.

Can u please respond ?../

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.