Host registration to a Red Hat Satellite throws error as "At least one activation key must have a lifecycle environment and content view assigned to it (HTTP error code 500: Internal Server Error)"
Issue
-
Host registration to Red Hat Satellite throws error as "At least one activation key must have a lifecycle environment and content view assigned to it (HTTP error code 500: Internal Server Error)"
[root@server ~]# curl -sS --insecure 'https://satellite.fqdn.here/register? activation_keys=1&location_id=2&organization_id=1&update_packages=false' -H 'Authorization: Bearer e yJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo0LCJpYXQiOjE3MDAxNTM5ODYs...' | bash # # Running registration # Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. Error: There are no enabled repositories in "/etc/yum.repos.d", "/etc/yum/repos.d", "/etc/distro.repos.d". At least one activation key must have a lifecycle environment and content view assigned to it (HTTP error code 500: Internal Server Error)`
Environment
- Red Hat Satellite 6.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.