Bug 1463422

Summary: The 'Assigned Filters' setting in the Settings->Access Control->Groups->[group name] only applies to 'Hosts & Clusters', and not the Network providers.
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ApplianceAssignee: Libor Pichler <lpichler>
Status: CLOSED ERRATA QA Contact: Ruslana Babyuk <rbabyuk>
Severity: high Docs Contact:
Priority: high    
Version: 5.7.0CC: abellott, cpelland, dclarizi, hkataria, jhardy, lpichler, ltsai, mpovolny, nchugh, ndhandre, obarenbo, rbabyuk, simaishi
Target Milestone: GAKeywords: Reopened, ZStream
Target Release: 5.8.3   
Hardware: All   
OS: Linux   
Whiteboard: sdn:rbac:filter
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1445163 Environment:
Last Closed: 2018-02-28 13:04:21 UTC Type: ---
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: 1445163, 1533011    
Bug Blocks:    
Attachments:
Description Flags
missing network dropdown
none
prod.log none

Comment 2 CFME Bot 2017-06-21 19:01:10 UTC
New commit detected on ManageIQ/manageiq/fine:
https://github.com/ManageIQ/manageiq/commit/3ed4411f49ccf7d62ea5c4a912bac316a9b5b2af

commit 3ed4411f49ccf7d62ea5c4a912bac316a9b5b2af
Author:     Gregg Tanzillo <gtanzill>
AuthorDate: Fri Jun 2 11:10:08 2017 -0400
Commit:     Satoe Imaishi <simaishi>
CommitDate: Wed Jun 21 14:56:15 2017 -0400

    Merge pull request #15271 from lpichler/allow_matching_descendants_for_cloud_networks
    
    Allow matching via descendants for CloudNetworks (via network manager)
    (cherry picked from commit fb5983ebe5347839bbba657914e99aba5eb71eff)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1463422

 lib/rbac/filterer.rb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Comment 5 Ruslana Babyuk 2017-08-31 14:40:03 UTC
Discovered new cases, in which this part is not working correctly:

1. 2 cloud providers, if just one provider(or cloud storage) is selected in "Hosts&Clusters" all items(ports, subnets, ips, other) for both providers can be found under networks (the same case works for cloud storages)

2. If one network provider selected, filtering works only for the network provider, and network->networks but not the rest(subnets, ports, ..)

Any other tags were not used, only 'Host & Clusters' tab.

Comment 6 Ruslana Babyuk 2017-08-31 14:44:10 UTC
Hi Libor,

Could you check this cases?
Please let me know if they are valid and I understood the logic correctly.

Thanks Ruslana

Comment 9 CFME Bot 2017-11-13 21:31:23 UTC
New commit detected on ManageIQ/manageiq/fine:
https://github.com/ManageIQ/manageiq/commit/88c03d39af0ffd49e3de9dce8e837218dd99e511

commit 88c03d39af0ffd49e3de9dce8e837218dd99e511
Author:     Brandon Dunne <brandondunne>
AuthorDate: Tue Oct 10 09:53:29 2017 -0400
Commit:     Satoe Imaishi <simaishi>
CommitDate: Mon Nov 13 16:24:27 2017 -0500

    Merge pull request #16151 from lpichler/add_belongsto_filter_for_newtwork_model
    
    Add belongsto filter for other network models
    (cherry picked from commit cf2f4e7b0096844e55f9c87f14085775860deea7)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1463422

 lib/rbac/filterer.rb           |  17 +++++--
 spec/lib/rbac/filterer_spec.rb | 100 +++++++++++++++++++++++------------------
 2 files changed, 69 insertions(+), 48 deletions(-)

Comment 11 Ruslana Babyuk 2017-12-18 11:52:43 UTC
Created attachment 1369385 [details]
missing network dropdown

Network drop-down is missing

Comment 12 Ruslana Babyuk 2017-12-18 11:53:46 UTC
Created attachment 1369386 [details]
prod.log

Comment 14 Ruslana Babyuk 2018-01-10 09:05:15 UTC
Verification of this bz is blocked by 1533011

Comment 17 errata-xmlrpc 2018-02-28 13:04:21 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://access.redhat.com/errata/RHSA-2018:0374

Comment 18 Daniel Berger 2018-08-06 17:07:32 UTC
*** Bug 1486672 has been marked as a duplicate of this bug. ***