Bug 1596347

Summary: activation-key copy fails with "undefined method" and Internal Server Error
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: Activation KeysAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Sanket Jagtap <sjagtap>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: andrew.schofield, bkearney, dgross, dleatherman, hprakash, kabbott, lpramuk, mmccune, nkathole, rajgupta, rankumar, rhbgs.10.bigi_gigi, sjagtap, sokeeffe, syangsao, vdeshpan
Target Milestone: 6.4.0Keywords: PrioBumpField, PrioBumpQA, Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1553338 Environment:
Last Closed: 2018-10-16 19:29:45 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:

Comment 4 Sanket Jagtap 2018-06-29 13:49:39 UTC
Build : Satellite 6.4.0 snap9 


hammer> activation-key list --organization-id 1
---|----------|----------------|-----------------------|-------------
ID | NAME     | HOST LIMIT     | LIFECYCLE ENVIRONMENT | CONTENT VIEW
---|----------|----------------|-----------------------|-------------
1  | rhel7_ak | 0 of Unlimited | DEV                   | rhel7_cv    
---|----------|----------------|-----------------------|-------------

hammer> activation-key copy --name rhel7_ak --new-name rhel7_ak_copy --organization-id 1
Activation key copied


hammer> activation-key list --organization-id 1
---|---------------|----------------|-----------------------|-------------
ID | NAME          | HOST LIMIT     | LIFECYCLE ENVIRONMENT | CONTENT VIEW
---|---------------|----------------|-----------------------|-------------
1  | rhel7_ak      | 0 of Unlimited | DEV                   | rhel7_cv    
2  | rhel7_ak_copy | 0 of Unlimited | DEV                   | rhel7_cv    
---|---------------|----------------|-----------------------|-------------

hammer> activation-key subscriptions --activation-key-id 1 --organization-id 1
---|-------------------------------------------------------------------------|----------|----------|---------------------|---------------------|---------|----------|--------
ID | NAME                                                                    | ATTACHED | QUANTITY | START DATE          | END DATE            | SUPPORT | CONTRACT | ACCOUNT
---|-------------------------------------------------------------------------|----------|----------|---------------------|---------------------|---------|----------|--------
4  | Red Hat Enterprise Linux Server, Premium (8 sockets) (Unlimited guests) |          |          | 2016/08/04 04:00:00 | 2022/01/01 04:59:59 | Premium | 11XXXXX4 | 47XXXX 
7  | rhel7-tools-prd                                                         |          |          | 2018/06/28 13:18:53 | 2048/06/20 13:18:53 |         |          |        
---|-------------------------------------------------------------------------|----------|----------|---------------------|---------------------|---------|----------|--------
hammer> activation-key subscriptions --activation-key-id 2 --organization-id 1
---|-------------------------------------------------------------------------|----------|----------|---------------------|---------------------|---------|----------|--------
ID | NAME                                                                    | ATTACHED | QUANTITY | START DATE          | END DATE            | SUPPORT | CONTRACT | ACCOUNT
---|-------------------------------------------------------------------------|----------|----------|---------------------|---------------------|---------|----------|--------
4  | Red Hat Enterprise Linux Server, Premium (8 sockets) (Unlimited guests) |          |          | 2016/08/04 04:00:00 | 2022/01/01 04:59:59 | Premium | 11XXXXX4 | 47XXXX 
7  | rhel7-tools-prd                                                         |          |          | 2018/06/28 13:18:53 | 2048/06/20 13:18:53 |         |          |        
---|-------------------------------------------------------------------------|----------|----------|---------------------|---------------------|---------|----------|--------

Comment 5 Bryan Kearney 2018-10-16 19:29:45 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-2018:2927