Red Hat Bugzilla – Bug 967755
[register] unable to combine --servicelevel with --activationkey option
Last modified: 2015-01-07 06:52:41 EST
Description of problem:
Right now the recent available option of RHSM seems does not allow to combine service level with activation keys during registration.
It is useful stuff to have different activation keys (with different usage limits) and with different RHEL subscriptions attached to them (recent implementation of Katello allows it) with different support levels there.
So one may want to expose it wishing to perform something like:
subscription-manager register --activationkey akTesting --release 6.4 --force --name awesomeSystem --org awesomeOrg --servicelevel Premium --auto-attach
it just gets fails with:
This system has already been registered with Red Hat using RHN Classic.
The tool you are using is attempting to re-register using Red Hat Subscription Management technology. Red Hat recommends that customers only register once.
To learn how to unregister from either service please consult this Knowledge Base Article: https://access.redhat.com/kb/docs/DOC-45563
Error: Activation keys cannot be used with --auto-attach.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Setup a Katello
2.manifest import + enable repo sets of RHEL6Server
3.promote to Testing env
4.prepare ak for Testing, set limit to 3, add the RHEL subscription from that manifest.
5.configure rhsm to connect to the Katello
6.perform the command above
available to set servicelevel on registration using AKs
This must be run a separate commonads:
subscription-manager register --activationkey akTesting --release 6.4 --force --name awesomeSystem --org awesomeOrg
subscription-manager register --servicelevel Premium --auto-attach
These commands are mutually exclusive by design.
I have nothing to argue if it "by-design" :) ty