How to resolve activation issue for Satellite 5 after migrating from RHN to RHSM?

Solution Verified - Updated

Environment

Satellite 5.x

Issue

Unable to activate the satellite after migration to RHSM

Resolution

If you are using email address as a login, try using your associated login name instead or create a new user that does not contain an email address.

There is an open bugzilla for this issue This content is not included.Migrating Satellite 5 installations from RHN to RHSM fails if the user has a username which is an email address.

Root Cause

Limitation of the new activation API on RHN side.

Diagnostic Steps

The following error message is returned when trying to activate of Satellite certificate:

# rhn-satellite-activate --rhn-cert=/etc/sysconfig/rhn/rhn-entitlement-cert.xml
RHN_PARENT: satellite.rhn.redhat.com
HTTP_PROXY: None
HTTP_PROXY_USERNAME: None
HTTP_PROXY_PASSWORD: <password>
CA_CERT: /usr/share/rhn/RHNS-CA-CERT
Checking cert XML sanity and GPG signature: '/usr/bin/validate-sat-cert.pl --keyring /etc/webapp-keyring.gpg /etc/sysconfig/rhn/rhn-entitlement-cert.xml-TyPUGN'
Database connectioned initialized: refer to /etc/rhn/rhn.conf
Attempting local RHN Certificate push (and therefore activation)
Executing: remote XMLRPC activation call.
Error reported from RHN: <Fault -2: 'unhandled internal exception: \nError Message:\n    Invalid username provided when registering system\nError Class Code: 2\nError Class Info: \n     Invalid username and password combination.\n\n     If you are using email address as a login, try using your associated\n     login name instead.\nExplanation: \n     An error has occurred while processing your request. If this problem\n     persists please enter a bug report at bugzilla.redhat.com.\n     If you choose to submit the bug report, please be sure to include\n     details of what you were trying to do when this error occurred and\n     details on how to reproduce this problem.\n'>

ERROR: unhandled XMLRPC fault upon remote activation: <Fault -2: 'unhandled internal exception: \nError Message:\n    Invalid username provided when registering system\nError Class Code: 2\nError Class Info: \n     Invalid username and password combination.\n\n     If you are using email address as a login, try using your associated\n     login name instead.\nExplanation: \n     An error has occurred while processing your request. If this problem\n     persists please enter a bug report at bugzilla.redhat.com.\n     If you choose to submit the bug report, please be sure to include\n     details of what you were trying to do when this error occurred and\n     details on how to reproduce this problem.\n'>

ERROR: <Fault -2: 'unhandled internal exception: \nError Message:\n    Invalid username provided when registering system\nError Class Code: 2\nError Class Info: \n     Invalid username and password combination.\n\n     If you are using email address as a login, try using your associated\n     login name instead.\nExplanation: \n     An error has occurred while processing your request. If this problem\n     persists please enter a bug report at bugzilla.redhat.com.\n     If you choose to submit the bug report, please be sure to include\n     details of what you were trying to do when this error occurred and\n     details on how to reproduce this problem.\n'>
SBR
Product(s)
Components

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.