On Red Hat Satellite 5.x manifest/certificate activation fails with "RHN::Exception: Required field slots not found in RHN" or not enough management and provisioning entitlement

Solution Verified - Updated -

Environment

  • Red Hat Satellite 5.x

Issue

  • Activating a subscription manifest fails with below error message:
# rhn-satellite-activate --manifest=/tmp/manifest.zip 

ERROR: Red Hat Satellite Entitlement Certificate failed to validate.
MORE INFORMATION:
  Return value: 255
  Standard-out: 
  Standard-error: RHN::Exception: Required field slots not found in RHN::SatelliteCert=HASH(0xdaa4f0)
  RHN::Cert /usr/share/perl5/vendor_perl/RHN/Cert.pm 218 RHN::Exception::throw
  main /usr/bin/validate-sat-cert.pl 60 RHN::Cert::check_required_fields

ERROR: RHN Entitlement Certificate failed to validate.
  • Activating a Satellite certificate (for version 5.6/5.7) results to lacking management/provisioning entitlement due to less entitlement in the generated certificate than the actual quantity assigned :
Attempting local RHN Certificate push (and therefore activation)
Certificate specifies 10 of enterprise_entitled entitlements.
    There are 1090 entitlements used by systems in the base (id 1) organization.
    You might need to unentitle some systems in the base organization.
    You need to free 1080 entitlements to match the new certificate.
    In the WebUI, the entitlement is named Management.
Certificate specifies 9 of provisioning_entitled entitlements.
    There are 913 entitlements used by systems in the base (id 1) organization.
    You might need to unentitle some systems in the base organization.
    You need to free 904 entitlements to match the new certificate.
    In the WebUI, the entitlement is named Provisioning.
Activation failed, will now exit with no changes.

<rhn-cert-field name="expires">2018-07-31 23:59:59</rhn-cert-field>
<rhn-cert-field name="slots">9</rhn-cert-field>
<rhn-cert-field name="monitoring-slots">0</rhn-cert-field>
<rhn-cert-field name="provisioning-slots">9</rhn-cert-field>

Resolution

  • Regenerate the Red Hat Satellite certificate with subscriptions which provide Management Entitlement ('Smart management' or 'Red Hat Enterprise Linux with Smart management' subscriptions) and then activate the satellite certificate on the satellite server.

Root Cause

  • Red Hat Satellite certificate was missing slots field as none of the attached subscriptions were providing Management entitlement.

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.