Liron Aravot 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" 
right now if there's no pool for the host and no format specified, it'll fail 
with NPE in ensureStorageFormatInitialized 
(getTargetStoragePool().getcompatibility_version())
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