Yaniv Bronhaim has posted comments on this change.

Change subject: core: Adds SSH soft fencing capability
......................................................................


Patch Set 3: (5 inline comments)

....................................................
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/FenceVdsActionParameters.java
Line 10: 
Line 11:     /**
Line 12:      * Indicator to execute VDSM restart using SSH
Line 13:      */
Line 14:     private final boolean executeSshVdsmRestart;
call it isExecuteSshVdsmRestart and add
get\setIsExecuteSSHVdsmRestart
Line 15: 
Line 16:     public FenceVdsActionParameters() {
Line 17:         this.executeSshVdsmRestart = false;
Line 18:     }


....................................................
File 
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/VdsManager.java
Line 93:     }
Line 94: 
Line 95:     private final AtomicInteger mFailedToRunVmAttempts;
Line 96:     private final AtomicInteger mUnrespondedAttempts;
Line 97:     private final AtomicBoolean sshSoftFencingExecuted;
you have a function with the same name..
Line 98: 
Line 99:     private static final int VDS_DURING_FAILURE_TIMEOUT_IN_MINUTES = 
Config
Line 100:             .<Integer> 
GetValue(ConfigValues.TimeToReduceFailedRunOnVdsInMinutes);
Line 101:     private String duringFailureJobId;


Line 610:                 (Config.<Double> 
GetValue(ConfigValues.DelayResetPerVmInSeconds) * vmCount));
Line 611: 
Line 612:         if (sshSoftFencingExecuted.get()) {
Line 613:             // VDSM restart by SSH has been executed, wait more to 
see if host is OK
Line 614:             secToFence = 2 * secToFence;
it can be very long time... how did you choose this formula?  why do you need 
to wait more than the regular flow?
Line 615:         }
Line 616: 
Line 617:         return TimeUnit.SECONDS.toMillis(secToFence);
Line 618:     }


Line 653:             boolean executeSshSoftFencing = false;
Line 654:             if (!sshSoftFencingExecuted.getAndSet(true)) {
Line 655:                 executeSshSoftFencing = true;
Line 656:             }
Line 657:             
ResourceManager.getInstance().getEventListener().vdsNotResponding(vds, 
executeSshSoftFencing);
why is this logic here? instead of passing the boolean, I think all should be 
as part of  the command
Line 658:         }
Line 659:         return true;
Line 660:     }
Line 661: 


....................................................
Commit Message
Line 7: core: Adds SSH soft fencing capability
Line 8: 
Line 9: Adds a step into standard host not responding treatment process that
Line 10: tries to restart VDSM on the host using SSH connection prior to 
standard
Line 11: fencing process. If the VDSM restart dont't help, standard fencing
s/dont't/don't
Line 12: process will be executed.
Line 13: 
Line 14: Change-Id: I8002b6ac00a1e2e543b5cc8d1affdd42b994d5f7
Line 15: Bug-Url: https://bugzilla.redhat.com/967328


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I8002b6ac00a1e2e543b5cc8d1affdd42b994d5f7
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Peřina <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Martin Peřina <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to