Sahina Bose has posted comments on this change.

Change subject: engine: Enable gluster hook on cluster
......................................................................


Patch Set 12: (2 inline comments)

Patchset to follow

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/GlusterHookStatusChangeCommand.java
Line 70:         entity = 
getGlusterHooksDao().getById(getParameters().getHookId(),true);
Line 71:         List <VDS> servers = 
getAllUpServers(getParameters().getClusterId());
Line 72:         List<GlusterServerHook> serverHooks = entity.getServerHooks();
Line 73:         if (serverHooks.size() != servers.size()) {
Line 74:             
errors.add(VdcBllMessages.CLUSTER_ALL_SERVERS_NOT_UP.toString());
Will change the command success criteria
Line 75:         }
Line 76: 
Line 77:         List<Callable<Pair<VDS, VDSReturnValue>>> taskList = new 
ArrayList<Callable<Pair<VDS, VDSReturnValue>>>();
Line 78:         for (final VDS upServer : servers) {


Line 106:             } else {
Line 107:                 // ignore already enabled/disabled errors.
Line 108:                 if 
(!VdcBllErrors.GlusterHookAlreadyEnabled.equals(retValue.getVdsError().getCode()))
 {
Line 109:                     errors.add(retValue.getVdsError().getMessage());
Line 110:                 }
Yes :) will add
Line 111:             }
Line 112:         }
Line 113: 
Line 114:         if (errors.size() > 0) {


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Icc6f9c77393ebed2803ec2a1b295a09f61642c31
Gerrit-PatchSet: 12
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Selvasundaram <sesub...@redhat.com>
Gerrit-Reviewer: Kanagaraj M <kmayi...@redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpast...@redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com>
Gerrit-Reviewer: Sahina Bose <sab...@redhat.com>
Gerrit-Reviewer: Selvasundaram <sesub...@redhat.com>
Gerrit-Reviewer: Shireesh Anjal <san...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to