public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* resource-agents: master - rgmanager: Assume 'no state' is OK for VMs
@ 2009-07-29 14:34 Lon Hohberger
  0 siblings, 0 replies; only message in thread
From: Lon Hohberger @ 2009-07-29 14:34 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/resource-agents.git?p=resource-agents.git;a=commitdiff;h=f29f45db2b6bb9c899791d3d769310ffdb50b969
Commit:        f29f45db2b6bb9c899791d3d769310ffdb50b969
Parent:        b3bc0b969f7bb69f5b2dd1ea39be8c9dc7524304
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:33:05 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-29 14:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-29 14:34 resource-agents: master - rgmanager: Assume 'no state' is OK for VMs Lon Hohberger

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).