How to verify whether the manifest already imported on the Satellite server is the same as the one in a .zip archive of a given manifest or not?

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.15

Issue

Given the .zip archive of a Red Hat Satellite manifest, how to verify whether the manifest already imported on the Satellite server is the same as the one in the .zip archive or not?

Resolution

  1. Run the following command on the Satellite server to pull out the manifest's UUID from the Satellite's database:
# foreman-rake console << EORAKE
Organization.find_by(name: '<Org_name>').owner_details['upstreamConsumer']['uuid']
EORAKE

The following example shows how the output will look like:

# foreman-rake console << EORAKE
Organization.find_by(name: 'Org_XYZ').owner_details['upstreamConsumer']['uuid']
EORAKE
/etc/profile: line 79: TMOUT: readonly variable
Loading production environment (Rails 7.0.8.7)
Switch to inspect mode.
Organization.find_by(name: 'Org_XYZ').owner_details['upstreamConsumer']['uuid']
"01cac159-76b9-4529-bb3d-1d5eb54bd124"
  1. Unzip the .zip archive of the given manifest, and run the following command to pull out the manifest's UUID:
# cat manifest/export/consumer.json | jq | grep uuid
"uuid": "0acad406-f094-4ad1-9c69-a33088d32300"

Note:
In this example, it is clear that the UUID in the Satellite's database is not the same as the one in the .zip archive of the manifest, which means that the .zip archive is for another manifest, and not the one imported into the Satellite's database.

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)

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.