Bug 1858107

Summary: SSA not possible on any RHV datastore depending on navigation to it.
Product: Red Hat CloudForms Management Engine Reporter: Jaroslav Henner <jhenner>
Component: UI - OPSAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED ERRATA QA Contact: Jaroslav Henner <jhenner>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: unspecified    
Version: 5.11.7CC: dmetzger, hkataria, mshriver, mzazrivec, obarenbo, simaishi, znemecko
Target Milestone: GAKeywords: Reopened, ZStream
Target Release: 5.11.8Flags: simaishi: cfme-5.11.z+
jhenner: needinfo?
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: 5.11.8.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-30 14:01: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:

Description Jaroslav Henner 2020-07-16 22:28:35 UTC
# Description of problem:
Starting the SmartState Analysis is not handled in consistent way across providers. 

### From `All datastores` page
Compute -> Infrastructure -> Datastores; [Select one RHV DS from the list], [Click on Configure -> Start SSA]

The button for starting the analysis of datastore on RHV providers is enabled, but the start is not sucesfull with message: "SmartState Analysis action does not apply to selected items". On vmware provider, the SSA starts fine.

### From Provider datastores page
Compute -> Infrastructure -> Providers; [Select RHV provider], [Select Datastores], [Check one DS from the list],  [Click on Configure -> Start SSA]

The SSA starts on datastore of both -- vmware as well as RHV. Message `... scan successfully initiated when trying from the datastore Details page" is displayed.`

### From Datastore `Details` page:
Compute -> Infrastructure -> Providers; [Select RHV provider], [Select Datastores from the table].

It seems no matter which navigation path is taken, The `Configure` button is disabled on RHV. It is enabled on vmware and works fine.


# Version-Release number of selected component (if applicable):
5.11.6.0.20200526234234_3fcafeb
5.11.7.0.20200714215453_0da8a4

# How reproducible:
1/1 For each CFME version noted.
It is important to note that when vmware provider is deleted, some items are archived, which can manifest as duplicated items (datastores for example) and that may cause a confusion.

# Steps to Reproduce:
1. Add a RHV and vmware provider
2. Go to datastore trough provider  and select it or select some DS from the All datastores page or display Details page of the datastore
3. Click on button for starting SSA

# Actual results:
When not going trough the provider, SSA is not allowed:
SmartState Analysis action does not apply to selected items
is displayed


# Expected results:
Hard to tell what should be expected. The compatibility matrix is not really populated for RHV in the documentation. The behaviour is not consistent even for single CFME version and single provider.

Comment 2 Jaroslav Henner 2020-07-17 16:51:02 UTC
I forgot to open new issues upstream. I am closing this after I created https://github.com/ManageIQ/manageiq/issues/20367

Comment 3 Jaroslav Henner 2020-07-21 13:48:00 UTC
Justin wants to track this in BZ as well. Reopening.

Comment 4 Jaroslav Henner 2020-07-21 13:57:45 UTC
Created attachment 1701893 [details]
RHV inconsistency

Comment 6 Milan Zázrivec 2020-07-27 11:31:01 UTC
This is a problem in UI and we need to backport the following PR

    https://github.com/ManageIQ/manageiq-ui-classic/pull/6224

to ivanchuk to resolve it.

Dennis, please advise if I should go ahead with the backport, since
a plain cherry-pick won't be possible here: the changes in the code
are non-trivial & there's a lot of conflicts in the specs.

Comment 7 dmetzger 2020-07-27 12:09:33 UTC
Please work on the Backport.

Comment 9 Jaroslav Henner 2020-09-10 17:09:04 UTC
In the CFME 5.11.8.0 I cannot click on the button no matter which way was taken. I am not sure is that intentional. I contacted Milan about that on gitter

Comment 10 Milan Zázrivec 2020-09-10 20:36:06 UTC
Yes, this is very much intentional. Previously, you were able to see the button enabled
in one of the scenarios, because the underlying object which was actually selected
for the operation was incorrect.

With this fix, correct object is selected and the button is disabled in both scenarios.

Comment 11 Jaroslav Henner 2020-09-14 14:54:20 UTC
I removed the SSA Datastores tests that ran with RHV provider
https://github.com/ManageIQ/integration_tests/pull/10324
the remaining vsphere test are working fine.

Comment 16 errata-xmlrpc 2020-09-30 14:01:07 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 (Moderate: CloudForms 5.0.8 security, bug fix and enhancement update), 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-2020:4134