Bug 1308950

Summary: [RFE] Add the ability to override an existing NFS storage domain when creating a new one
Product: [oVirt] ovirt-engine Reporter: Idan Shaby <ishaby>
Component: Frontend.WebAdminAssignee: Idan Shaby <ishaby>
Status: CLOSED WONTFIX QA Contact: Raz Tamir <ratamir>
Severity: low Docs Contact:
Priority: low    
Version: 4.0.0CC: amureini, bugs, ylavi
Target Milestone: ---Keywords: FutureFeature, Improvement
Target Release: ---Flags: amureini: ovirt-future?
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-30 20:54:49 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:

Description Idan Shaby 2016-02-16 14:37:28 UTC
Description of problem:
When creating an NFS storage domain, if the folder noted by the path is not empty, an "Operation Canceled" error message is shown:

"Error while executing action New NFS storage domain: Error in creating a Storage Domain. The selected storage path is not empty (probably contains another Storage Domain). Either remove the existing Storage Domain from this path, or change the Storage path)."

If the user still wants to create it, he must remove that folder's content first and then try again.

However, when creating an iSCSI storage domain, if the chosen lun is not empty, a pop-up message notifies the user that the lun is already in use. The user can approve the operation, and then the lun is overridden and the domain is created.

IMHO, we should use the same approach when creating NFS storage domains.

Version-Release number of selected component (if applicable):
58e94bf236182ea0810b57e443cd373611254032

How reproducible:
100%

Steps to Reproduce:
1. Create an NFS storage domain on folder x.
2. Destroy this domain.
3. Create a new NFS domain on the same folder, x.

Actual results:
The storage domain cannot be created.

Expected results:
There should be an option to override the folder's content, as we do in iSCSI storage domains.

Additional info:

Comment 1 Allon Mureinik 2017-07-30 20:54:49 UTC
Closing old bugs.
If there's a real usecase here, feel free to reopen.