From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20404 invoked by alias); 12 Jun 2009 10:29:16 -0000 Received: (qmail 20398 invoked by alias); 12 Jun 2009 10:29:16 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bastion2.fedora.phx.redhat.com Subject: cluster: STABLE2 - fence_lpar: #504705 - fence_lpar: lssyscfg command on HMC can take longer than SHELL_TIMEOUT To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: cluster.git X-Git-Refname: refs/heads/STABLE2 X-Git-Reftype: branch X-Git-Oldrev: bdfd266ad5190c106ebc62ba4054f6b94725ff66 X-Git-Newrev: 439d4d2bfb3dc65e918a7ba340d741653b1d1fca From: =?utf-8?q?Marek_Gr=C3=A1c?= Message-Id: <20090612102827.30ECC120361@lists.fedorahosted.org> Date: Fri, 12 Jun 2009 10:29:00 -0000 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2009-q2/txt/msg00510.txt.bz2 Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=439d4d2bfb3dc65e918a7ba340d741653b1d1fca Commit: 439d4d2bfb3dc65e918a7ba340d741653b1d1fca Parent: bdfd266ad5190c106ebc62ba4054f6b94725ff66 Author: Marek 'marx' Grac AuthorDate: Fri Jun 12 12:23:55 2009 +0200 Committer: Marek 'marx' Grac CommitterDate: Fri Jun 12 12:23:55 2009 +0200 fence_lpar: #504705 - fence_lpar: lssyscfg command on HMC can take longer than SHELL_TIMEOUT The lssyscfg command issued to the HMC by fence_lpar to get the status of the LPAR can take longer than SHELL_TIMEOUT, 3 seconds. This results in fencing failures which could be avoided if fence_lpar waited longer for the HMC to respond to the command. --- fence/agents/lpar/fence_lpar.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fence/agents/lpar/fence_lpar.py b/fence/agents/lpar/fence_lpar.py index 64ff9be..bf05f73 100755 --- a/fence/agents/lpar/fence_lpar.py +++ b/fence/agents/lpar/fence_lpar.py @@ -24,7 +24,7 @@ def get_power_status(conn, options): if options["-H"] == "3": try: conn.send("lssyscfg -r lpar -m " + options["-s"] + " -n " + options["-n"] + " -F name,state\n") - conn.log_expect(options, options["-c"], SHELL_TIMEOUT) + conn.log_expect(options, options["-c"], POWER_TIMEOUT) except pexpect.EOF: fail(EC_CONNECTION_LOST) except pexpect.TIMEOUT: @@ -34,7 +34,7 @@ def get_power_status(conn, options): elif options["-H"] == "4": try: conn.send("lssyscfg -r lpar -m "+ options["-s"] +" --filter 'lpar_names=" + options["-n"] + "'\n") - conn.log_expect(options, options["-c"], SHELL_TIMEOUT) + conn.log_expect(options, options["-c"], POWER_TIMEOUT) except pexpect.EOF: fail(EC_CONNECTION_LOST) except pexpect.TIMEOUT: