Migrating RHN to RHSN encountered error

Latest response

I am running a rhn-migrate-classic-to-rhsm, it stops with the message '/etc/sysconfig/rhn/systemid Legacy system ID couldn't found'. Because the systemid file does not exist.
How can I migrate?

Responses

If the RHN system ID file does not exist, then the system apparently isn't properly registered to RHN. Instead of migrating, you could just register that system to RHSN just like a regular new system.

If there is a record of that system in RHN, check when the system was last seen by RHN: has the system been reinstalled or restored from backup since then? Someone may have forgotten to re-register the system.

Thank you for a quick reply. It really helps. I have registered the system today, after reinstalling the RHEL 7.3 (dev). This system is already linked to subscription, because I deleted the previous installation system from the inventory. yum command did the download of rpms correctly. Should there be an interval before this systemid file is created? My /var partition became full due to this yum downloading of yums. Has this something to do with this error, by any chance?

The /etc/sysconfig/rhn/systemid file is only used with the old RHN registration system. If you've now registered the system using RHSN instead, that file won't be created at all.

With RHSN, there is no such system ID file at all. Instead, the server is identified to RedHat by a X.509 certificate stored in /etc/pki/consumer/cert.pem and its corresponding private key in the same directory as key.pem.

Based on what you said, it looks like your system is successfully registered to RHSN and all is well.

Thank you Matti. It seems version 7.3 uses subscription-manager (RHSN). So no need to migrate. I had this notice in the website. So I took it for granted, it applies to my case, too. In fact, it doesn't necessarily mean the migration work is applicable to me. The instruction is not kind. It should first mention this migration is applicable to which version. In my case, it is 7.3, with which user subscribes using RHSN (subscriptioni-manager). Case resolved.

Close

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