Shubhendu Tripathi has posted comments on this change.

Change subject: gluster: BLL command for volume snapshot create
......................................................................


Patch Set 9:

(1 comment)

http://gerrit.ovirt.org/#/c/34928/9/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/CreateGlusterVolumeSnapshotCommand.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/CreateGlusterVolumeSnapshotCommand.java:

Line 90:             
addCanDoActionMessage(VdcBllMessages.ACTION_TYPE_FAILED_CLUSTER_DOES_NOT_SUPPORT_GLUSTER);
Line 91:             return false;
Line 92:         }
Line 93: 
Line 94:         GlusterVolumeEntity volume = 
getDbFacade().getGlusterVolumeDao().getById(snapshot.getVolumeId());
> yes. will change
Changed the CreateGlusterVolumeSnapshotParameters to extend 
GlusterVolumeParameters which makes sure volumeId is not null.

Below declaration in class GlusterVolumeParameters assures this.

@NotNull(message = "VALIDATION.GLUSTER.VOLUME.ID.NOT_NULL")
private Guid volumeId;
Line 95:         if (volume.getStatus() == GlusterStatus.DOWN) {
Line 96:             return 
failCanDoAction(VdcBllMessages.ACTION_TYPE_FAILED_GLUSTER_VOLUME_IS_DOWN);
Line 97:         }
Line 98: 


-- 
To view, visit http://gerrit.ovirt.org/34928
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I2c27f9e73bac8d6de3022b0dd4e70aa0d8b1494b
Gerrit-PatchSet: 9
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: [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

Reply via email to