Unable to lock release using subscription-manager
We have to test new storage devices against several rhel releases/versions. Therefore, I use subscription-manager to lock the release. I’m able to list available releases on 6.* and 7.1, but not 7.0 Secondary issue: I just received a new batch of licenses so I’m going back and re-establishing some subscriptions which had recently been dropped. In this example I don’t know why the subscription thinks my image is 7.1 when the O/S indicates 7.0
Problem:
subscription-manager release --list
No release versions available, please check subscriptions.
subscription-manager release --set=7.0
No releases match '7.0'. Consult 'release --list' for a full listing.
Information:
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.0 (Maipo)
uname -r
3.10.0-123.13.2.el7.x86_64
subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.26.8-1
subscription-manager: 1.10.14-9.el7_0
python-rhsm: 1.10.12-2.el7
subscription-manager status | grep Overall
Overall Status: Current
subscription-manager list
Product Name: Red Hat Enterprise Linux Server
Product ID: 69
Version: 7.1
Arch: x86_64
Status: Subscribed
Status Details:
Starts: 03/02/2015
Ends: 03/02/2016
Responses
We have the exact same problem. We are evaluating software which requires 7.0, not 7.1. I would like to do so with up to date packages for 7.0 only - no upgrade to 7.1
We ge the same messages as OP:
subscription-manager release --set=7.0
No releases match '7.0'. Consult 'release --list' for a full listing.
subscription-manager release --list
No release versions available, please check subscriptions.
I would appreciate either a way to lock my version to 7.0 or method of doing package updates without changing version to 7.1
Thank you for your help.
After looking around some more, I think I found a solution. It looks like the register option allows you to specify the release if you also use the auto-attach flag. So using a command like:
subscription-manager register --auto-attach --release=7.0 --force
Will set the release to 7.0. Note that you have to specify the --force if you have already registered the instance.
After doing this, I get:
subscription-manager release --show
Release: 7.0
So the release --list and release --set commands are still broken, but at least there seems to be a workaround.
I've tried Doug Shelley's solution with 1 addition - I've added in yum.conf under the [main] section:
distroverpkg=X.Y It limits the packages up to latest of your distro version . In my case - 7.0
Edit: use the following during registration "subscription-manager register --auto-attach --release=7.0 --force"
Source: https://access.redhat.com/solutions/238533
The article is helpful,
I had an issue with forcing the command (subscription-manager register --auto-attach --release=5.8 --force) and unregistered the server instead. Seems the server is having trouble re-registering I may need to reboot it.
I am running these via a script, setting the minor release channel non-persistently will work better for our purposes. (yum --releasever=5.8 update)
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
