Skip to contentSkip to conversation

conga/luci/site/luci/Extensions RicciQueries.p ...

Cluster-devel [email protected] 1 participant 1 message Oct 9, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-10-09 20:20:03

Modified files:
luci/site/luci/Extensions: RicciQueries.py conga_constants.py
conga_storage_constants.py ricci_communicator.py

Log message:
Cleanup

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/RicciQueries.py.diff?cvsroot=cluster&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/conga_constants.py.diff?cvsroot=cluster&r1=1.44&r2=1.45
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/conga_storage_constants.py.diff?cvsroot=cluster&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ricci_communicator.py.diff?cvsroot=cluster&r1=1.30&r2=1.31

luci/site/luci/Extensions/RicciQueries.py +1 -1
@@ -429,7 +429,7 @@
 	disable_svc = 'true'
 	if disable_services is False:
 		disable_svc = 'false'
-		
+
 	batch_str = '<module name="cluster"><request API_version="1.0"><function_call name="stop_node"><var mutable="false" name="cluster_shutdown" type="boolean" value="%s"/><var mutable="false" name="purge_conf" type="boolean" value="%s"/><var mutable="false" name="disable_services" type="boolean" value="%s"/></function_call></request></module>' % (cshutdown, purge_conf, disable_svc)
 
 	ricci_xml = rc.batch_run(batch_str)
luci/site/luci/Extensions/conga_constants.py +20 -20
@@ -74,26 +74,26 @@
 NODE_FORCE_DELETE		= '105'
 
 # General tasks
-BASECLUSTER	= '201'
-FENCEDAEMON	= '202'
-MULTICAST	= '203'
-QUORUMD		= '204'
-
-PROPERTIES_TAB = 'tab'
-
-PROP_GENERAL_TAB	= '1'
-PROP_FENCE_TAB		= '2'
-PROP_MCAST_TAB		= '3'
-PROP_QDISK_TAB		= '4'
-PROP_GULM_TAB		= '5'
-
-PAGETYPE	= 'pagetype'
-ACTIONTYPE	= 'actiontype'
-TASKTYPE	= 'tasktype'
-CLUNAME		= 'clustername'
-BATCH_ID	= 'batch_id'
-FLAG_DESC	= 'flag_desc'
-LAST_STATUS	= 'last_status'
+BASECLUSTER				= '201'
+FENCEDAEMON				= '202'
+MULTICAST				= '203'
+QUORUMD					= '204'
+
+PROPERTIES_TAB			= 'tab'
+
+PROP_GENERAL_TAB		= '1'
+PROP_FENCE_TAB			= '2'
+PROP_MCAST_TAB			= '3'
+PROP_QDISK_TAB			= '4'
+PROP_GULM_TAB			= '5'
+
+PAGETYPE				= 'pagetype'
+ACTIONTYPE				= 'actiontype'
+TASKTYPE				= 'tasktype'
+CLUNAME					= 'clustername'
+BATCH_ID				= 'batch_id'
+FLAG_DESC				= 'flag_desc'
+LAST_STATUS				= 'last_status'
 
 PATH_TO_PRIVKEY	= '/var/lib/luci/var/certs/privkey.pem'
 PATH_TO_CACERT	= '/var/lib/luci/var/certs/cacert.pem'
luci/site/luci/Extensions/conga_storage_constants.py +43 -24

89 lines not on this page · raw message

luci/site/luci/Extensions/ricci_communicator.py +4 -4
@@ -220,7 +220,7 @@
 
 			if LUCI_DEBUG_NET is True:
 				luci_log.debug_net_priv('RC:PB2: sending "%s" to %s:%d: %r %s' \
-					 % (doc.toxml(), self.__hostname, self.__port, e, str(e)))
+					% (doc.toxml(), self.__hostname, self.__port, e, str(e)))
 			raise RicciError, errstr
 
 		# receive response
@@ -480,11 +480,11 @@
 #		total number of modules in batch
 # * num:
 #		if num == total:
-#			 all modules in the batch completed successfuly
+#			all modules in the batch completed successfuly
 #		if num > 0:
-#			 last seq. number of module that successfuly finished
+#			last seq. number of module that successfuly finished
 #		if num < 0:
-#			 module (-num) failed (next module won't be processed)
+#			module (-num) failed (next module won't be processed)
 
 def batch_status(batch_xml):
 	if batch_xml.nodeName != 'batch':