Red Hat Bugzilla – Bug 808360
Activation keys - "Not enough entitlements" - no need to register even on our side
Last modified: 2015-01-04 16:59:23 EST
Description of problem:
RHSM registration with activation key considers that system not registered to CFSE if there are not enough entitlements available.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.import manifest, enable RHEL6Server repo and consume all subscriptions there
2.make one more custom repo and promote to an environment
3.create an activation key for that env. and add that both repos (RHEL one and that custom repo)
4. use that key now to register a system via RHSM register.
Not enough entitlements in pools (1), required: 1, available: 0
exit code: 255
subscription-manager refresh says: "Error: You need to register this system by running `register` command before using this option."
Katello UI says: your system is registered, is "red" - as not enough entitlements there, and als0: consumes that custom repo (see under "Subscriptions" tab for that system)
As RHSM "don't care" when there is not enough entitlements, we don't need even to register the system on our side and surely not consume any repo.
Looks like we are leaving database artifacts in Katello's database on failed registrations that we need to rollback
Tested in latest katello and failed registration did not leave system behind.
These bugs have been resolved in upstream projects for a period of months so I'm mass-closing them as CLOSED:UPSTREAM. If this is a mistake feel free to re-open.