Why does subscription-manager return a non-zero exit code and display "Unable to find available subscriptions for all your installed products" during an otherwise successful registration to a Satellite where Simple Content Access is in use?

Solution Verified - Updated

Environment

  • Red Hat Satellite 6
  • Red Hat Enterprise Linux (RHEL) 7.8 or older
  • Red Hat Enterprise Linux (RHEL) 8.1 or older
  • Simple Content Access enabled
  • Update Support for SAP Solutions
  • Extended Update Support

Issue

  • Registering to a Satellite server where Simple Content Access is in use results in message "Unable to find available subscriptions for all your installed products." and a non-zero exit code:

Resolution

This issue is fixed with following errata

For RHEL-7.7 EUS/E4S this issue is addressed in Bugzilla This content is not included.2025564

For more KB articles/solutions related to Red Hat Satellite 6.x Client Subscription Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Client Subscription Issues

Root Cause

subscription-manager used to complain about subscriptions not being attached, which is appropriate when Simple Content Access is disabled in the parent Satellite but isn't when enabled.

Diagnostic Steps

  • Register your system to a Satellite or Customer Portal which has Simple Content Access enabled

        # subscription-manager register --org="ACME" --activationkey="rhel7"
        Unregistering from: satellite.example.com:443/rhsm
        The system with UUID d1b9813a-79d6-47e7-8d0f-e55cec0ba845 has been unregistered
        All local data removed
        The system has been registered with ID: 4945881d-cb05-4166-a364-ee91e7f8ea46
        The registered system name is: host.example.com
        Installed Product Current Status:
        Product Name: Red Hat Enterprise Linux Server
        Status:       Not Subscribed
    
        Unable to find available subscriptions for all your installed products.
        # echo $?
        1
    
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.