Bug 1207641

Summary: Proxy error on accessing "All VMs(Tree view)" in cluster summary page
Product: Red Hat CloudForms Management Engine Reporter: Aziza Karol <akarol>
Component: UI - OPSAssignee: Martin Povolny <mpovolny>
Status: CLOSED ERRATA QA Contact: Milan Falešník <mfalesni>
Severity: high Docs Contact:
Priority: high    
Version: 5.4.0CC: hkataria, jhardy, mfalesni, mpovolny, obarenbo
Target Milestone: GA   
Target Release: 5.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-16 12:56:22 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 Flags
proxy error none

Description Aziza Karol 2015-03-31 11:55:33 UTC
Created attachment 1008988 [details]
proxy error

Description of problem:


Version-Release number of selected component (if applicable):
5.4.0.0.14.20150325124454_9e339f3 

How reproducible:
100%

Steps to Reproduce:
1.Navigate to infrastructure->Clusters
2.In  Cluster summary page click on "All VMs(Tree view)"
3.

Actual results:
Proxy error. see attached screenshot

Expected results:


Additional info:

Comment 3 Martin Povolny 2015-04-06 19:44:38 UTC
Confirming. The request gets the web worker into what seems to be an infinite loop consuming all CPU. Hence the proxy error + no error in the logs.

Comment 4 Martin Povolny 2015-04-08 14:17:02 UTC
proposed upstream fix

https://github.com/ManageIQ/manageiq/pull/2553

Comment 5 CFME Bot 2015-04-14 18:47:41 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/a8b844d1cfb587ed3e85ea9dbcee83c22e0aeaf8

commit a8b844d1cfb587ed3e85ea9dbcee83c22e0aeaf8
Author:     Martin Povolny <mpovolny>
AuthorDate: Wed Apr 8 08:31:52 2015 +0200
Commit:     Martin Povolny <mpovolny>
CommitDate: Wed Apr 8 08:31:52 2015 +0200

    Add missing routes for cluster tree view.
    
    Fixes part of
    https://bugzilla.redhat.com/show_bug.cgi?id=1207641

 vmdb/config/routes.rb | 2 ++
 1 file changed, 2 insertions(+)

Comment 6 CFME Bot 2015-04-14 18:47:44 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/8d77e88df01032de806de3074c4a343bd142456a

commit 8d77e88df01032de806de3074c4a343bd142456a
Author:     Martin Povolny <mpovolny>
AuthorDate: Wed Apr 8 14:08:26 2015 +0200
Commit:     Martin Povolny <mpovolny>
CommitDate: Wed Apr 8 14:08:26 2015 +0200

    Fix tree view calculation for infra clusters.
    
    * Call build_vm_host_array only when needed.
    * Replace cache :tree_hosts and :tree_vms with hashes for speed.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1207641

 vmdb/app/controllers/application_controller.rb       | 20 ++++----------------
 .../application_controller/tree_support.rb           | 18 ++++++++++--------
 vmdb/app/controllers/ems_cluster_controller.rb       |  4 ++--
 vmdb/app/controllers/ems_common.rb                   |  5 +++--
 vmdb/app/controllers/resource_pool_controller.rb     |  6 +++---
 5 files changed, 22 insertions(+), 31 deletions(-)

Comment 8 Milan Falešník 2015-05-05 11:24:25 UTC
Verified in 5.4.0.0.24.20150427192818_1fd9e49, no proxy error.

Comment 10 errata-xmlrpc 2015-06-16 12:56:22 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://rhn.redhat.com/errata/RHBA-2015-1100.html