Kanagaraj M has uploaded a new change for review.

Change subject: engine: disable fencing for gluster hosts
......................................................................

engine: disable fencing for gluster hosts

Power management and fencing is not supported for gluster
hosts. So VdsNotRespondingTreatment will be executed for
the hosts which belongs to a virt supported cluster.

Change-Id: I056761aba2981baa1ec4b237e93f05fc36f6380f
Bug-Url: https://bugzilla.redhat.com/956606
Signed-off-by: Kanagaraj M <kmayi...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsEventListener.java
1 file changed, 14 insertions(+), 12 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/37/16237/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsEventListener.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsEventListener.java
index 862f121..621a8a3 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsEventListener.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsEventListener.java
@@ -31,11 +31,11 @@
 import org.ovirt.engine.core.common.businessentities.IVdsAsyncCommand;
 import org.ovirt.engine.core.common.businessentities.IVdsEventListener;
 import org.ovirt.engine.core.common.businessentities.NonOperationalReason;
+import org.ovirt.engine.core.common.businessentities.StoragePool;
 import org.ovirt.engine.core.common.businessentities.StoragePoolStatus;
 import org.ovirt.engine.core.common.businessentities.VDS;
 import org.ovirt.engine.core.common.businessentities.VmDynamic;
 import org.ovirt.engine.core.common.businessentities.VmStatic;
-import org.ovirt.engine.core.common.businessentities.StoragePool;
 import org.ovirt.engine.core.common.errors.VdcBllErrors;
 import org.ovirt.engine.core.common.eventqueue.EventResult;
 import org.ovirt.engine.core.common.eventqueue.EventType;
@@ -117,17 +117,19 @@
     @Override
     public void vdsNotResponding(final VDS vds) {
         ExecutionHandler.updateSpecificActionJobCompleted(vds.getId(), 
VdcActionType.MaintenanceVds, false);
-        ThreadPoolUtil.execute(new Runnable() {
-            @Override
-            public void run() {
-                log.infoFormat("ResourceManager::vdsNotResponding entered for 
Host {0}, {1}",
-                        vds.getId(),
-                        vds.getHostName());
-                
Backend.getInstance().runInternalAction(VdcActionType.VdsNotRespondingTreatment,
-                        new FenceVdsActionParameters(vds.getId(), 
FenceActionType.Restart),
-                        ExecutionHandler.createInternalJobContext());
-            }
-        });
+        if (vds.getVdsGroupSupportsVirtService()) {
+            ThreadPoolUtil.execute(new Runnable() {
+                @Override
+                public void run() {
+                    log.infoFormat("ResourceManager::vdsNotResponding entered 
for Host {0}, {1}",
+                            vds.getId(),
+                            vds.getHostName());
+                    
Backend.getInstance().runInternalAction(VdcActionType.VdsNotRespondingTreatment,
+                            new FenceVdsActionParameters(vds.getId(), 
FenceActionType.Restart),
+                            ExecutionHandler.createInternalJobContext());
+                }
+            });
+        }
     }
 
     @Override


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I056761aba2981baa1ec4b237e93f05fc36f6380f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Kanagaraj M <kmayi...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to