Federico Simoncelli has posted comments on this change.

Change subject: core: Allow to attach V1 and V2 data domains to a DC 3.1
......................................................................


Patch Set 3: (1 inline comment)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/AttachStorageDomainToPoolCommand.java
Line 101:                                 final StorageFormatType targetFormat 
= getStoragePool().getStoragePoolFormatType();
Line 102: 
Line 103:                                 if (domain.getStorageFormat() != 
targetFormat) {
Line 104:                                     log.infoFormat("Updating storage 
domain {0} (type {1}) to format {2}",
Line 105:                                         getStorageDomain().getId(), 
sdType, targetFormat);
This maintains the current behavior for the storage pool: upgrade is 
irreversible even if uncompleted. After you attach a V1/V2 sd to a 3.1 DC you 
update it's entry in the db right away and then it's updated by the spm as soon 
as possible (when activated or reachable). If it gets detached before a 
successful upgrade completes it might become a master domain itself (?) but 
that it's covered since it will be upgraded as soon as the startSpm call is 
issued (expectedVersion). We could discuss the general flow (and try to imporve 
it) but at the moment I'm trying to reuse what we already do during a regular 
dc upgrade.
Line 106:                                     
domain.setStorageFormat(targetFormat);
Line 107:                                     sdStatDao.update(domain);
Line 108:                                 }
Line 109:                             }


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I2424b80ba914f3d83ec99f442970bc103232563a
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Federico Simoncelli <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Ayal Baron <[email protected]>
Gerrit-Reviewer: Federico Simoncelli <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to