Allon Mureinik has posted comments on this change. Change subject: core: Introducing VersionStorageFormatUtil ......................................................................
Patch Set 3: (2 comments) .................................................... File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/AddStoragePoolWithStoragesCommand.java Line 154: } Line 155: final StorageDomainStatic staticDomain = storageDomain.getStorageStaticData(); Line 156: boolean staticDomainChanged = false; Line 157: // for data centers >= 3.1 we enforce the domain version to V3 Line 158: // this strictly needs to be before selecting the masterStorageDomain because the pool master will do Line 159: // version (setmaster_domain_version) depends on the domain upgrade. Line 160: StorageFormatType requiredFormatType = Line 161: VersionStorageFormatUtil.getFormatForVersion(getStoragePool().getcompatibility_version()); Line 162: if (staticDomain.getStorageFormat() != requiredFormatType) { Line 157: // for data centers >= 3.1 we enforce the domain version to V3 Line 158: // this strictly needs to be before selecting the masterStorageDomain because the pool master Line 159: // version (setmaster_domain_version) depends on the domain upgrade. Line 160: StorageFormatType requiredFormatType = Line 161: VersionStorageFormatUtil.getFormatForVersion(getStoragePool().getcompatibility_version()); Indeed - intended. This way, you avoid all sorts of untested, unsupported, mutations like a 2.2 DC on storage V3. Line 162: if (staticDomain.getStorageFormat() != requiredFormatType) { Line 163: if (!staticDomainChanged) { Line 164: getCompensationContext().snapshotEntity(staticDomain); Line 165: } -- To view, visit http://gerrit.ovirt.org/18697 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I47fb8b14e5c97b601c8fc0cc296a4ec42a48227a Gerrit-PatchSet: 3 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Federico Simoncelli <fsimo...@redhat.com> Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com> Gerrit-Reviewer: Tal Nisan <tni...@redhat.com> Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com> Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches