cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/ricci docs/cluster_api.html modules/clus ...
Date: 10 Mar 2007 04:57:48 -0000	[thread overview]
Message-ID: <20070310045748.10069.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	rmccabe at sourceware.org	2007-03-10 04:57:47

Modified files:
	ricci/docs     : cluster_api.html 
	ricci/modules/cluster: Clusvcadm.cpp 

Log message:
	- Add recognition of the RG_STATE_MIGRATE service state
	- Do not allow a service to be migrated, started, or restarted if it is currently in the process of being migrated

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/docs/cluster_api.html.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/Clusvcadm.cpp.diff?cvsroot=cluster&r1=1.10&r2=1.11

--- conga/ricci/docs/cluster_api.html	2007/03/09 22:48:20	1.6
+++ conga/ricci/docs/cluster_api.html	2007/03/10 04:57:47	1.7
@@ -86,7 +86,7 @@
 	</UL>
 	<LI><P>migrate_service</P>
 	<UL>
-		<P>Migrate the virtual service ???servicename??? to cluster node ???nodename.??? The virtual service ???servicename??? must be running, and xend must be running and configured to allow live migration on both nodes.
+		<P>Migrate the virtual service ???servicename??? to cluster node ???nodename.??? To migrate the virtual service, it must be started, and xend must be running and configured to allow live migration on both its current node and on ???nodename.??? If the service is not started, it will be started on ???nodename.???
 		</P>
 		<P>Input variables:<BR>- ???servicename??? (string) ??? name of
 		the virtual service to migrate.<BR>- ???nodename??? (string) ??? 
--- conga/ricci/modules/cluster/Clusvcadm.cpp	2007/03/09 22:48:20	1.10
+++ conga/ricci/modules/cluster/Clusvcadm.cpp	2007/03/10 04:57:47	1.11
@@ -47,7 +47,8 @@
 	      RG_STATE_CHECK           = 116,    // Checking status
 	      RG_STATE_ERROR           = 117,    // Recoverable error
 	      RG_STATE_RECOVER         = 118,    // Pending recovery
-	      RG_STATE_DISABLED        = 119};   // Resource not allowd to run
+	      RG_STATE_DISABLED        = 119,    // Resource not allowd to run
+	      RG_STATE_MIGRATE         = 120};   // Resource migrating
   
   ServiceStatus(const String& name,
 		const String& node, 
@@ -96,6 +97,10 @@
        iter++)
     if (iter->name == servicename) {
       String flag;
+
+      if (iter->status == ServiceStatus::RG_STATE_MIGRATE)
+         throw String(servicename + " is in the process of being migrated");
+		
       if (iter->status == ServiceStatus::RG_STATE_STOPPED ||
 	  iter->status == ServiceStatus::RG_STATE_STOPPING ||
 	  iter->status == ServiceStatus::RG_STATE_FAILED ||
@@ -156,6 +161,8 @@
 		continue;
     if (iter->name == servicename) {
       String flag;
+      if (iter->status == ServiceStatus::RG_STATE_MIGRATE)
+         throw String(servicename + " is already in the process of being migrated");
       if (iter->status == ServiceStatus::RG_STATE_STOPPED ||
 	  iter->status == ServiceStatus::RG_STATE_STOPPING ||
 	  iter->status == ServiceStatus::RG_STATE_FAILED ||
@@ -233,6 +240,9 @@
        iter++)
     if (iter->name == servicename) {
       String flag;
+      if (iter->status == ServiceStatus::RG_STATE_MIGRATE)
+         throw String(servicename + " is in the process of being migrated");
+
       if (iter->status == ServiceStatus::RG_STATE_STOPPED ||
 	  iter->status == ServiceStatus::RG_STATE_STOPPING ||
 	  iter->status == ServiceStatus::RG_STATE_FAILED ||



             reply	other threads:[~2007-03-10  4:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-10  4:57 rmccabe [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-03-10  5:01 [Cluster-devel] conga/ricci docs/cluster_api.html modules/clus rmccabe
2007-03-10  5:00 rmccabe
2007-03-09 22:50 rmccabe
2007-03-09 22:49 rmccabe
2007-03-09 22:48 rmccabe

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=20070310045748.10069.qmail@sourceware.org \
    --to=rmccabe@sourceware.org \
    /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 NNTP newsgroup(s).