Bug 1593694

Summary: Datastore tags are displayed incorrectly when navigating to the datastore via a host
Product: Red Hat CloudForms Management Engine Reporter: Peter McGowan <pmcgowan>
Component: UI - OPSAssignee: Hilda Stastna <hstastna>
Status: CLOSED DUPLICATE QA Contact: Dave Johnson <dajohnso>
Severity: high Docs Contact:
Priority: high    
Version: 5.9.0CC: cpelland, hkataria, lavenel, mpovolny, obarenbo
Target Milestone: GA   
Target Release: 5.9.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-22 12:35:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:

Description Peter McGowan 2018-06-21 12:06:31 UTC
Description of problem:
If I navigate to a Datastore via a Host in the classic UI, the Smart Management tags displayed for the datastore are incorrect (it looks like they are the tags of the host). If I now open the Policy -> Edit Tags menu for the same datastore, the list of assigned tags is correct. If I cancel from the Policy -> Edit Tags screen the datastore now shows the correct Smart Management tags.

If I directly navigate to the same datastore via Compute -> Infrastructure -> Datastores the tags view is correct. This only seems to be a problem navigating via a host first.

Version-Release number of selected component (if applicable):
5.9.2.4.20180501195858_35dc609

How reproducible:
Every time

Steps to Reproduce:
1. Navigate to Datastores directly from the Compute -> Infrastructure -> Datastores menu. Locate a datastore and apply any tag to that datastore.
2. Navigate to a Host directly from the Compute -> Infrastructure -> Hosts menu. Click on a host that would have visibility of the datastore tagged in step 1. The host should not be tagged with the same tag as applied in step 1.
3. In the 'Relationships' part of the Host's screen, click on 'Datastores'
4. Click on the datastore tagged in step 1

Actual results:
Observe that the tags are incorrect compared to the tags set in step 1. Now go to the Policy -> Edit Tags menu, and observe that the correct tags are indeed set. Cancel from this screen and observe that the correct tags are now shown under Smart Management for the datastore.

Expected results:
The correct tags should be shown under Smart Management for the datastore under all conditions.

Additional info:
I can reproduce this with both VMware and RHV datastores

Comment 3 Hilda Stastna 2018-06-22 12:35:12 UTC

*** This bug has been marked as a duplicate of bug 1464472 ***