[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] conga/ricci/modules/cluster Clusvcadm.cpp



CVSROOT:	/cvs/cluster
Module name:	conga
Branch: 	RHEL5
Changes by:	rmccabe sourceware org	2007-03-08 06:05:08

Modified files:
	ricci/modules/cluster: Clusvcadm.cpp 

Log message:
	prepend 'vm:' to rgmanager vm service names when issuing clusvcadm commands

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/Clusvcadm.cpp.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.7.2.1&r2=1.7.2.2

--- conga/ricci/modules/cluster/Clusvcadm.cpp	2006/10/24 14:31:40	1.7.2.1
+++ conga/ricci/modules/cluster/Clusvcadm.cpp	2007/03/08 06:05:08	1.7.2.2
@@ -80,6 +80,7 @@
   pair<list<String>, list<ServiceStatus> > info = service_states();
   list<String> nodes = info.first;
   list<ServiceStatus> services = info.second;
+  String svcname = servicename;
   
   // check if node can run services
   bool node_found = false;
@@ -105,9 +106,10 @@
 	flag = "-e";
       else if (iter->status == ServiceStatus::RG_STATE_STARTED ||
 	       iter->status == ServiceStatus::RG_STATE_STARTING) {
-	if (iter->vm)
+	if (iter->vm) {
 	  flag = "-M";
-	else
+      svcname = "vm:" + servicename;
+	} else
 	  flag = "-r";
       }
       
@@ -116,7 +118,7 @@
 	int status;
 	vector<String> args;
 	args.push_back(flag);
-	args.push_back(servicename);
+	args.push_back(svcname);
 	if (nodename.size()) {
 	  args.push_back("-m");
 	  args.push_back(nodename);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]