How to verify whether Red Hat Satellite v 5.x server is successfully migrated from RHN Hosted to RHSM?

Solution Verified - Updated

Environment

  • Red Hat Satellite v 5.6 and 5.7
  • RHN Hosted to RHSM migration

Issue

  • How to verify whether Red Hat Satellite v 5.x server is successfully migrated from RHN Hosted to RHSM?

Resolution

  • Confirm using subscription-manager command

Subscription-manager status should be current.

# subscription-manager status 
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Current

Red Hat Satellite subscription should be attached to the system.

# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   Red Hat Satellite 
Provides:            Red Hat Satellite
                            Red Hat Satellite Capsule

  • Use below steps to confirm the RHN Hosted to RHSM migration is successful:
# grep RHSM /etc/sysconfig/rhn/systemid

<value><string>This is a Satellite System that is already registered with RHSM. It does not have a base channel and does not receive any updates through RHN</string></value>
<value><string>Satellite_Registered_To_RHSM_satellite5.example.com</string></value>

Above lines will be seen in the systemid file after successful satellite certificate activation.

  • Confirm that the system is not registered to RHN Classic as well as RHSM, using yum repolist command output and below checks
# yum repolist 
Loaded plugins: product-id, search-disabled-repos, security, subscription-manager 
repo id                                                               repo name                                                           status
rhel-6-server-rpms                            Red Hat Enterprise Linux 6 Server (RPMs)                20,029
rhel-6-server-satellite-5.7-rpms      Red Hat Satellite 5.7 (for RHEL 6 Server) (RPMs)           736
  1. Notice the line starting with Loaded plugins:, there should not be rhnplugin loaded in the above yum command output.
  2. RHSM repositories end with rpms, so all the repo id's listed in above yum command output should end with rpms.

If any of these conditions are not satisfied, make sure all the steps mentioned in the Preparing Satellite 5 systems for Red Hat Network's End of Life article have been followed.

SBR
Product(s)
Category

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.