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."
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):
Steps to Reproduce:
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
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?
After discussed with Idan, I will open a new bug
Verified on rhevm-184.108.40.206-0.1.el7