Bug 1436160 - UI error about Enable Discard (formally "Discard After Delete") comes too late
Summary: UI error about Enable Discard (formally "Discard After Delete") comes too late
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.1.2
: 4.1.2
Assignee: Idan Shaby
QA Contact: Kevin Alon Goldblatt
URL:
Whiteboard:
Depends On: 1414126
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-27 11:00 UTC by Idan Shaby
Modified: 2017-05-23 08:20 UTC (History)
6 users (show)

Fixed In Version:
Clone Of: 1414126
Environment:
Last Closed: 2017-05-23 08:20:39 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.1+


Attachments (Terms of Use)
Screen shot for Discard Enabled check box greyed out (193.92 KB, image/png)
2017-05-07 15:26 UTC, Kevin Alon Goldblatt
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 71278 0 None MERGED webadmin: add ui logic to WAD-EnableDiscard relationship 2021-01-18 17:42:41 UTC
oVirt gerrit 71843 0 None MERGED webadmin: add ui logic to WAD-EnableDiscard relationship 2021-01-18 17:42:41 UTC
oVirt gerrit 73851 0 master MERGED webadmin: improve Discard After Delete UX 2021-01-18 17:42:41 UTC
oVirt gerrit 74577 0 master MERGED webadmin: extract duplicated code in SanStorageModelBase 2021-01-18 17:43:21 UTC
oVirt gerrit 74578 0 master MERGED webadmin: make SanStorageModelBase.getAddedLuns reusable 2021-01-18 17:42:41 UTC
oVirt gerrit 74749 0 master MERGED core: extract lun's discard logic to the LUNs class 2021-01-18 17:42:41 UTC
oVirt gerrit 74879 0 ovirt-engine-4.1 MERGED webadmin: extract duplicated code in SanStorageModelBase 2021-01-18 17:42:43 UTC
oVirt gerrit 74880 0 ovirt-engine-4.1 MERGED webadmin: make SanStorageModelBase.getAddedLuns reusable 2021-01-18 17:43:23 UTC
oVirt gerrit 74881 0 ovirt-engine-4.1 MERGED core: extract lun's discard logic to the LUNs class 2021-01-18 17:42:43 UTC
oVirt gerrit 74882 0 ovirt-engine-4.1 MERGED webadmin: improve Discard After Delete UX 2021-01-18 17:42:43 UTC

Description Idan Shaby 2017-03-27 11:00:59 UTC
This bug was opened in order to solve the same issue happening in Discard After Delete (DAD) - if the underlying storage does not support discard and DAD is enabled, then the user gets the error message only after the window is closed.
Thus, the UX should be improved also here, in the new/edit storage domain window.

+++ This bug was initially created as a clone of Bug #1414126 +++

Description of problem:
Only after 'OK' and trying to create a disk, I'm getting the following error:
"Cannot add Virtual Disk. The underlying storage of iscsi doesn't support securely discarding which is required by vm1_Disk1's wipe after delete property."

This is:
1. Unclear.
2. Dismisses the disk creation.

Any good reason it cannot be done before the OK? At least move the user back to the dialog so he can fix his wrongdoing.


Version-Release number of selected component (if applicable):
master.

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

--- Additional comment from Tal Nisan on 2017-01-18 10:13:46 IST ---

Generally for simple validations that don't require too much data from the backend or more complicated logic duplication we do them in the UI (e.g. data center is lower than version X so we disable feature Y) while for validations that require more logic or querying more data we validate them in the validation part of the command after it has been executed and close the pop up for better user experience, this behavior exists in many of the other pop ups as well.

Idan, can you please check if it is feasible to validate the discard support within the client? If not we can maybe extract it to a validation backend query prior to running the command and closing the pop up, it makes no sense for the user to lose all the new disk data he entered just because of the discard

Comment 1 Red Hat Bugzilla Rules Engine 2017-03-27 11:01:08 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 2 Kevin Alon Goldblatt 2017-05-07 15:24:45 UTC
Verified with the following code:
------------------------------------
ovirt-engine-4.1.2.1-0.1.el7.noarch
rhevm-4.1.2.1-0.1.el7.noarch

Verified with the following scenario:
--------------------------------------
1. Create new disk on storage that does not support discard >>> The Enable Discard check box is greyed out. On storage that does support discard the Enable Discard check box can be checked


Moving to VERIFIED!

Comment 3 Kevin Alon Goldblatt 2017-05-07 15:26:10 UTC
Created attachment 1276870 [details]
Screen shot for Discard Enabled check box greyed out

Added Screen shot for Discard Enabled check box greyed out


Note You need to log in before you can comment on or make changes to this bug.