Liron Ar has posted comments on this change.
Change subject: core: wip: initVdsOnUp - reconstructs and host status.
......................................................................
Patch Set 5: (2 inline comments)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/InitVdsOnUpCommand.java
Line 184: vds.getVdsSpmId(), masterDomainIdFromDb,
Line 185:
storagePool.getmaster_domain_version())).getSucceeded();
Line 186: } catch (VdcBLLException e) {
Line 187: boolean isMasterPossiblyUnreachable =
Line 188: masterDomain.getStatus() ==
StorageDomainStatus.InActive || masterDomain.getStatus() ==
StorageDomainStatus.Unknown;
possibly we can have here only InActive.
Line 189: if (e.getErrorCode() ==
VdcBllErrors.StoragePoolWrongMaster
Line 190: || (e.getErrorCode() ==
VdcBllErrors.StoragePoolMasterNotFound && isMasterPossiblyUnreachable)) {
Line 191: boolean reconstructResult =
Line 192: Backend.getInstance()
Line 192: Backend.getInstance()
Line 193:
.runInternalAction(VdcActionType.ReconstructMasterDomain,
Line 194: new
ReconstructMasterParameters(vds.getStoragePoolId(),
Line 195: masterDomainIdFromDb,
vds.getId(), true)).getSucceeded();
Line 196: boolean returnValue =
boolean added while WIP.
Line 197: reconstructResult ||
isMasterPossiblyUnreachable;
Line 198: result = new EventResult(returnValue,
EventType.RECONSTRUCT);
Line 199: } else {
Line 200: log.errorFormat("Could not connect host {0} to pool
{1}", vds.getName(), storagePool
--
To view, visit http://gerrit.ovirt.org/13709
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I6418b9d2826146e1e4ceff4341c6d7cd3a0024af
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liron Ar <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Ayal Baron <[email protected]>
Gerrit-Reviewer: Barak Azulay <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Michael Kublin <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches