Bug 1245697

Summary: Performance issues in provisioning after initial template selection
Product: Red Hat CloudForms Management Engine Reporter: Chris Pelland <cpelland>
Component: ProvisioningAssignee: eclarizi
Status: CLOSED ERRATA QA Contact: Pete Savage <psavage>
Severity: high Docs Contact:
Priority: high    
Version: 5.3.0CC: cpelland, dajohnso, eclarizi, fdewaley, gmccullo, jhardy, jkrocil, mfeifer, obarenbo, psavage, snansi
Target Milestone: GAKeywords: ZStream
Target Release: 5.4.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.4.2.0 Doc Type: Bug Fix
Doc Text:
In the previous version of CloudForms Management Engine, provisioning dialog pages could take more than 20 seconds to load. This was because provisioning dialog pages examined data from all tab fields even if they didn't need to. This bug was fixed by refactoring the code to prevent duplicate initialization loops and adding a new method to go through the tab list by name. Provisioning dialog pages load quickly in the new version of CloudForms Management Engine.
Story Points: ---
Clone Of: 1240742 Environment:
Last Closed: 2015-09-09 12:25:54 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:
Bug Depends On: 1240742    
Bug Blocks:    

Comment 1 CFME Bot 2015-07-30 13:21:21 UTC
New commit detected on cfme/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=cf78c8c017c418980ffc29b2907aeadf5b850a28

commit cf78c8c017c418980ffc29b2907aeadf5b850a28
Merge: 5037114 e2c0029
Author:     Greg McCullough <gmccullo>
AuthorDate: Thu Jul 30 09:14:14 2015 -0400
Commit:     Greg McCullough <gmccullo>
CommitDate: Thu Jul 30 09:14:14 2015 -0400

    Merge branch 'bz1245697' into '5.4.z'
    
    BZ1245697 - Address performance issues while selecting provisioning template
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1245697
    
    This is a backport of 1240742: https://bugzilla.redhat.com/show_bug.cgi?id=1240742.
    
    Pulled the commits for this MR from this PR: https://github.com/ManageIQ/manageiq/pull/3418
    
    Was not a clean cherry-pick, most of the problems were in the \_prov_wf.html.haml view, because the helper functions like `miq_tab_header` do not exist on 5.4.z. The only other "conflict" I had was the spec for `#init_from_dialogs` didn't get moved over, so I added it manually.
    
    See merge request !204

 vmdb/app/models/miq_provision_virt_workflow.rb |  49 +++++++-----
 vmdb/app/models/miq_request_workflow.rb        |  82 +++++++++++--------
 vmdb/app/views/miq_request/_prov_wf.html.haml  |  12 +--
 vmdb/spec/models/miq_request_workflow_spec.rb  | 105 +++++++++++++++++++++++++
 4 files changed, 193 insertions(+), 55 deletions(-)

Comment 13 errata-xmlrpc 2015-09-09 12:25:54 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-1744.html