Red Hat Bugzilla – Bug 1129376
Activation keys useless without environment
Last modified: 2017-02-23 16:06:19 EST
Description of problem: Activation keys are useless without lifecycle environment set. So why not make this parameter mandatory? Or make "Library" the default one... How reproducible: always/deterministic Steps to Reproduce: 1. Create activation key without environment (via api you can even set content view without setting environment). 2. Try to use it Actual results: # subscription-manager register --org="Red_Hat_SatTeam" --activationkey="1-akakakak" At least one activation key must have a lifecycle environment and content view assigned to it # subscription-manager register --org="Red_Hat_SatTeam" --activationkey="1-akakakak" --environment="Library" Error: Activation keys do not allow environments to be specified. Expected results: Either Library is used by default OR you can specify --environment with activation key OR it would not be possible to create useless activation key aditional info: sat6-Satellite-6.0.4-RHEL-6-20140730.0-Satellite-x86_64-dvd1.iso
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release.
Last week, I heard that activationkey can be paired in subscription-manager commands like: subscription-manager register --activationkey PREMIUM-JBOSS-STACK --activationkey PRODUCTION-ENVIRONMENT So one activation key will hold my subscriptions and other will hold my environments. I never tried this though. If this is a valid scenario, then it is valid to allow activation key to be created without environment or content view.
This is working as intended. Multiple activation keys may be specified to subscription-manager and at least one must reference a content view.