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:
Updated by The Foreman Bot about 10 years ago
- Status changed from New to Ready For Testing
- Target version set to 62
- Pull request https://github.com/Katello/katello/pull/4839 added
- Pull request deleted (
)
Updated by Christine Fouant about 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|36cdaf21cfaf3b45d5af39089b67704ed79ce8ec.
Updated by Eric Helms almost 10 years ago
- Translation missing: en.field_release set to 23