public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: Lon Hohberger <lon@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: cluster: STABLE3 - rgmanager: Assume 'no state' is OK for VMs
Date: Wed, 29 Jul 2009 14:31:00 -0000	[thread overview]
Message-ID: <20090729143103.8D2C112026C@lists.fedorahosted.org> (raw)

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=df5af75eb7d1c2978340ac3bcd1dd4402d7840c2
Commit:        df5af75eb7d1c2978340ac3bcd1dd4402d7840c2
Parent:        aa2ea305eb1c7b706a8a3f81adb84f90ecd880d0
Author:        Shane Bradley <sbradley@redhat.com>
AuthorDate:    Wed Jul 29 10:16:41 2009 -0400
Committer:     Lon Hohberger <lhh@redhat.com>
CommitterDate: Wed Jul 29 10:30:32 2009 -0400

rgmanager: Assume 'no state' is OK for VMs

When vm.sh does a status check, sometimes "no state" is returned. That
state is currently not a "running" state. Thus the status check fails.

The "no state" should be treated as a running state per recommendation
from libvirt developers.

Bugzilla: 514044

Signed-off-by: Lon Hohberger <lhh@redhat.com>
Signed-off-by: Shane Bradley <sbradley@redhat.com>
---
 rgmanager/src/resources/vm.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/rgmanager/src/resources/vm.sh b/rgmanager/src/resources/vm.sh
index f0e474d..4e701e5 100644
--- a/rgmanager/src/resources/vm.sh
+++ b/rgmanager/src/resources/vm.sh
@@ -527,7 +527,7 @@ virsh_status()
 
 	echo $state
 
-	if [ "$state" = "running" ] || [ "$state" = "paused" ] ||
+	if [ "$state" = "running" ] || [ "$state" = "paused" ] || [ "$state" = "no state" ] || 
 	   [ "$state" = "idle" ]; then
 		return 0
 	fi


                 reply	other threads:[~2009-07-29 14:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20090729143103.8D2C112026C@lists.fedorahosted.org \
    --to=lon@fedoraproject.org \
    --cc=cluster-cvs-relay@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).