Alona Kaplan has posted comments on this change.
Change subject: engine: introducing GetCapabilitiesCommand
......................................................................
Patch Set 4: (6 inline comments)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RefreshHostCapabilitiesCommand.java
Line 26: try {
Line 27:
ResourceManager.getInstance().GetVdsManager(getVdsId()).refreshHost(getVds());
Line 28: setSucceeded(true);
Line 29: } finally {
Line 30: releaseMonitorLock(monitoringLock, "Get Capabilities");
Done
Line 31: }
Line 32: }
Line 33:
Line 34: @Override
Line 32: }
Line 33:
Line 34: @Override
Line 35: protected boolean canDoAction() {
Line 36: if (getVds() == null) {
Done
Line 37: return
failCanDoAction(VdcBllMessages.ACTION_TYPE_FAILED_HOST_NOT_EXIST);
Line 38: }
Line 39: if (!isValidVdsStatus()) {
Line 40:
addCanDoActionMessage(VdcBllMessages.VAR__HOST_STATUS__UP_MAINTENANCE_OR_NON_OPERATIONAL);
Line 43: }
Line 44: return true;
Line 45: }
Line 46:
Line 47: private boolean isValidVdsStatus() {
Done
Line 48: VDSStatus hostStatus = getVds().getStatus();
Line 49: return ((hostStatus == VDSStatus.Maintenance) || (hostStatus
== VDSStatus.Up) || (hostStatus == VDSStatus.NonOperational));
Line 50: }
Line 51:
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsCommand.java
Line 199:
getReturnValue().getFault().setMessage(returnValue.getVdsError().getMessage());
Line 200:
getReturnValue().getExecuteFailedMessages().add(returnValue.getVdsError().getMessage());
Line 201: }
Line 202:
Line 203: protected EngineLock aquireMonitorLock() {
Done
Line 204: final VDS vds = getVds();
Line 205: EngineLock monitoringLock =
Line 206: new
EngineLock(Collections.singletonMap(getParameters().getVdsId().toString(),
Line 207: new Pair<String,
String>(LockingGroup.VDS_INIT.name(), "")), null);
Line 216: return monitoringLock;
Line 217: }
Line 218:
Line 219: protected void releaseMonitorLock(EngineLock monitoringLock,
String commandName) {
Line 220: final VDS vds = getVds();
Done
Line 221: getLockManager().releaseLock(monitoringLock);
Line 222: log.infoFormat(commandName + " finished. Lock released.
Monitoring can run now for host {0} from data-center {1}",
Line 223: vds.getName(),
Line 224: vds.getStoragePoolName());
....................................................
File
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/AuditLogType.java
Line 75: // Proxy host selection
Line 76: PROXY_HOST_SELECTION(605),
Line 77:
Line 78: HOST_REFRESHED_CAPABILITIES(606),
Line 79: HOST_REFRESHED_CAPABILITIES_FAILED(607),
Done
Line 80:
Line 81: // -- IRS Log types --
Line 82: IRS_FAILURE(22, AuditLogTimeInterval.HOUR.getValue() * 12),
Line 83: IRS_DISK_SPACE_LOW(26, AuditLogTimeInterval.HOUR.getValue() * 12),
--
To view, visit http://gerrit.ovirt.org/15640
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Iba25577a7b66f3acedc3b32b258560861d19c621
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alona Kaplan <[email protected]>
Gerrit-Reviewer: Alona Kaplan <[email protected]>
Gerrit-Reviewer: Mike Kolesnik <[email protected]>
Gerrit-Reviewer: Moti Asayag <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches