This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
resource-agents: master - rgmanager: Assume 'no state' is OK for VMs
- From: Lon Hohberger <lon at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Wed, 29 Jul 2009 14:33:49 +0000 (UTC)
- Subject: resource-agents: master - rgmanager: Assume 'no state' is OK for VMs
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