Bug 1302185

Summary: [RFE] Allow attaching shared storage domains to a local DC
Product: [oVirt] ovirt-engine Reporter: Allon Mureinik <amureini>
Component: BLL.StorageAssignee: Maor <mlipchuk>
Status: CLOSED CURRENTRELEASE QA Contact: Lilach Zitnitski <lzitnits>
Severity: unspecified Docs Contact:
Priority: high    
Version: 4.0.0CC: bgraveno, bhughes, bugs, cinglese, gklein, kmorey, mlipchuk, ngompa13, nstephan, ratamir, s.kieske, ylavi
Target Milestone: ovirt-4.1.0-alphaKeywords: FutureFeature
Target Release: 4.1.0.2Flags: rule-engine: ovirt-4.1+
lzitnits: testing_plan_complete+
ylavi: planning_ack+
amureini: devel_ack+
ratamir: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Users can now change an initialized Data Center type to Shared or Local. The following updates will be available: 1. Shared to Local - Only for a Data Center that does not contain more than one host and more than one cluster, since a local Data Center does not support it. The Manager will validate and block this operation with the following messages: CLUSTER_CANNOT_ADD_MORE_THEN_ONE_HOST_TO_LOCAL_STORAGE VDS_CANNOT_ADD_MORE_THEN_ONE_HOST_TO_LOCAL_STORAGE 2. Local to Shared - Only for a Data Center that does not contain a local Storage Domain. The Manager will validate and block this operation with the following message: ERROR_CANNOT_CHANGE_STORAGE_POOL_TYPE_WITH_LOCAL. This update is useful for data domains that are used to move virtual machines or templates around.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-01 14:48:24 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: 1039606, 1134318, 1309212, 1337555, 1353134, 1420575    

Description Allon Mureinik 2016-01-27 05:02:12 UTC
Description of problem:
With the ability to attach and detach a data domain (introduced in 3.5), data domains become a better option for moving VMs/Templates around than an export domain. 
In order to gain this ability in local DCs, it should be possible to attach a storage domain of a shared type to that DC.

This RFE essentially re-defines a local DC as A DC that's allowed to have just one host, bringing it closer to the general DC concept.

Important flows to check:
1. Attach/Detach domains
2. Master creation/migration/reconstruction
3. Moving between a local and a shared domain
4. Live Storage Migration between a local and a shared domain

Comment 1 Allon Mureinik 2016-06-30 10:42:22 UTC
*** Bug 1337555 has been marked as a duplicate of this bug. ***

Comment 2 Yaniv Lavi 2016-07-13 14:56:14 UTC
Is this the same as BZ #1109597?

Comment 3 Yaniv Lavi 2016-07-13 14:58:31 UTC
Also BZ #1134318?

Comment 4 Maor 2016-07-13 16:00:12 UTC
Regarding BZ1134318, we are not there yet.
A local DC can have only one Host, this RFE was that the engine can now also maintain shared SDs as well.

Regarding BZ1109597, based on the bug comments it looks like this bug should address the issue of supporting multiple types of storage domains in a DC, but 
keep in mind, there is no support for local DC with multiple hosts.

Comment 5 Sandro Bonazzola 2016-12-12 13:55:40 UTC
The fix for this issue should be included in oVirt 4.1.0 beta 1 released on December 1st. If not included please move back to modified.

Comment 6 Yaniv Lavi 2016-12-14 16:21:20 UTC
This bug had requires_doc_text flag, yet no documentation text was provided. Please add the documentation text and only then set this flag.