Martin Peřina has uploaded a new change for review.

Change subject: core: Do not check PM status of host twice
......................................................................

core: Do not check PM status of host twice

Check for PM status of host only prior to PM Start/Stop actions and not
prior to Status action.

Change-Id: I5238d368469992707ff76694363f9ee493fdaebb
Bug-Url: https://bugzilla.redhat.com/1182510
Signed-off-by: Martin Perina <[email protected]>
---
M 
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/FenceVdsVDSCommand.java
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/76/37776/1

diff --git 
a/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/FenceVdsVDSCommand.java
 
b/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/FenceVdsVDSCommand.java
index a6f627e..0534a90 100644
--- 
a/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/FenceVdsVDSCommand.java
+++ 
b/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/FenceVdsVDSCommand.java
@@ -84,7 +84,8 @@
         String options = vdsFenceOptions.ToInternalString();
 
         // ignore starting already started host or stopping already stopped 
host.
-        if (!isAlreadyInRequestedStatus(options)) {
+        if (getParameters().getAction() == FenceActionType.Status
+                || !isAlreadyInRequestedStatus(options)) {
             _result =
                     getBroker().fenceNode(getParameters().getIp(),
                             getParameters().getPort() == null ? "" : 
getParameters().getPort(),


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5238d368469992707ff76694363f9ee493fdaebb
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Peřina <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to