Bug 1414126

Summary: UI error on 'wipe' and 'discard' being mutually exclusive is unclear and appears too late
Product: [oVirt] ovirt-engine Reporter: Yaniv Kaul <ykaul>
Component: Frontend.WebAdminAssignee: Idan Shaby <ishaby>
Status: CLOSED CURRENTRELEASE QA Contact: Kevin Alon Goldblatt <kgoldbla>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.1.0CC: amureini, bugs, ishaby, ratamir, tnisan
Target Milestone: ovirt-4.1.1Flags: rule-engine: ovirt-4.1+
Target Release: 4.1.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1436160 (view as bug list) Environment:
Last Closed: 2017-04-21 09:38:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1436160    

Description Yaniv Kaul 2017-01-17 20:31:20 UTC
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:

Comment 1 Tal Nisan 2017-01-18 08:13:46 UTC
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 2 Raz Tamir 2017-04-04 13:01:39 UTC
When I'm trying to add a new disk to VM, the checkbox is grayed out and a message saying that the underlying storage is not supported discard.
This is not true because the fix depends on the storage domain discard flag enabled or not.
In my case, the storage domain's discard is disabled (the underlying storage supports discard) but still, the same message appears.

Idan, Should I reopen it? or you will submit another patch?

Comment 3 Raz Tamir 2017-04-04 13:25:12 UTC
After discussed with Idan, I will open a new bug

Comment 4 Raz Tamir 2017-04-09 22:13:04 UTC
Verified on rhevm-4.1.1.8-0.1.el7