Bug #8549
closedIt's not possible to add a subscription on an activation key
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1154619
Description of problem:
When adding a subscription to an activation key hammer fails with an exception:
[ERROR 2014-10-19 02:29:49 Exception] Katello::Resources::Candlepin::ActivationKey: 400 Bad Request {"displayMessage":"Error: Only pools with multi-entitlement product subscriptions can be added to the activation key with a quantity greater than one.","requestUuid":"d8ffd582-34f2-4de6-a9c2-400c8eb53f47"} (POST /candlepin/activation_keys/ff8080814927128501492718cdcf044a/pools/ff8080814927128501492716f89103c6?quantity=10)
Version-Release number of selected component (if applicable):
How reproducible:
Aways
Steps to Reproduce:
1. hammer subscription list --organization-id='<id>'
2. activation-key add-subscription --subscription-id='<subid>' --id='<id>' --quantity='10' # where quantity is the available quantity
Actual results:
An exception is raised and the subscription is not added to the activation key.
Expected results:
No exception raised and the subscription is added to the activation key.
Additional info: