Timothy Asir has uploaded a new change for review. Change subject: gluster: fix event message to display no. of bricks removed ......................................................................
gluster: fix event message to display no. of bricks removed Add no. of bricks and volume details to the commit remove brick event message. Change-Id: I8ab4cf126812d3cd9a42348e35b0a60fd29d59ca Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1035124 Signed-off-by: Timothy Asir <tjeya...@redhat.com> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/CommitRemoveGlusterVolumeBricksCommand.java M backend/manager/modules/dal/src/main/resources/bundles/AuditLogMessages.properties 2 files changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/65/22065/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/CommitRemoveGlusterVolumeBricksCommand.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/CommitRemoveGlusterVolumeBricksCommand.java index 75e8cf4..9deedc2 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/CommitRemoveGlusterVolumeBricksCommand.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/CommitRemoveGlusterVolumeBricksCommand.java @@ -75,6 +75,7 @@ return; } + addCustomValue(GlusterConstants.NO_OF_BRICKS, String.valueOf(getParameters().getBricks().size())); endStepJobCommitted(); getDbUtils().removeBricksFromVolumeInDb(volume, getParameters().getBricks(), diff --git a/backend/manager/modules/dal/src/main/resources/bundles/AuditLogMessages.properties b/backend/manager/modules/dal/src/main/resources/bundles/AuditLogMessages.properties index 88f5cb6..c578fbc 100644 --- a/backend/manager/modules/dal/src/main/resources/bundles/AuditLogMessages.properties +++ b/backend/manager/modules/dal/src/main/resources/bundles/AuditLogMessages.properties @@ -616,7 +616,7 @@ GLUSTER_VOLUME_REBALANCE_STOP_FAILED=Could not stop rebalance of gluster volume ${glusterVolumeName}. START_REMOVING_GLUSTER_VOLUME_BRICKS=Started removing bricks from Volume ${glusterVolumeName} START_REMOVING_GLUSTER_VOLUME_BRICKS_FAILED=Could not start remove bricks from Volume ${glusterVolumeName} -GLUSTER_VOLUME_REMOVE_BRICKS_COMMIT=Gluster volume remove bricks committed +GLUSTER_VOLUME_REMOVE_BRICKS_COMMIT=Gluster volume remove bricks committed. ${NoOfBricks} brick(s) removed from volume ${glusterVolumeName}. GLUSTER_VOLUME_REMOVE_BRICKS_COMMIT_FAILED=Gluster volume remove bricks could not be commited GLUSTER_VOLUME_REPLACE_BRICK_FAILED=Replace Gluster Volume Brick failed GLUSTER_VOLUME_REPLACE_BRICK_START=Gluster Volume ${glusterVolumeName} Replace Brick started. -- To view, visit http://gerrit.ovirt.org/22065 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8ab4cf126812d3cd9a42348e35b0a60fd29d59ca Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Timothy Asir <tjeya...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches