Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1448710

Summary: [RFE] Add 'Default SAN discard after delete' option to engine-setup
Product: [oVirt] ovirt-engine Reporter: Elad <ebenahar>
Component: RFEsAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED WONTFIX QA Contact: Gil Klein <gklein>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: amureini, bugs, ebenahar, ishaby, sbonazzo, ylavi
Target Milestone: ---Keywords: FutureFeature
Target Release: ---Flags: sbonazzo: ovirt-4.2-
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-29 06:33:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Elad 2017-05-07 13:41:44 UTC
Description of problem:
Need to add an option to change the default value (true or false) for discard after delete for SAN storage in engine-setup.

Something like the following:
    

 Default SAN discard after delete (Yes, No) [No]:

Comment 1 Yaniv Kaul 2017-05-08 05:28:50 UTC
No, the default should be true without asking the user. Isn't it the case today, for a storage that supports discard?

Comment 2 Elad 2017-05-08 07:32:03 UTC
(In reply to Yaniv Kaul from comment #1)
> No, the default should be true without asking the user. Isn't it the case
> today, for a storage that supports discard?

Currently, the default is false no matter whether the storage supports discard or not. The verification against the storage if it supports or not is done only upon changing the flag to true.

Comment 3 Sandro Bonazzola 2017-05-24 20:53:52 UTC
Elad, I see in engine-setup we currently have:
Default SAN wipe after delete, defaulting to No.

How the 2 options should work together?

What's the VDC option to be set?

Comment 4 Elad 2017-05-24 21:07:41 UTC
(In reply to Sandro Bonazzola from comment #3)
> Elad, I see in engine-setup we currently have:
> Default SAN wipe after delete, defaulting to No.
> 
> How the 2 options should work together?
> 
> What's the VDC option to be set?

wipe_after_delete and discard_after_delete are 2 different flags for storage domain, they are not related. 

Since we can't tell whether the storage supports discard or not before creating a SAN domain, we'll have to set the new 'Default SAN wipe after delete' to false in engine-setup to false

Comment 5 Elad 2017-05-24 21:08:55 UTC
* 'Default SAN discard after delete'

Comment 6 Sandro Bonazzola 2017-05-24 21:39:26 UTC
What's the VDC option to be set?

Comment 7 Elad 2017-05-24 22:10:54 UTC
AFAIK, it's CreateStorageDomainVDSCommand but I'm not 100% sure. Idan?

Comment 8 Idan Shaby 2017-05-25 05:33:11 UTC
(In reply to Elad from comment #7)
> AFAIK, it's CreateStorageDomainVDSCommand but I'm not 100% sure. Idan?

* Elad, currently there is no VDC option to set since this BZ is a new request. We should add one if we decide to go for it.

* Yaniv, we used a default of false in "Discard After Delete" and "Enable Discard" since we didn't want to change the behavior of existing domains and vm disks. It can be easily done, however, if we want to.

Allon, your two cents about these two ideas?

Comment 9 Allon Mureinik 2017-05-25 15:20:26 UTC
(In reply to Idan Shaby from comment #8)
> Allon, your two cents about these two ideas?


It's a small engineering effort no matter what way we go. I don't have any strong feeling about this, whatever PM decides is fine with me.

Comment 10 Yaniv Lavi 2017-05-28 10:31:11 UTC
New domain should default to true on Discard and Discard After Delete.
In upgrade we can not change to enable this for existing domains.

I don't think we should add more questions to the setup.
there are already too many questions as it is.

Comment 11 Sandro Bonazzola 2017-05-29 06:33:40 UTC
(In reply to Yaniv Dary from comment #10)
> New domain should default to true on Discard and Discard After Delete.
> In upgrade we can not change to enable this for existing domains.
> 
> I don't think we should add more questions to the setup.
> there are already too many questions as it is.

Closing won't fix.

Comment 12 Yaniv Lavi 2017-05-29 10:31:53 UTC
(In reply to Sandro Bonazzola from comment #11)
> (In reply to Yaniv Dary from comment #10)
> > New domain should default to true on Discard and Discard After Delete.
> > In upgrade we can not change to enable this for existing domains.
> > 

Did we open a ticket to preform this?