What are the different ways to refresh Red Hat Satellite Manifest and how to automate the manifest refresh?

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.x

Issue

  • How to add subscriptions into the manifest?
  • How to refresh manifest in Red Hat Satellite 6?
  • How to automate manifest refresh?
  • Is there a way to automatically refresh a Red Hat Satellite 6 manifest via cron job?

Resolution

Note:


Before proceeding with this solution, please beware that:
  • A manifest refresh will not extend the expiry date of the manifest's distributor certificate. This means that refreshing the manifest before the manifest's distributor certificate expires does not help as a preventive measure.
  • It is not possible to refresh the manifest in Satellite when the manifest itself has expired. To understand more about this scenario, refer to the following solution article.
  • It is not possible to push a refresh from the Customer Portal UI to your Red Hat Satellite server.

Manual Manifest Refresh:

  • Additional subscriptions can be added into the existing manifest by following the procedure outlined in How to add/update Subscription in an imported manifest using Red Hat Satellite Web UI online/offline network?.

  • Red Hat Satellite 6 provides the ability to refresh manifests using either the Satellite User Interface (UI) or the command line (CLI). Below commands can be used to refresh the manifest with updated subscriptions:

    • For Connected Environments: By using the refresh button in the Red Hat Satellite application UI as follows:

      • On the Satellite GUI > navigate to Content > Subscriptions > Manage Manifests > Refresh Manifest.
    • For Dis-connected/air-gapped Environments: By downloading an updated manifest from the Customer Portal and uploading it in the Red Hat Satellite UI as follows:

      • On the Satellite GUI > navigate to Content > Subscriptions > Manage Manifests and click Choose file> Select the new manifest file you downloaded from the Customer Portal > click Upload.

Manifest Refresh using API:

  • The following API can be used to refresh the manifest:

    # curl -ku admin:password -X PUT  -H "Content-Type: application/json"  https://`hostname -f`/katello/api/organizations/$ID/subscriptions/refresh_manifest | python -m json.tool
    
     where, `admin:password` is basically the user credentials of Satellite having the correct privileges that can execute the API successfully. The Organization ID `$ID` can be obtained from the `hammer organization list` command.
    

Automating Manifest Refresh:

  • The below command can be used to create a cron job to refresh the Red Hat Satellite 6 manifest on a scheduled basis.

    # hammer subscription refresh-manifest --organization="Default_Organization" 
    [....        ] [0%]
    

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

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.