Shubhendu Tripathi has posted comments on this change.
Change subject: gluster: Query for gluster volume rebalance status
......................................................................
Patch Set 17:
(3 comments)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/GetGlusterVolumeRebalanceStatusQuery.java
Line 25:
Line 26: @Override
Line 27: protected void executeQueryCommand() {
Line 28: clusterId = getParameters().getClusterId();
Line 29: Guid volumeId = getParameters().getVolumeId();
Yes, would do the changes for it
Line 30:
Line 31: if (volumeId != null) {
Line 32: volume = getGlusterVolumeDao().getById(volumeId);
Line 33: if (volume == null) {
Line 30:
Line 31: if (volumeId != null) {
Line 32: volume = getGlusterVolumeDao().getById(volumeId);
Line 33: if (volume == null) {
Line 34: throw new RuntimeException(String.format("Invalid
volume id %s", volumeId));
Will add an entry to VdcBllErrors and use the same
Line 35: }
Line 36: asyncTask = volume.getAsyncTask();
Line 37: if(asyncTask == null) {
Line 38: // Set status as null and return as there is not
rebalance task started
Line 52: // Set the volume re-balance start time
Line 53: GlusterVolumeTaskStatusEntity entity =
(GlusterVolumeTaskStatusEntity)returnValue.getReturnValue();
Line 54: List<Step> stepsList =
getDbFacade().getStepDao().getStepsByExternalId(asyncTask.getStepId());
Line 55: if (stepsList != null && !stepsList.isEmpty()) {
Line 56: entity.setStartTime(stepsList.get(0).getStartTime());
Status At field is populated in VDS command itself
Line 57: }
Line 58:
Line 59: return entity;
Line 60: }
--
To view, visit http://gerrit.ovirt.org/18352
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I3704f750fafcf3546c5237a4dde67b5f85a691e4
Gerrit-PatchSet: 17
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Shubhendu Tripathi <[email protected]>
Gerrit-Reviewer: Kanagaraj M <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Ramesh N <[email protected]>
Gerrit-Reviewer: Sahina Bose <[email protected]>
Gerrit-Reviewer: Shubhendu Tripathi <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: anmolbabu <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches