Project

General

Profile

Bug #8549

It's not possible to add a subscription on an activation key

Added by Christine Fouant about 8 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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:

Associated revisions

Revision 36cdaf21 (diff)
Added by Christine Fouant about 8 years ago

fixes #8549 - Fixes subscription error messages for act key, BZ 1154619

Revision c9a5171b
Added by Christine Fouant about 8 years ago

Merge pull request #4839 from cfouant/errors

fixes #8549 - Fixes subscription error messages for act key, BZ 1154619

History

#1 Updated by The Foreman Bot about 8 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 ()

#2 Updated by Eric Helms about 8 years ago

  • Triaged changed from No to Yes

#3 Updated by Christine Fouant about 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Eric Helms almost 8 years ago

  • Legacy Backlogs Release (now unused) set to 23

Also available in: Atom PDF