Allon Mureinik has posted comments on this change.

Change subject: core: Calculate storage format when adding an SD
......................................................................


Patch Set 3:

(1 comment)

http://gerrit.ovirt.org/#/c/30960/3/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/AddStorageDomainCommand.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/AddStorageDomainCommand.java:

Line 164:         if (sd.getStorageFormat() == null) {
Line 165:             if (sd.getStorageDomainType().isDataDomain()) {
Line 166:                 
sd.setStorageFormat(VersionStorageFormatUtil.getPreferredForVersion(
Line 167:                         
getTargetStoragePool().getcompatibility_version(), sd.getStorageType())
Line 168:                 );
> - host doesn't have to have a data center, cluster can also be "floating" a
>> host doesn't have to have a data center, cluster can also be "floating" 
>> afaik.

if such a case exists, this host cannot be used to create a new storage domain 
- see isStorageFormatSupportedByStoragePool()

>> seems that after this change the user will have to "remember" to select 
>> appropriate host to add the domain , otherwise the version might be too high 
>> to attach later on to a needed data center

9/10 of the cases you'd use a host that will later use this domain. I'm fine 
with this limitation (see BZ)

>> this command is being extended by multiple commands, are you sure that 
>> having this is correct for all of it?

yup
Line 169:             } else {
Line 170:                 sd.setStorageFormat(StorageFormatType.V1);
Line 171:             }
Line 172:         }


-- 
To view, visit http://gerrit.ovirt.org/30960
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: If469bb655e9a65e2d0afcee164655fa0bdfa5d99
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Federico Simoncelli <[email protected]>
Gerrit-Reviewer: Liron Aravot <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to