Eli Mesika has posted comments on this change.
Change subject: core: check host time-drift in getVdsStat(#848862)
......................................................................
Patch Set 1: (1 inline comment)
....................................................
File
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VdsBrokerObjectsBuilder.java
Line 335: Date hostDate = AssignDatetimeValue(xmlRpcStruct,
VdsProperties.hostDatetime);
Line 336: if (hostDate != null) {
Line 337: Long timeDrift =
Line 338:
TimeUnit.MILLISECONDS.toSeconds(Math.abs(hostDate.getTime() -
System.currentTimeMillis()));
Line 339: if (timeDrift > maxTimeDriftAllowed) {
Since we will not set this value in Milliseconds, because the practical value
is number of seconds, I think that this is more user friendly and that was also
agreed with PM (Simon)
Line 340: AuditLogableBase logable = new
AuditLogableBase(vds.getId());
Line 341: logable.AddCustomValue("Actual",
timeDrift.toString());
Line 342: logable.AddCustomValue("Max",
maxTimeDriftAllowed.toString());
Line 343: AuditLogDirector.log(logable,
AuditLogType.VDS_TIME_DRIFT_ALERT);
--
To view, visit http://gerrit.ovirt.org/7830
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie1f38149c0a7fb1d6e1627e86b1a3c231352e1a0
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Eli Mesika <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Michael Kublin <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches