Setting minor release on Red Hat Satellite client fails with no releases match.
Environment
- Red Hat Satellite 6.x
Issue
-
Subscription-manager release set command fails with the following error on a client registered to Red Hat Satellite.
# subscription-manager release --set X.Y No releases match 'X.Y'. Consult 'release --list' for a full listing.
Resolution
-
Enable the specific minor release version repository on the Satellite:
- Satellite WebUI:
Content --> Red Hat Repositories --> Expand the repository to reveal the available repository versions --> Enable the required minor release repository-
Hammer CLI:
# hammer repository-set enable \ --name "Red Hat Enterprise Linux 7 Server (RPMs)" \ --releasever "X.Y" \ <----------------- Specify the minor release version --basearch "x86_64" \ --product "Red Hat Enterprise Linux Server" \ --organization "My_Organization"
-
Once the repository is successfully enabled, synchronize the repository:
- Satellite WebUI:
Content --> Products --> Select Product --> Repositories tab --> Select the minor repository --> Select Action --> Sync Now-
Hammer CLI:
# hammer repository synchronize \ --name "Red Hat Enterprise Linux 7 Server RPMs x86_64 X.Y" \ --product "Red Hat Enterprise Linux Server" \ --organization "My_Organization"
-
If Content View and Lifecycle Environment of the client are set to Default Organization View and Library respectively, the minor release version will be available and ready to be utilized if the above steps are successfully completed.
# subscription-manager release --list +-------------------------------------------+ Available Releases +-------------------------------------------+ X.Y # subscription-manager release --set X.Y -
If the client is associated with a Content View and Lifecycle Environment, make sure that the newly synchronized minor release repository is added to the Content View and a new version of the Content View is published and is promoted to the Lifecycle Environment of the client.
Root Cause
- The minor release repository for the specific repository was not available to clients due to the following reasons:
- The minor release repository was not enabled and synchronized on the Satellite.
- The enabled/synchronized minor release repository was not available on the Content View and Lifecycle Environment of the client
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.