All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lon Hohberger <lhh@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH] fence_rhevm: Incorrect status detected when	VM is not in up/down
Date: Mon, 30 Jan 2012 15:35:21 -0500	[thread overview]
Message-ID: <4F26FF09.5070407@redhat.com> (raw)
In-Reply-To: <1327939117-22731-1-git-send-email-mgrac@redhat.com>

On 01/30/2012 10:58 AM, Marek 'marx' Grac wrote:
> For fencing purposes we have to focus on getting OFF status
> when machine is really 100% down, conditions for ON status are much simplier
> (as fact that machine is has power does not mean that it works). This patch
> specify condition for OFF status - in fact only 'Down' is accepted now
>
> Resolves: rhbz#769681
> ---
>   fence/agents/rhevm/fence_rhevm.py |    6 +++---
>   1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/fence/agents/rhevm/fence_rhevm.py b/fence/agents/rhevm/fence_rhevm.py
> index 65a7395..3578b5f 100644
> --- a/fence/agents/rhevm/fence_rhevm.py
> +++ b/fence/agents/rhevm/fence_rhevm.py
> @@ -41,10 +41,10 @@ def get_power_status(conn, options):
>   	else:
>   		status = result.group(1)
>
> -	if (status == "up"):
> -		return "on"
> -	else:
> +	if (status.lower() == "down"):
>   		return "off"
> +	else:
> +		return "on"
>
>   def set_power_status(conn, options):
>   	action = {


This looks correct based on the bugzilla.

-- Lon



      reply	other threads:[~2012-01-30 20:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-30 15:58 [Cluster-devel] [PATCH] fence_rhevm: Incorrect status detected when VM is not in up/down Marek 'marx' Grac
2012-01-30 20:35 ` Lon Hohberger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F26FF09.5070407@redhat.com \
    --to=lhh@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.