Attach DataCenter Subcription fail on Katello 2.4.0

I'm Trying to attach the subscriptions to the activation key and i get the
following error

Katello::Resources::Candlepin::ActivationKey: 400 Bad Request {"displayMessage":"Product ID "RH00007RN" has already been registered with this activation key","requestUuid":"58664ac4-1e89-458b-8617-787a0f8b75bf"} (POST /candlepin/activation_keys/2c99307552e32d230152e4d862ef01b7/product/RH00007RN)
Katello::Resources::Candlepin::ActivationKey: 400 Bad Request {"displayMessage":"Product ID "RH00007RN" has already been registered with this activation key","requestUuid":"d7dec7cf-c51c-4dd9-975a-9c49f12e3ec9"} (POST /candlepin/activation_keys/2c99307552e32d230152e4d862ef01b7/product/RH00007RN)

Step to replicate the issue

1.-Configure virt-who in a redhat host to register the hypervisor into
katello

2.- Assign to each hypervisor content host a subscription of Red Hat
Enterprise Linux for Virtual Datacenters with Smart Managemnt

3.- Go to activation keys

4.- Choice any activation key and assign 2 or 3 Guests of <id of hypervisor>

Result :

Only the first subscription is attached and the second and third give the
error message

Also if we remove the subscription that currently was attach and attach any
of the another ones the subscription is successfully attach but if we try
again attach for example the subscription attached before fail with the
same error

This is no allow us to deploy anymore Red Hat host

<https://lh3.googleusercontent.com/-EOMDHUlbNVY/Vtza_KkN_oI/AAAAAAAAOrE/jdjmX1M6te8/s1600/2016_02_23_12_26_24_Add_Subscriptions_for_Activation_Key_BaseOS.png>

Any recommendation to fix this issue?

Perhaps this article can help: https://access.redhat.com/articles/1554633

··· ----- Original Message ----- > > > I'm Trying to attach the subscriptions to the activation key and i get the > following error > > Katello::Resources::Candlepin::ActivationKey: 400 Bad Request > {"displayMessage":"Product ID \"RH00007RN\" has already been registered with > this activation key","requestUuid":"58664ac4-1e89-458b-8617-787a0f8b75bf"} > (POST > /candlepin/activation_keys/2c99307552e32d230152e4d862ef01b7/product/RH00007RN) > Katello::Resources::Candlepin::ActivationKey: 400 Bad Request > {"displayMessage":"Product ID \"RH00007RN\" has already been registered with > this activation key","requestUuid":"d7dec7cf-c51c-4dd9-975a-9c49f12e3ec9"} > (POST > /candlepin/activation_keys/2c99307552e32d230152e4d862ef01b7/product/RH00007RN) > > Step to replicate the issue > > 1.-Configure virt-who in a redhat host to register the hypervisor into > katello > > 2.- Assign to each hypervisor content host a subscription of Red Hat > Enterprise Linux for Virtual Datacenters with Smart Managemnt > > 3.- Go to activation keys > > 4.- Choice any activation key and assign 2 or 3 Guests of > > Result : > > Only the first subscription is attached and the second and third give the > error message > > Also if we remove the subscription that currently was attach and attach any > of the another ones the subscription is successfully attach but if we try > again attach for example the subscription attached before fail with the > same error > > This is no allow us to deploy anymore Red Hat host > > > > > >

Thanks tim but the article is no help

---------------------------------------------------------------------------------|----------|---------|----------|-----------|----------|------------------------------|----|----------------------------------------------------------------------------------|-----------|---------
NAME
> CONTRACT | ACCOUNT | SUPPORT | QUANTITY | CONSUMED | END
DATE | ID |
PRODUCT

> QUANTITY ATTACHED

Red Hat Enterprise Linux for Virtual Datacenters with Smart Management,
Standard | | Standard | 1 | 1 |
2016-08-23T03:59:59.000+0000 | 17 | Red Hat Enterprise Linux for Virtual
Datacenters with Smart Management, Standard | 1 | 1
Red Hat Enterprise Linux for Virtual Datacenters with Smart Management,
Standard | | Standard | 5 | 5 |
2016-08-23T03:59:59.000+0000 | 15 | Red Hat Enterprise Linux for Virtual
Datacenters with Smart Management, Standard | 5 | 5
Red Hat Enterprise Linux for Virtual Datacenters with Smart Management,
Standard | | Standard | 1 | 1 |
2016-08-23T03:59:59.000+0000 | 13 | Red Hat Enterprise Linux for Virtual
Datacenters with Smart Management, Standard | 1 | 1
Red Hat Enterprise Linux for Virtual Datacenters with Smart Management,
Standard | | Standard | Unlimited | 0 | 2016-08-23T03:59:59.000+0000
> 31 | Red Hat Enterprise Linux for Virtual Datacenters with Smart
Management, Standard | Unlimited | 0
Red Hat Enterprise Linux for Virtual Datacenters with Smart Management,
Standard | | Standard | Unlimited | 0 |
2016-08-23T03:59:59.000+0000 | 30 | Red Hat Enterprise Linux for Virtual
Datacenters with Smart Management, Standard | Unlimited | 0
Red Hat Enterprise Linux for Virtual Datacenters with Smart Management,
Standard | | Standard | Unlimited | 0 |
2016-08-23T03:59:59.000+0000 | 29 | Red Hat Enterprise Linux for Virtual
Datacenters with Smart Management, Standard | Unlimited | 0
Red Hat Enterprise Linux for Virtual Datacenters with Smart Management,
Standard | | Standard | Unlimited | 0 |
2016-08-23T03:59:59.000+0000 | 28 | Red Hat Enterprise Linux for Virtual
Datacenters with Smart Management, Standard | Unlimited | 0
Red Hat Enterprise Linux for Virtual Datacenters with Smart Management,
Standard | | Standard | Unlimited | 0 | 2016-08-23T03:59:59.000+0000
> 27 | Red Hat Enterprise Linux for Virtual Datacenters with Smart
Management, Standard | Unlimited | 0
Red Hat Enterprise Linux for Virtual Datacenters with Smart Management,
Standard | | Standard | Unlimited | 0 |
2016-08-23T03:59:59.000+0000 | 26 | Red Hat Enterprise Linux for Virtual
Datacenters with Smart Management, Standard | Unlimited | 0
Red Hat Enterprise Linux for Virtual Datacenters with Smart Management,
Standard | | Standard | Unlimited | 0 | 2016-08-23T03:59:59.000+0000
> 25 | Red Hat Enterprise Linux for Virtual Datacenters with Smart
Management, Standard | Unlimited | 0

as you can see the first activation key is success
> activation-key add-subscription --organization-id 1 --name "Red Hat
Enterprise Linux" --subscription-id 25
[Foreman] Password for admin:
Subscription added to activation key

but when i try the second one fail and is no allow to attach any more
subscriptions
> activation-key add-subscription --organization-id 1 --name "Red Hat
Enterprise Linux" --subscription-id 26
Could not add subscription to activation key:
Katello::Resources::Candlepin::ActivationKey: 400 Bad Request
{"displayMessage":"Product ID &quot;RH00007RN&quot; has already been registered
with this activation
key","requestUuid":"387d629b-9090-4a3b-b81d-5a41e347f4ed"} (POST
/candlepin/activation_keys/2c993075532822bf015358f1e08c04e8/product/RH00007RN)
> Product ID &quot;RH00007RN&quot; has already been registered with this
activation key"

··· On Tuesday, March 8, 2016 at 12:01:43 AM UTC+11, Tom McKay wrote: > > > > ----- Original Message ----- > > > > > > I'm Trying to attach the subscriptions to the activation key and i get > the > > following error > > > > Katello::Resources::Candlepin::ActivationKey: 400 Bad Request > > {"displayMessage":"Product ID \"RH00007RN\" has already been registered > with > > this activation > key","requestUuid":"58664ac4-1e89-458b-8617-787a0f8b75bf"} > > (POST > > > /candlepin/activation_keys/2c99307552e32d230152e4d862ef01b7/product/RH00007RN) > > > Katello::Resources::Candlepin::ActivationKey: 400 Bad Request > > {"displayMessage":"Product ID \"RH00007RN\" has already been registered > with > > this activation > key","requestUuid":"d7dec7cf-c51c-4dd9-975a-9c49f12e3ec9"} > > (POST > > > /candlepin/activation_keys/2c99307552e32d230152e4d862ef01b7/product/RH00007RN) > > > > > Step to replicate the issue > > > > 1.-Configure virt-who in a redhat host to register the hypervisor into > > katello > > > > 2.- Assign to each hypervisor content host a subscription of Red Hat > > Enterprise Linux for Virtual Datacenters with Smart Managemnt > > > > 3.- Go to activation keys > > > > 4.- Choice any activation key and assign 2 or 3 Guests of > > > > > Result : > > > > Only the first subscription is attached and the second and third give > the > > error message > > > > Also if we remove the subscription that currently was attach and attach > any > > of the another ones the subscription is successfully attach but if we > try > > again attach for example the subscription attached before fail with the > > same error > > > > This is no allow us to deploy anymore Red Hat host > > > > > > < > https://lh3.googleusercontent.com/-EOMDHUlbNVY/Vtza_KkN_oI/AAAAAAAAOrE/jdjmX1M6te8/s1600/2016_02_23_12_26_24_Add_Subscriptions_for_Activation_Key_BaseOS.png> > > > > > > > > > Perhaps this article can help: https://access.redhat.com/articles/1554633 >