No repositories available through subscriptions on a host after registering it to Red Hat Satellite/Capsule 6

Solution Verified - Updated -

Issue

  • After successfully registering a host to Red Hat Satellite server using the subscription-manager command as follows:

    # subscription-manager register --org="Org1" --activationkey="AK1" --force
    The system has been registered with ID: 0ba65423-648d-41f2-8832-7584ed181c78
    The registered system name is: client.example.com
    

    the subscription-manager repos returns:

    This system has no repositories available through subscriptions.
    
  • Registering a host to Red Hat Satellite server using the global registration template:

    # set -o pipefail && curl -sS --insecure 'https://satellite.example.com:9090/register?activation_keys=AK1&force=true&ignore_subman_errors=true&organization_id=1&update_packages=false' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo2NSwiaWF0IjoxNzM2MjU0Mjk5LCJqdGkiOiI3ZDQxYTg3N2MwMjlhMTVhYjFkNTFhMmFkYzhiOTVmYTBkNGUyNzg4NWRlNTQ4YjdmM2UyNzA5YzE4ZjIzMTkwIiwiZXhwIjoxNzM2MjY4Njk5LCJzY29wZSI6InJlZ2lzdHJhdGlvbiNnbG9iYWwgcmVnaXN0cmF0aW9uI2hvc3QifQ.tQ5iKPsYeZBqFFDpjlagJBkXvIRUVXgMiUjlNYtLouc' | bash
    

    returns the following error at the end of the command execution, after registering the host:

    Updating Subscription Management repositories.
    Error: There are no enabled repositories in "/etc/yum.repos.d", "/etc/yum/repos.d", "/etc/distro.repos.d".
    Host [client.example.com] initial configuration failed
    

Environment

  • Red Hat Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content