Eli Mesika has uploaded a new change for review.

Change subject: core: Allow to fence host manually in reboot state
......................................................................

core: Allow to fence host manually in reboot state

In the event of a full host power outage (including fence devices) we
are waiting for the network attempts to reconnect while the Host is in
"Connecting" state in which manual fence is forbidden since this is
considered as a INTERMITTENT state.
After that, the Host non-responding treatment is taking place and trying
to manually fence the Host during the fencing retries will fail
since manual fence calls ClearNonResponsiveVdsVmsCommand which currently
allows only Hosts that are non-responding to execute this command.
That means that VMs can be freed only after the network reconnect
attempts plus all fencing handling took place which is quite a long time (19 min
according to the BZ description)

The fencing flow moves the Host to "Reboot" state at the time the
Restart command is issued.

This patch modifies the ClearNonResponsiveVdsVmsCommand canDoAction
method to allow execution of this command while Host is in "Reboot"
state in order to shorten the above time (in the flow described in the
BZ this patch allows freeing the VMs at 2013-12-13 12:40:33 instead of
at 12-13 12:52:39 which will save us more than 12 min)

Since when the Host is manually fenced the user approves that the Host
was rebooted we have no problem to allow the user freeing the VMs
earlier if he knows the real state.

Change-Id: I4f5f45ca122d841cc411cc6d9541d0903aeb955a
Bug-Url : https://bugzilla.redhat.com/show_bug.cgi?id=1044091
Signed-off-by: Eli Mesika <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ClearNonResponsiveVdsVmsCommand.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/86/23186/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ClearNonResponsiveVdsVmsCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ClearNonResponsiveVdsVmsCommand.java
index 1a8a5cd..2947e56 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ClearNonResponsiveVdsVmsCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ClearNonResponsiveVdsVmsCommand.java
@@ -82,7 +82,7 @@
             addCanDoActionMessage(VdcBllMessages.VDS_INVALID_SERVER_ID);
             returnValue = false;
 
-        } else if (hasVMs() && getVds().getStatus() != 
VDSStatus.NonResponsive) {
+        } else if (hasVMs() && getVds().getStatus() != VDSStatus.NonResponsive 
&& getVds().getStatus() != VDSStatus.Reboot) {
             
addCanDoActionMessage(VdcBllMessages.VDS_CANNOT_CLEAR_VMS_WRONG_STATUS);
             returnValue = false;
         }


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4f5f45ca122d841cc411cc6d9541d0903aeb955a
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.3
Gerrit-Owner: Eli Mesika <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to