cluster: RHEL6 - fence_ipmilan: Correct return code for diag operation

Lon Hohberger lon at fedoraproject.org
Wed Apr 6 13:47:43 UTC 2011


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=e51fbc090cb3b7a343aae3ff7d1ffcd94f7fbb5b
Commit:        e51fbc090cb3b7a343aae3ff7d1ffcd94f7fbb5b
Parent:        3ca792d705ca4c52a7224c183eaa84b38682557f
Author:        Marek 'marx' Grac <mgrac at redhat.com>
AuthorDate:    Mon Apr 4 15:19:57 2011 +0200
Committer:     Lon Hohberger <lhh at redhat.com>
CommitterDate: Wed Apr 6 09:47:24 2011 -0400

fence_ipmilan: Correct return code for diag operation

Return code for diag operation should be 0.

Replaces commit 8a97abd04b8492310c1095413c5cf26bbf98e395

"diaf" != "diag"

Resolves: rhbz#655764

Signed-off-by: Lon Hohberger <lhh at redhat.com>
Tested-by: Lon Hohberger <lhh at redhat.com>
---
 fence/agents/ipmilan/ipmilan.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/fence/agents/ipmilan/ipmilan.c b/fence/agents/ipmilan/ipmilan.c
index be36f58..92009f0 100644
--- a/fence/agents/ipmilan/ipmilan.c
+++ b/fence/agents/ipmilan/ipmilan.c
@@ -1189,5 +1189,15 @@ metaout:
 	  else
 	    printf("Failed\n");
 	}
+	
+        if (!strcasecmp(op, "diag")) {
+          /** .. but when a system receive the DIAG signal , it 
+           ** switches to a kdump kernel, but the machine is always
+           ** "on" during the dump phase. It only become temporarily
+           ** "off" at the end of the dump just before rebooting.
+           **/
+          translated_ret = 0;
+        }
+
 	return translated_ret;
 }


More information about the cluster-commits mailing list