Bug 1469306

Summary: OSP: when validating an account with access to many projects, it checks each, and times out
Product: Red Hat CloudForms Management Engine Reporter: Jeff Warnica <jwarnica>
Component: UI - OPSAssignee: Sam Lucidi <slucidi>
Status: CLOSED CURRENTRELEASE QA Contact: Ido Ovadia <iovadia>
Severity: high Docs Contact:
Priority: high    
Version: 5.8.0CC: cpelland, hkataria, igortiunov, iovadia, jhardy, jwarnica, mpovolny, obarenbo, simaishi, tachoi, tzumainn
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: openstack
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1470800 1476395 (view as bug list) Environment:
Last Closed: 2018-03-06 14:36:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Openstack Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1470800, 1476395    

Description Jeff Warnica 2017-07-10 22:50:13 UTC
Per summary, if one adds a new OSP provider (or changes creds on an existing one), and the provided user has access to many Projects, CFME attempts to log in to each of them.

The low level doesn't seem to fail, but the UI times out. This makes the provider configuration page unable to save.

Comment 3 Tzu-Mainn Chen 2017-07-11 13:13:21 UTC
Can you give a sense of how many projects the OSP provider has?

Comment 4 Jeff Warnica 2017-07-11 13:24:44 UTC
Client reports 173.

Comment 5 Sam Lucidi 2017-07-11 19:19:02 UTC
I've put together a patch that cuts out the numerous excessive requests to all the projects. This dramatically speeds up verification and should prevent the UI timeout. https://github.com/ManageIQ/manageiq-providers-openstack/pull/60

Comment 6 Sam Lucidi 2017-07-12 14:46:03 UTC
We discovered a problem that makes the solution in https://github.com/ManageIQ/manageiq-providers-openstack/pull/60 unsuitable. Mainn's got a better solution in https://github.com/ManageIQ/manageiq-providers-openstack/pull/62

Comment 9 Ido Ovadia 2018-01-25 10:44:53 UTC
Verified
========
CFME 5.9.0.17 on RHOS 10