Bug 1553338
Summary: | activation-key copy fails with "undefined method" and Internal Server Error | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Dylan Gross <dgross> | ||||
Component: | Activation Keys | Assignee: | Partha Aji <paji> | ||||
Status: | CLOSED ERRATA | QA Contact: | jcallaha | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.3.0 | CC: | andrew.schofield, ben.argyle, bkearney, dleatherman, hprakash, kabbott, lpramuk, mmccune, nkathole, paji, pcreech, rajgupta, rankumar, rbertolj, rbeyel, rhbgs.10.bigi_gigi, sokeeffe, syangsao, vdeshpan | ||||
Target Milestone: | Unspecified | Keywords: | PrioBumpField, PrioBumpQA, Regression, Triaged | ||||
Target Release: | Unused | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | tfm-rubygem-katello-3.4.5.76-1 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1596347 (view as bug list) | Environment: | |||||
Last Closed: | 2018-08-22 20:07:08 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Dylan Gross
2018-03-08 17:17:50 UTC
Created attachment 1405938 [details]
Snippet of production.log during activation-key copy attempt.
Update - After creating a new activation key in the upgraded Red Hat Satellite 6.3, I've lost the ability to reproduce the issue. Previously when I was able to reproduce in my lab what the customer was seeing, I was copying activation keys that existed in Red Hat Satellite 6.2. The Satellite was then upgraded to Red Hat Satellite 6.3 and the copy attempts failed. After creating a new Activation Key in the upgraded 6.3 satellite, the activation key copy attempts worked as expected. I still can reproduce the issue, even with new keys: Could not copy the activation key: undefined method `[]' for #<Katello::ContentOverride:0x007f0007db9148> Probably related: if copied via Web GUI, no response is shown. I looked at the browser console log, there is no response at all from the server. production.log looks identical to the log attached. Connecting redmine issue http://projects.theforeman.org/issues/23084 from this bug Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/23084 has been resolved. *** Bug 1577798 has been marked as a duplicate of this bug. *** *** Bug 1575344 has been marked as a duplicate of this bug. *** Hey partha, this failed to cherrypick, can you take a look? Just a note that I'm seeing the same issue in 6.3.2: 2018-07-31 09:50:57 5ea7358e [app] [E] NoMethodError: undefined method `[]' for #<Katello::ContentOverride:0x00007fcb3602d920> Verified in Satellite 6.3.3 Snap 2. Activation keys are now successfully copied without issue. -bash-4.2# hammer activation-key list --organization-id 1 ---|--------------|-------------------|-----------------------|------------------ ID | NAME | HOST LIMIT | LIFECYCLE ENVIRONMENT | CONTENT VIEW ---|--------------|-------------------|-----------------------|------------------ 3 | ak-capsule-7 | 0 of Unlimited | DEV | Capsule RHEL 7 CV 2 | ak-rhel-6 | 0 of Unlimited | DEV | RHEL 6 CV 1 | ak-rhel-7 | 4158 of Unlimited | DEV | RHEL 7 CV ---|--------------|-------------------|-----------------------|------------------ -bash-4.2# hammer -v activation-key copy --id 1 --new-name copied --organization-id 1 Activation key copied -bash-4.2# hammer activation-key list --organization-id 1 ---|--------------|-------------------|-----------------------|------------------ ID | NAME | HOST LIMIT | LIFECYCLE ENVIRONMENT | CONTENT VIEW ---|--------------|-------------------|-----------------------|------------------ 3 | ak-capsule-7 | 0 of Unlimited | DEV | Capsule RHEL 7 CV 2 | ak-rhel-6 | 0 of Unlimited | DEV | RHEL 6 CV 1 | ak-rhel-7 | 4158 of Unlimited | DEV | RHEL 7 CV 4 | copied | 0 of Unlimited | DEV | RHEL 7 CV ---|--------------|-------------------|-----------------------|------------------ -bash-4.2# hammer activation-key info --id 1 Name: ak-rhel-7 ID: 1 Description: Host Limit: Unlimited Auto Attach: false Lifecycle Environment: DEV Content View: RHEL 7 CV Host Collections: -bash-4.2# hammer activation-key info --id 4 Name: copied ID: 4 Description: Host Limit: Unlimited Auto Attach: false Lifecycle Environment: DEV Content View: RHEL 7 CV Host Collections: 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-2018:2550 |