Red Hat Bugzilla – Bug 803814
Registering with an activation key which has run out of susbcriptions results in a system in SAM, but no identity certificate
Last modified: 2015-05-14 12:04:05 EDT
If there are not enough subscriptions available, registration with Activation Key fails as follows:
[root@rhel62-2 ~]# subscription-manager register --org=orgname --activationkey=test1
Not enough entitlements in pools (1), required: 1, available: 0
Even though this command failed, the system is actually registered with SAM (SAM Web-UI shows the
system), but RHSM client indicates the system is NOT registered. Because of this mismatch, neither of
the following commands works.
[root@rhel62-2 ~]# subscription-manager register --org=orgname --force
Validation failed: Name has already been taken
[root@rhel62-2 ~]# subscription-manager unregister
This system is currently not registered.
This is confusing. The registration status should be the same between SAM and RHSM client even after
the command failure.
ConsumerResource.create had no @Transactional annotation, so failures later on were not reverting previous activity in the database. Fix is server side, error should surface on client just as before only now, no consumer will have been created server side.
Fixed in candlepin.git master: 530c189e4f0d6984638b5274500a74eeff3d42c5
Will appear in candlepin-0.5.27-1
*** Bug 807300 has been marked as a duplicate of this bug. ***
FYI: Status is ON_QA.
This problem still occurs with SAM 1.1 (candlepin-0.6.5-1.el6_2.noarch).
Fujitsu on-site engineer
Marking all community bugs modified or beyong as closed.