Bug 1693183

Summary: Assigned filters don't work if datastore is deleted which has the filter assigned and it shows every cluster regardless of the assignment
Product: Red Hat CloudForms Management Engine Reporter: Rahul Chincholkar <rchincho>
Component: ApplianceAssignee: Libor Pichler <lpichler>
Status: CLOSED CURRENTRELEASE QA Contact: Devidas Gaikwad <dgaikwad>
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.9.6CC: abellott, bmidwood, dgaikwad, dmetzger, dsundqvi, gtanzill, hkataria, jprause, lavenel, mpovolny, mshriver, obarenbo, simaishi
Target Milestone: GAKeywords: Reopened, TestOnly, ZStream
Target Release: 5.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.0.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1710998 (view as bug list) Environment:
Last Closed: 2019-12-13 14:57:07 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: 1710998    

Description Rahul Chincholkar 2019-03-27 09:59:17 UTC
Description of problem:

It seems that the assigned filters do not work if we delete the datastore which has the filter assigned and it shows every cluster regardless of the assignment.

My VMWARE structure:
~~~
vcenter-server
|
| -> Datacenter1
    | -> Cluster1
|
| -> Datacenter2
    | -> Cluster2
|
| -> Datacenter3
    | -> Cluster3
~~~

1. I created a role and group `rahul` and assigne filters for only `Cluster3`, created user `rahulc`, logged in with user `rahulc` and verified that I can only see `Cluster3`.

2. Next, Deleted `Datacenter3` and its children `Cluster3`. When logged in with user `rahulc`, I could see `Cluster1` and `Cluster2`. Checked the assigned filter, `Cluster3` was not seen in the checkboxes.

3. I put a tick on `Cluster2` in assigned filters, but it was no longer working and I still could see all the available clusters i.e `Cluster1` and `Cluster2` for user `rahulc`.

4. I could also see newly created clusters, I created new datacenter and cluster `Datacenter4` and `Cluster4` and user `rahulc` can view : `Cluster1`, `Cluster2`, `Cluster4`

5. Creating a new group with the same role seems to work with assigned filters.

Comment 2 Dave Johnson 2019-03-27 10:01:21 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 the severity to Low.

Comment 15 Antonin Pagac 2019-05-31 11:20:33 UTC
Appliance version 5.11.0.5.

Removing an item now does not cause displaying unwanted items. There's warning displayed when looking at a group with outdated filters:

"These outdated filters need review as it affects their visibility. We suggest editing and saving the group to delete these outdated filters."