Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1154619 - It's not possible to add a subscription on an activation key
Summary: It's not possible to add a subscription on an activation key
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: Nightly
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Christine Fouant
QA Contact: jcallaha
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-20 10:43 UTC by Elyézer Rezende
Modified: 2019-03-22 07:21 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 05:18:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1592 0 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 09:04:35 UTC

Description Elyézer Rezende 2014-10-20 10:43:50 UTC
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:

Comment 3 Tom McKay 2014-10-20 12:47:09 UTC
The bug here is that the error message is not nicely formatted, correct Elyézer? The behavior itself is correct: Multiple of a single non-stackable subscription cannot be added to the same activation key.

Comment 4 Elyézer Rezende 2014-10-20 12:55:57 UTC
Yes, please provide a nicely formatted error message. I was not aware of what quantity should be used, and with a better error message this should not happen.

Comment 5 Christine Fouant 2014-12-02 21:06:13 UTC
Created redmine issue http://projects.theforeman.org/issues/8549 from this bug

Comment 6 Bryan Kearney 2014-12-09 15:04:41 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/8549 has been closed
-------------
Christine Fouant
Applied in changeset commit:katello|36cdaf21cfaf3b45d5af39089b67704ed79ce8ec.

Comment 9 jcallaha 2015-02-13 18:34:53 UTC
Verified.

Version Tested:
Satellite-6.1.0-RHEL-6-20150210.0
Satellite-6.1.0-RHEL-7-20150210.0

Comment 10 Bryan Kearney 2015-08-11 13:30:14 UTC
This bug is slated to be released with Satellite 6.1.

Comment 11 errata-xmlrpc 2015-08-12 05:18:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:1592


Note You need to log in before you can comment on or make changes to this bug.