Bug 1714615
Summary: | 500 internal Server Error on url /api/notifications | ||
---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Satoe Imaishi <simaishi> |
Component: | API | Assignee: | drew uhlmann <duhlmann> |
Status: | CLOSED ERRATA | QA Contact: | Parthvi Vala <pvala> |
Severity: | medium | Docs Contact: | Red Hat CloudForms Documentation <cloudforms-docs> |
Priority: | medium | ||
Version: | 5.9.7 | CC: | dmetzger, duhlmann, fgrosjea, jprause, jrafanie, kbrock, mshriver, obarenbo |
Target Milestone: | GA | Keywords: | ZStream |
Target Release: | 5.10.6 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 5.10.6.0 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | 1700378 | Environment: | |
Last Closed: | 2019-07-02 04:33:27 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | CFME Core | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1700378 | ||
Bug Blocks: |
Comment 2
drew uhlmann
2019-05-28 15:47:06 UTC
New commit detected on ManageIQ/manageiq/hammer: https://github.com/ManageIQ/manageiq/commit/4d81c38dbd47a5f27e080220c49b708a139cb605 commit 4d81c38dbd47a5f27e080220c49b708a139cb605 Author: Keenan Brock <keenan> AuthorDate: Thu May 9 16:01:12 2019 -0400 Commit: Keenan Brock <keenan> CommitDate: Thu May 9 16:01:12 2019 -0400 specify virtual_delegate types to avoid deadlock deriving the attribute type for delegates required the target class to be loaded. This forced a cascade of load_schema calls that end up introducing a race condition. This PR explicitly declares the attribute type so the target class no longer needs to be loaded and the race condition (and subsequent deadlocks) are avoided. https://bugzilla.redhat.com/show_bug.cgi?id=1714615 This is based upon: - https://github.com/ManageIQ/activerecord-virtual_attributes/pull/21 - https://github.com/ManageIQ/manageiq/pull/18798 app/models/entitlement.rb | 2 +- app/models/host.rb | 12 +- app/models/miq_group.rb | 2 +- app/models/miq_product_feature.rb | 2 +- app/models/miq_report_result.rb | 2 +- app/models/miq_server.rb | 2 +- app/models/miq_widget.rb | 4 +- app/models/mixins/ownership_mixin.rb | 4 +- app/models/vm_or_template.rb | 24 +- lib/extensions/ar_virtual.rb | 5 +- spec/lib/extensions/ar_virtual_spec.rb | 31 + 11 files changed, 61 insertions(+), 29 deletions(-) on hammer FIXED. Verified on 5.10.6.0. 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-2019:1644 |