Martin Peřina has posted comments on this change. Change subject: core: Display warning when fencing is disabled in cluster ......................................................................
Patch Set 1: (4 comments) http://gerrit.ovirt.org/#/c/31258/1/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVdsGroupCommand.java File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVdsGroupCommand.java: Line 42: checkMaxMemoryOverCommitValue(); Line 43: getVdsGroup().setDetectEmulatedMachine(true); Line 44: DbFacade.getInstance().getVdsGroupDao().save(getVdsGroup()); Line 45: Line 46: if (!getVdsGroup().getFencingPolicy().isFencingEnabled()) { > Define this block as a protected method in VdsGroupOperationCommandBase and Done Line 47: AuditLogableBase alb = new AuditLogableBase(); Line 48: alb.setVdsGroupId(getVdsGroup().getId()); Line 49: AuditLogDirector.log(alb, AuditLogType.FENCING_DISABLED_IN_CLUSTER_POLICY); Line 50: } http://gerrit.ovirt.org/#/c/31258/1/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/UpdateVdsGroupCommand.java File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/UpdateVdsGroupCommand.java: Line 114: true, Line 115: true)); Line 116: } Line 117: Line 118: if (!getVdsGroup().getFencingPolicy().isFencingEnabled()) { > Define this block as a protected method in VdsGroupOperationCommandBase and Done Line 119: AuditLogableBase alb = new AuditLogableBase(); Line 120: alb.setVdsGroupId(getParameters().getVdsGroup().getId()); Line 121: AuditLogDirector.log(alb, AuditLogType.FENCING_DISABLED_IN_CLUSTER_POLICY); Line 122: } http://gerrit.ovirt.org/#/c/31258/1/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/AuditLogType.java File backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/AuditLogType.java: Line 104: SYSTEM_FAILED_VDS_RESTART(122, AuditLogSeverity.ERROR, Line 105: AuditLogTimeInterval.MINUTE.getValue()), Line 106: VDS_NOT_RESTARTED_DUE_TO_POLICY(618), Line 107: VDS_FENCE_DISABLED_BY_CLUSTER_POLICY(620), Line 108: FENCING_DISABLED_IN_CLUSTER_POLICY(621, AuditLogSeverity.WARNING), > Should be an ALERT such that it will appear in the ALERTS TAB in UI Done Line 109: Line 110: // Host time drift Alert Line 111: VDS_TIME_DRIFT_ALERT(604, AuditLogSeverity.WARNING, Line 112: AuditLogTimeInterval.MINUTE.getValue() * 60), http://gerrit.ovirt.org/#/c/31258/1/backend/manager/modules/dal/src/main/resources/bundles/AuditLogMessages.properties File backend/manager/modules/dal/src/main/resources/bundles/AuditLogMessages.properties: Line 576: NETWORK_COMMINT_NETWORK_CHANGES_FAILED=Failed to commit network changes on ${VdsName} Line 577: SYSTEM_VDS_RESTART=Host ${VdsName} was restarted by the engine. Line 578: SYSTEM_FAILED_VDS_RESTART=A restart initiated by the engine to Host ${VdsName} has failed. Line 579: VDS_FENCE_DISABLED_BY_CLUSTER_POLICY=Host ${VdsName} was not fenced, fencing is disabled in Fencing Policy of the Cluster. Line 580: FENCING_DISABLED_IN_CLUSTER_POLICY=Fencing is disabled in Fencing Policy of the Cluster ${VdsGroupName}, so VM operations on HA VMs in the Cluster are currently limited. > Use the same comment about HA VMs like in the UI patch (I had a comment on Done Line 581: VDS_TIME_DRIFT_ALERT=Host ${VdsName} has time-drift of ${Actual} seconds while maximum configured value is ${Max} seconds. Line 582: PROXY_HOST_SELECTION=Host ${Proxy} from ${Origin} was chosen as a proxy to execute ${Command} command on Host ${VdsName}. Line 583: RECONSTRUCT_MASTER_FAILED_NO_MASTER=No valid Data Storage Domains are available in Data Center ${StoragePoolName} (please check your storage infrastructure). Line 584: RECONSTRUCT_MASTER_DONE=Reconstruct Master Domain for Data Center ${StoragePoolName} completed. -- To view, visit http://gerrit.ovirt.org/31258 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I4853b349571523fbb4dac54cae45d9d6a9df01f3 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Martin Peřina <mper...@redhat.com> Gerrit-Reviewer: Eli Mesika <emes...@redhat.com> Gerrit-Reviewer: Martin Peřina <mper...@redhat.com> Gerrit-Reviewer: Oved Ourfali <oourf...@redhat.com> Gerrit-Reviewer: automat...@ovirt.org 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