Satellite Sync Fails after Recently Migrating Satellite System from RHN to RHSM

Solution Verified - Updated

Environment

  • Red Hat Satellite 5.6
  • Red Hat Satellite 5.7

Issue

  • I recently migrated my Satellite 5.6 or 5.7 server from RHN to RHSM, and when I run satellite-sync, it fails with:
ERROR: there was a problem synchronizing the information.
       Error message: ERROR: this server must be registered with RHN.
  • or:
ERROR: there was a problem synchronizing the information.
       Error message:
Error Message:
    Service not enabled for system profile: "satellite.example.com"
Error Class Code: 31
Error Class Info:
     This system does not have a valid entitlement for Red Hat Network.
     Please visit https://rhn.redhat.com/rhn/systems/SystemEntitlements.do
     or login at https://rhn.redhat.com, and from the "Your RHN" tab,
     select "Subscription Management" to enable RHN service for this system.
Explanation:
     An error has occurred while processing your request. If this problem
     persists please enter a bug report at bugzilla.redhat.com.
     If you choose to submit the bug report, please be sure to include
     details of what you were trying to do when this error occurred and
     details on how to reproduce this problem.

Resolution

This error indicates that the migration process is not complete. In order to complete the migration process, do the following:

Go to This content is not included.this page on the Customer Portal and choose the profile for the Satellite system showing the issue. On the next page, make sure that the Red Hat Satellite subscription has been removed from the Satellite's certificate. Download the new certificate and save it for the last step in this document.

Next, attach the Satellite subscription directly to the Satellite server. To do this, first find the Pool ID of the Satellite subscription with the following command:

# subscription-manager list --available

Then, attach the Satellite subscription to the Satellite server with the following command:

# subscription-manager attach --pool=<pool-ID-from-previous-command>

Next, disable all unneeded repositories:

# subscription-manager repos --disable '*'

And enable only the repositories needed for Satellite. Choose one of the below depending on your scenario

Satellite 5.7 on RHEL6

# subscription-manager repos --enable rhel-6-server-rpms --enable rhel-6-server-satellite-5.7-rpms

Satellite 5.6 on RHEL6

# subscription-manager repos --enable rhel-6-server-rpms --enable rhel-6-server-satellite-5.6-rpms

Satellite 5.6 on RHEL5

# subscription-manager repos --enable rhel-5-server-rpms --enable rhel-5-server-satellite-5.6-rpms

Finally, reactivate the Satellite, using the rhn-satellite-activate command

# rhn-satellite-activate -vvv --rhn-cert=Satellite-57.xml
RHN_PARENT: satellite.rhn.redhat.com

Root Cause

The migration process from RHN to RHSM was started on the Satellite but was not properly completed.

Diagnostic Steps

satellite-sync fails with:

ERROR: there was a problem synchronizing the information.
       Error message: ERROR: this server must be registered with RHN.

or:

ERROR: there was a problem synchronizing the information.
       Error message:
Error Message:
    Service not enabled for system profile: "satellite.example.com"
Error Class Code: 31
Error Class Info:
     This system does not have a valid entitlement for Red Hat Network.
     Please visit https://rhn.redhat.com/rhn/systems/SystemEntitlements.do
     or login at https://rhn.redhat.com, and from the "Your RHN" tab,
     select "Subscription Management" to enable RHN service for this system.
Explanation:
     An error has occurred while processing your request. If this problem
     persists please enter a bug report at bugzilla.redhat.com.
     If you choose to submit the bug report, please be sure to include
     details of what you were trying to do when this error occurred and
     details on how to reproduce this problem.
SBR
Product(s)

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.