Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1369189 - Cannot attach VDC Guest subscription to an Activation Key.
Cannot attach VDC Guest subscription to an Activation Key.
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Subscription Management (Show other bugs)
6.2.0
x86_64 Linux
urgent Severity urgent (vote)
: 6.2.14
: Unused
Assigned To: Justin Sherrill
jcallaha
: PrioBumpGSS, Reopened, Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-08-22 11:38 EDT by Douglas Jones
Modified: 2018-06-07 22:34 EDT (History)
30 users (show)

See Also:
Fixed In Version: rubygem-katello-3.0.0.161-1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1530707 (view as bug list)
Environment:
Last Closed: 2018-02-05 08:54:34 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
el6 6.2.12 hotfix (5.70 MB, application/x-tar)
2017-11-07 15:58 EST, Justin Sherrill
no flags Details
el7 6.2.12 hotfix (5.11 MB, application/x-tar)
2017-11-07 15:58 EST, Justin Sherrill
no flags Details
verification screenshot 1 (52.53 KB, image/png)
2018-01-10 15:00 EST, jcallaha
no flags Details
verification screenshot 2 (42.50 KB, image/png)
2018-01-10 15:01 EST, jcallaha
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3063451 None None None 2017-06-01 00:53 EDT
Foreman Issue Tracker 21152 None None None 2017-09-28 13:19 EDT
Red Hat Product Errata RHSA-2018:0273 normal SHIPPED_LIVE Important: Red Hat Satellite 6 security, bug fix, and enhancement update 2018-02-07 19:35:29 EST

  None (edit)
Description Douglas Jones 2016-08-22 11:38:18 EDT
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:
Comment 9 Bryan Kearney 2017-08-07 14:09:38 EDT
I am closing this out as WONTFIX. I see that it was not reproducable in 6.2.9, and then several different activation key errors tied to it. If you are seeing a distinct bug, please open a bug for that case. Thanks!
Comment 27 Justin Sherrill 2017-09-28 13:19:20 EDT
Created redmine issue http://projects.theforeman.org/issues/21152 from this bug
Comment 31 pm-sat@redhat.com 2017-10-06 20:03:02 EDT
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/21152 has been resolved.
Comment 34 Justin Sherrill 2017-11-07 15:58 EST
Created attachment 1349119 [details]
el6 6.2.12 hotfix
Comment 35 Justin Sherrill 2017-11-07 15:58 EST
Created attachment 1349120 [details]
el7 6.2.12 hotfix
Comment 36 Justin Sherrill 2017-11-07 16:01:02 EST
Hotfix is now available for 6.2.12.  To apply: 

1. download untar either the el6 or el7 tarballs
2. Stop Satellite services
  katello-service stop
3. Extract the tarball and install the packages in Satellite
4. Restart Satellite services
  katello-service start
Comment 41 jcallaha 2018-01-10 14:59:18 EST
Verified in Satellite 6.2.14.

I was able to not only attach one, but multiple VDC guest subscriptions to an activation key (see verification screenshot 1). Additionally, guest subscriptions are properly attached from hypervisor to guest (see verification screenshot 2).
Comment 42 jcallaha 2018-01-10 15:00 EST
Created attachment 1379702 [details]
verification screenshot 1
Comment 43 jcallaha 2018-01-10 15:01 EST
Created attachment 1379703 [details]
verification screenshot 2
Comment 48 errata-xmlrpc 2018-02-05 08:54:34 EST
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-2018:0273

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