Project

General

Profile

Bug #21152

Cannot attach VDC Guest subscription to an Activation Key.

Added by Justin Sherrill almost 5 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Urgent
Category:
Subscriptions
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1369189

Description of problem:
Cannot attach VDC Guest subscription to an Activation Key now. Throws “Katello::Resources::Candlepin::ActivationKey: 400 Bad Request {"displayMessage":"Product ID \"RH00006RN\" has already been registered with this activation key","requestUuid":"195e31a2-4c7e-4266-9a6c-196fbbcd474a"}”. Links to upstream issue http://projects.theforeman.org/issues/13844#note-3. Upstream issue note mentions to NOT do this, but instead use auto-attach, but this eliminates the ability to configure repos/products at Activation Key time.

Version-Release number of selected component (if applicable):
RHEL 7.2
Satellite 6.2.1

How reproducible:
100%

Steps to Reproduce:
1. Configure virt-who
2. Attach "
Red Hat Enterprise Linux for Virtual Datacenters with Smart Management, Premium" entitlement (or similar) to each physical host
3. Go to Activation Keys
4. Select an Activation Key
5. Select Subscriptions
6. Select Add
7. Select a "Guest of <HOST>" entitlement and select "Add Selected"

Actual results:
Error displays "Katello::Resources::Candlepin::ActivationKey: 400 Bad Request {"displayMessage":"Product ID \"RH00006RN\" has already been registered with this activation key","requestUuid":"b3c358f8-e1ab-455d-9e8e-4e2bbe4a550f"} (POST /candlepin/activation_keys/8abd04795694c8f6015694de56490003/product/RH00006RN)"

Expected results:
Subscription is added to Activation Key and then Red Hat Product Contents could be configured at Activation Key level.

Additional info:

Associated revisions

Revision 77c5ac14 (diff)
Added by Justin Sherrill almost 5 years ago

Fixes #21152 - correct detection of redhat subs

History

#1 Updated by The Foreman Bot almost 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6981 added

#2 Updated by Brad Buckingham almost 5 years ago

  • Assignee changed from Eric Helms to Justin Sherrill
  • Target version set to 217

#3 Updated by Justin Sherrill almost 5 years ago

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

#4 Updated by Justin Sherrill over 4 years ago

  • Legacy Backlogs Release (now unused) set to 295

Also available in: Atom PDF