Skip to contentSkip to conversation

conga/luci/site/luci/Extensions ricci_bridge.py

Cluster-devel [email protected] 1 participant 1 message Jul 19, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2006-07-19 22:50:13

Modified files:
luci/site/luci/Extensions: ricci_bridge.py

Log message:
fix error in batch command construction

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ricci_bridge.py.diff?cvsroot=cluster&r1=1.7&r2=1.8

luci/site/luci/Extensions/ricci_bridge.py +8 -2
@@ -556,7 +556,11 @@
         batch += '<clusternode name="' + i + '" votes="1" />'
     batch += '</clusternodes>'
 
-    batch += '<cman/>'
+    if len(nodeList) == 2:
+        batch += '<cman expected_votes="1" two_node="1"/>'
+    else:
+        batch += '<cman/>'
+ 
     batch += '<fencedevices/>'
     batch += '<rm/>'
     batch += '</cluster>'
@@ -567,7 +571,9 @@
     
     batch += '<module name="cluster">'
     batch += '<request API_version="1.0">'
-    batch += '<function_call name="start_node" cluster_startup="true"/>'
+    batch += '<function_call name="start_node">'
+    batch += '<var mutable="false" name="cluster_startup" type="boolean" value="true"/>'
+    batch += '</function_call>'
     batch += '</request>'
     batch += '</module>'
     batch += '</batch>'