Bug 1252945

Summary: Copying an activation key does not copy service level
Product: Red Hat Satellite Reporter: Christine Fouant <cfouant>
Component: Activation KeysAssignee: Christine Fouant <cfouant>
Status: CLOSED ERRATA QA Contact: jcallaha
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.4CC: bbuckingham, bkearney, jcallaha, sthirugn
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/10414
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 09:17:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1257206    

Description Christine Fouant 2015-08-12 14:53:27 UTC
Copying an existing activation key with a service level setting does not yield expected results. The new key created has no service level setting attached to it, where it should have the same service level setting as the original.

Comment 1 Christine Fouant 2015-08-12 14:53:29 UTC
Created from redmine issue http://projects.theforeman.org/issues/10414

Comment 3 Bryan Kearney 2015-08-14 17:53:19 UTC
Upstream bug assigned to cfouant

Comment 4 Bryan Kearney 2015-08-25 20:06:56 UTC
Upstream bug component is Content Management

Comment 5 Bryan Kearney 2015-08-25 20:27:12 UTC
Upstream bug component is Activation Keys

Comment 6 Bryan Kearney 2016-03-16 00:06:44 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/10414 has been closed
-------------
Christine Fouant
Applied in changeset commit:katello|1575ba26ea5ecb13205cba16a7a98e49c41269be.

Comment 7 Brad Buckingham 2016-03-16 09:54:57 UTC
Note: without this fix, a user would also observe errors attempting to copy an activation key (e.g. via hammer) that contains subscriptions.   E.g.

without the fix:

hammer> activation-key copy --organization-id 1 --id 2 --new-name test-copy
Could not copy the activation key:
  Couldn't find Katello::Pool with 'id'=4028fae453755df4015375606cdb0005

with the fix:

hammer> activation-key copy --organization-id 1 --id 2 --new-name test-copy
Activation key copied

Comment 8 jcallaha 2016-03-24 19:40:24 UTC
Verified in Satellite 6.2 Beta Snap 5.1

Comment 11 errata-xmlrpc 2016-07-27 09:17:38 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/RHBA-2016:1501