Shubhendu Tripathi has posted comments on this change.

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


Patch Set 13:

(3 comments)

http://gerrit.ovirt.org/#/c/34928/13/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 78:             return false;
Line 79:         }
Line 80: 
Line 81:         VDSGroup cluster = getVdsGroup();
Line 82:         if (cluster == null) {
> not required and will never get here. Would have failed in super class
will remove this check
Line 83:             
addCanDoActionMessage(VdcBllMessages.ACTION_TYPE_FAILED_CLUSTER_IS_NOT_VALID);
Line 84:             return false;
Line 85:         }
Line 86: 


Line 83:             
addCanDoActionMessage(VdcBllMessages.ACTION_TYPE_FAILED_CLUSTER_IS_NOT_VALID);
Line 84:             return false;
Line 85:         }
Line 86: 
Line 87:         if (!cluster.supportsGlusterService()) {
> is this required? If glusterVolume check is passed, not likely that cluster
yes. will remove this check
Line 88:             
addCanDoActionMessage(VdcBllMessages.ACTION_TYPE_FAILED_CLUSTER_DOES_NOT_SUPPORT_GLUSTER);
Line 89:             return false;
Line 90:         }
Line 91: 


Line 94:             return false;
Line 95:         }
Line 96: 
Line 97:         GlusterVolumeEntity volume = getGlusterVolume();
Line 98:         if (volume == null) {
> already done in GlusterVolumeCommandBase
will remove the check
Line 99:             return 
failCanDoAction(VdcBllMessages.ACTION_TYPE_FAILED_GLUSTER_VOLUME_INVALID);
Line 100:         } else if (volume.getStatus() == GlusterStatus.DOWN) {
Line 101:             return 
failCanDoAction(VdcBllMessages.ACTION_TYPE_FAILED_GLUSTER_VOLUME_IS_DOWN);
Line 102:         }


-- 
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: 13
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Shubhendu Tripathi <shtri...@redhat.com>
Gerrit-Reviewer: Kanagaraj M <kmayi...@redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com>
Gerrit-Reviewer: Ramesh N <rnach...@redhat.com>
Gerrit-Reviewer: Sahina Bose <sab...@redhat.com>
Gerrit-Reviewer: Shubhendu Tripathi <shtri...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@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

Reply via email to