[WARNING] subscription-manager:<pid>:MainThread @cert_sorter.py:199 - Installed product 479 not present in response from server.

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6
  • Red Hat Enterprise Linux
  • Red Hat Customer Portal
  • Simple Content Access (SCA)

Issue

  • Warning messages are seen in the /var/log/rhsm/rhsm.log file for all installed products on the registering server.

Resolution

  • This warning message is always seen when using Simple Content Access. This is just a warning message and should not be blocking any functionality for the client.

Root Cause

  • When using simple content access, the list of installed products is not saved for the client on the Candlepin service on either a Satellite or the Portal as the compliance check for a server is now always true. The compliance check for a server is used for entitlement registration where the list of attached subscriptions would affect the overall status of the registering system.

  • A request for enhancement has been created to reduce the log level of this message to debug if the compliance is true. Bugzilla 2211676

  • An errata has been released to resolve this issue. RHBA-2023:7092

Diagnostic Steps

  • Register a system to an SCA-enabled environment (Satellite 6 Global Registration example):

    [root@drone86 ~]# curl -sS --insecure 'https://bombsat613.d.sysmgmt.cee.redhat.com/register?activation_keys=test-ak&location_id=2&operatingsystem_id=1&organization_id=1&setup_insights=false&setup_remote_execution=false&update_packages=false' -H 'Authorization: Bearer eyJhbG...8zh4' | 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".
    The system has been registered with ID: c1352320-ddba-4e84-b94e-886a7ba5871c
    The registered system name is: drone86.usersys.redhat.com
    
  • Curl the compliance endpoint as subscription-manager does to see the compliance information:

    [root@drone86 ~]# curl -sku admin:redhat https://bombsat613.d.sysmgmt.cee.redhat.com/rhsm/consumers/c1352320-ddba-4e84-b94e-886a7ba5871c/compliance
    {"status":"disabled","compliant":true,"date":"2023-05-31T21:24:40+0000","compliantUntil":null,"compliantProducts":{},"partiallyCompliantProducts":{},"partialStacks":{},"nonCompliantProducts":[],"reasons":[],"productComplianceDateRanges":{}}
    
  • subscription-manager register example below:

    [root@drone86 ~]# subscription-manager register
    Registering to: bombsat613.d.sysmgmt.cee.redhat.com:443/rhsm
    Username: admin
    Password: 
    Hint: User "admin" is member of following organizations: Default_Organization, No-SCA
    Organization: Default_Organization
    Hint: Organization "Default_Organization" contains following environments: Library, Dev, Test, Prod
    Environments: Library
    The system has been registered with ID: f1a982cd-4c2d-43e2-8b1f-690cdffb63f3
    The registered system name is: drone86.usersys.redhat.com
    
    [root@drone86 ~]# curl -sku admin:redhat https://bombsat613.d.sysmgmt.cee.redhat.com/rhsm/consumers/f1a982cd-4c2d-43e2-8b1f-690cdffb63f3/compliance
    {"status":"disabled","compliant":true,"date":"2023-06-01T13:32:30+0000","compliantUntil":null,"compliantProducts":{},"partiallyCompliantProducts":{},"partialStacks":{},"nonCompliantProducts":[],"reasons":[],"productComplianceDateRanges":{}}
    

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.

Comments