Liron Aravot has posted comments on this change.

Change subject: core: Allow force re-election of a specific host as SPM
......................................................................


Patch Set 2: (2 inline comments)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ReinitializeSPMCommand.java
Line 24:     }
Line 25: 
Line 26:     @Override
Line 27:     protected boolean canDoAction() {
Line 28:         setVdsId(getParameters().getPrefferedSPMId());
perhaps  just pass it in the parameters vdsid member? seems like a duplication..
Line 29: 
Line 30:         if (getVds() == null) {
Line 31:             return failCanDoAction(VdcBllMessages.VDS_NOT_EXIST);
Line 32:         }


Line 28:         setVdsId(getParameters().getPrefferedSPMId());
Line 29: 
Line 30:         if (getVds() == null) {
Line 31:             return failCanDoAction(VdcBllMessages.VDS_NOT_EXIST);
Line 32:         }
perhaps check here if the host is in storage pool
Line 33: 
Line 34:         if (getVds().getStatus() != VDSStatus.Up) {
Line 35:             return 
failCanDo(VdcBllMessages.CANNOT_REINIT_SPM_VDS_NOT_UP);
Line 36:         }


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ife292b85270e6aa8f5bf723ad7d3fa84e325d3d8
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Tal Nisan <tni...@redhat.com>
Gerrit-Reviewer: Alissa Bonas <abo...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Ayal Baron <aba...@redhat.com>
Gerrit-Reviewer: Liron Aravot <lara...@redhat.com>
Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com>
Gerrit-Reviewer: Michael Kublin <mkub...@redhat.com>
Gerrit-Reviewer: Tal Nisan <tni...@redhat.com>
Gerrit-Reviewer: Vered Volansky <vvola...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to