public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: RHEL5 - rgmanager: Assume 'no state' is OK for VMs
@ 2009-07-29 14:32 Lon Hohberger
0 siblings, 0 replies; only message in thread
From: Lon Hohberger @ 2009-07-29 14:32 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=d7c71606883ec2f935e8f55152ae673bd1e2d981
Commit: d7c71606883ec2f935e8f55152ae673bd1e2d981
Parent: 5a117a03288275710e987fdd309482ae13cae242
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:31:39 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 8285cd6..24e286d 100755
--- a/rgmanager/src/resources/vm.sh
+++ b/rgmanager/src/resources/vm.sh
@@ -512,7 +512,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:32 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:32 cluster: RHEL5 - 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).