Bug 1480812

Summary: 'Optimize > Utilization' only shows a subset of providers
Product: Red Hat CloudForms Management Engine Reporter: Jerome Marc <jmarc>
Component: ApplianceAssignee: Gregg Tanzillo <gtanzill>
Status: CLOSED CURRENTRELEASE QA Contact: Nikhil Dhandre <ndhandre>
Severity: medium Docs Contact:
Priority: high    
Version: 5.8.0CC: abellott, akarol, gtanzill, hkataria, jhardy, jmarc, lavenel, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.0.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1511135 (view as bug list) Environment:
Last Closed: 2018-03-06 14:49:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1511135    
Attachments:
Description Flags
Optimaize Utilization showing only one provider none

Description Jerome Marc 2017-08-11 23:57:18 UTC
Created attachment 1312335 [details]
Optimaize Utilization showing only one provider

Description of problem:
The tree under 'Optimize > Utilization' only shows one provider in an environment with many providers configured. e.g. in the attached example, RHV provider is the only one showing in the tree, while this environment has VMware, HyperV, and OpenStack configured.

Version-Release number of selected component (if applicable):
5.8.1.5.20170725160636_e433fc0

How reproducible:
Always

Steps to Reproduce:
1. Have multiple providers configured
2. Navigate to 'Optimize > Utilization'
3. Check the tree for your providers

Actual results:
Only one provider is displayed in the tree.

Expected results:
All providers should be present in the tree.

Additional info:
Storage displays all back-end storage (across all providers).

Comment 3 Dave Johnson 2017-08-16 20:28:18 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set it to Low/Low.

Comment 6 CFME Bot 2017-10-13 13:51:37 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/cb3cb72d336ade55203056436cdb7a0850d9807a

commit cb3cb72d336ade55203056436cdb7a0850d9807a
Author:     Gregg Tanzillo <gtanzill>
AuthorDate: Wed Oct 11 17:17:18 2017 -0400
Commit:     Gregg Tanzillo <gtanzill>
CommitDate: Fri Oct 13 06:58:21 2017 -0400

    Ensure that `base_class` of first target is used for RBAC scope
    
    When targets are passed and the instances are of different subclasses through STI, the base class needs
    to be used for building the scope to prevent ActiveRecord from also scoping to the subclass and limiting
    the results to only instances of that class.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1480812
    https://bugzilla.redhat.com/show_bug.cgi?id=1467756

 lib/rbac/filterer.rb           |  5 +++++
 spec/lib/rbac/filterer_spec.rb | 43 +++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 47 insertions(+), 1 deletion(-)