Tal Nisan has posted comments on this change.

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


Patch Set 2: (7 inline comments)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ReinitializeSPMCommand.java
Line 58:                         getParameters().getPrefferedSPMId());
Line 59:         runVdsCommand(VDSCommandType.SpmStopOnIrs, params);
Line 60:         setSucceeded(true);
Line 61:     }
Line 62: 
Good idea, will add, not sure about if succeeded or not cause it's basically a 
"fire and forget" command, but a general log indeed
Line 63:     @Override
Line 64:     protected void setActionMessageParameters() {
Line 65:         
addCanDoActionMessage(VdcBllMessages.VAR__ACTION__REINITIALIZE);
Line 66:         addCanDoActionMessage(VdcBllMessages.VAR__TYPE__SPM);


....................................................
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/ReinitializeSPMParameters.java
Line 3: import org.ovirt.engine.core.compat.Guid;
Line 4: 
Line 5: public class ReinitializeSPMParameters extends VdcActionParametersBase {
Line 6: 
Line 7:     private Guid prefferedSPMId;
Yeah, guess so :)
Line 8:     private Guid storagePoolId = Guid.Empty;
Line 9: 
Line 10:     public ReinitializeSPMParameters(Guid storagePoolId, Guid 
prefferedSPMId) {
Line 11:         setStoragePoolId(storagePoolId);


....................................................
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/vdscommands/ResetIrsVDSCommandParameters.java
Line 12:         this(storagePoolId, vdsId);
Line 13:         setPrefferedSPMId(prefferedSPMId);
Line 14:     }
Line 15: 
Line 16:     private Guid privateVdsId;
Pettyyyyyy...
but correct, thanks :)
Line 17: 
Line 18:     private Guid prefferedSPMId;
Line 19: 
Line 20:     public Guid getVdsId() {


....................................................
File backend/manager/modules/dal/src/main/resources/bundles/AppErrors.properties
Line 79: VDS_CANNOT_REMOVE_VDS_STATUS_ILLEGAL=Cannot ${action} ${type}. Host is 
operational. Please switch Host to Maintenance mode first.
Line 80: VDS_NOT_EXIST=Cannot ${action} ${type}. Internal Error: Host does not 
exists in DB.
Line 81: CANNOT_REINIT_SPM_VDS_NOT_UP=Cannot ${action} ${type}. The host 
${VdsName} is not active.
Line 82: CANNOT_REINIT_SPM_VDS_ALREADY_SPM=Cannot ${action} ${type}. The host 
${VdsName} is already SPM or contending.
Line 83: CANNOT_REINIT_SPM_VDS_MARKED_AS_NEVER_SPM=Cannot ${action} ${type}. 
The host ${VdsName} SPM priority is never.
Any idea? thought about this one and settled for never, couldn't find how to 
phrase it..
Line 84: VDS_PROTOCOL_ERROR=Internal error: Host protocol error.
Line 85: VDS_RESPONSE_ERROR=Internal error: Host response error
Line 86: VDS_STATUS_NOT_VALID_FOR_STOP=Cannot perform Stop operation, Host has 
to be in Maintenance mode in order to be stopped.
Line 87: VDS_STATUS_NOT_VALID_FOR_START=Cannot perform Start operation, Host 
has to be in one of the following statuses: Down ,Non-Responsive or Maintenance.


....................................................
File 
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/irsbroker/SpmStopOnIrsVDSCommandParameters.java
Line 2: 
Line 3: import 
org.ovirt.engine.core.common.vdscommands.IrsBaseVDSCommandParameters;
Line 4: import org.ovirt.engine.core.compat.Guid;
Line 5: 
Line 6: public class SpmStopOnIrsVDSCommandParameters extends 
IrsBaseVDSCommandParameters {
I agree, but it has to fit the command name which already exists and called 
spmstop
Line 7:     public SpmStopOnIrsVDSCommandParameters(Guid storagePoolId) {
Line 8:         super(storagePoolId);
Line 9:     }
Line 10: 


Line 12:         super(storagePoolId);
Line 13:         setPrefferedSPMId(prefferedSPMId);
Line 14:     }
Line 15: 
Line 16:     private Guid prefferedSPMId;
deja vu.. ;)
Line 17: 
Line 18:     public Guid getPrefferedSPMId() {
Line 19:         return prefferedSPMId;
Line 20:     }


....................................................
File 
frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/ApplicationConstants.java
Line 1057: 
Line 1058:     @DefaultStringValue("Maintenance")
Line 1059:     String maintenanceHost();
Line 1060: 
Line 1061:     @DefaultStringValue("Make SPM")
Yeah, sounds better, thanks
Line 1062:     String makeHostSPM();
Line 1063: 
Line 1064:     @DefaultStringValue("Confirm 'Host has been Rebooted'")
Line 1065:     String confirmRebootedHost();


--
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 <[email protected]>
Gerrit-Reviewer: Alissa Bonas <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Ayal Baron <[email protected]>
Gerrit-Reviewer: Liron Aravot <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Michael Kublin <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: Vered Volansky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to