Skip to contentSkip to conversation

conga/luci/site/luci/Extensions conga_constant ...

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

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: jparsons at sourceware.org 2006-07-24 19:39:06

Modified files:
luci/site/luci/Extensions: conga_constants.py
cluster_adapters.py ModelBuilder.py

Log message:
Support for cluster config

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/conga_constants.py.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ModelBuilder.py.diff?cvsroot=cluster&r1=1.3&r2=1.4

luci/site/luci/Extensions/conga_constants.py +7 -0
@@ -3,6 +3,7 @@
 CLUSTER="5"
 CLUSTER_ADD="6"
 CLUSTER_CONFIG="7"
+CLUSTER_PROCESS="8"
 NODE="9"
 NODES="10"
 NODE_LIST="11"
@@ -43,7 +44,13 @@
 NODE_FENCE="103"
 NODE_DELETE="104"
 
+BASECLUSTER="201"
+FENCEDAEMON="202"
+MULTICAST="203"
+QUORUMD="204"
+
 PAGETYPE="pagetype"
+ACTIONTYPE="actiontype"
 CLUNAME="clustername"
 
 PATH_TO_PRIVKEY="/var/lib/luci/var/certs/privkey.pem"
luci/site/luci/Extensions/cluster_adapters.py +82 -1

102 lines not on this page · raw message

luci/site/luci/Extensions/ModelBuilder.py +8 -2
@@ -120,7 +120,7 @@
     self.command_handler = CommandHandler()
     self.isModified = False
     self.quorumd_ptr = None
-    self.isQuorumd = False
+    self.usesQuorumd = False
     if mcast_addr == None:
       self.usesMulticast = False
     else:
@@ -194,7 +194,7 @@
         self.fence_daemon_ptr = new_object
       elif parent_node.nodeName == QUORUMD_PTR_STR:
         self.quorumd_ptr = new_object
-        self.isQuorumd = True
+        self.usesQuorumd = True
       elif parent_node.nodeName == GULM_TAG_STR:
         self.GULM_ptr = new_object
         self.lock_type = GULM_TYPE
@@ -597,6 +597,12 @@
   def getMcastAddr(self):
     return self.mcast_address
 
+  def isQuorumd(self):
+    return self.usesQuorumd
+
+  def getQuorumdPtr(self):
+    return quorumd_ptr
+
   def check_empty_ptrs(self):
     if self.resourcemanager_ptr == None:
       rm = Rm()