conga/luci cluster/form-chooser cluster/form-m ...
CVSROOT: /cvs/cluster
Module name: conga
Branch: RHEL5
Changes by: rmccabe at sourceware.org 2006-12-07 17:54:31
Modified files:
luci/cluster : form-chooser form-macros index_html
resource-form-macros resource_form_handlers.js
luci/homebase : luci_homebase.css luci/site/luci/Extensions: ClusterNode.py FenceDevice.py
LuciSyslog.py cluster_adapters.py conga_constants.py ricci_bridge.py
Log message:
Related: bz217387, bz218040, bz212021
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-chooser.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.12.2.1&r2=1.12.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.90.2.6&r2=1.90.2.7
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/index_html.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.20.2.4&r2=1.20.2.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/resource-form-macros.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.21.2.2&r2=1.21.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/resource_form_handlers.js.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.20.2.2&r2=1.20.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/luci_homebase.css.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.28.2.1&r2=1.28.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterNode.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/FenceDevice.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.2&r2=1.2.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/LuciSyslog.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.2.2.3&r2=1.2.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.120.2.12&r2=1.120.2.13
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/conga_constants.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.19.2.2&r2=1.19.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ricci_bridge.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.30.2.10&r2=1.30.2.11
luci/cluster/form-chooser +3 -0
@@ -80,6 +80,9 @@ <span tal:omit-tag="" tal:condition="python: ptype == '25'"> <div metal:use-macro="here/form-macros/macros/serviceprocess-form"/> </span> + <tal:block tal:condition="python: ptype == '56'"> + <div metal:use-macro="here/form-macros/macros/servicedelete-form" /> + </tal:block> <span tal:omit-tag="" tal:condition="python: ptype == '26'"> <div metal:use-macro="here/form-macros/macros/servicestart"/> </span>
luci/cluster/form-macros +460 -152
1,141 lines not on this page · raw message
luci/cluster/index_html +0 -19
@@ -100,25 +100,6 @@ window.open(href, windowname, 'width=500,height=500,scrollbars=yes'); return false; } - - function swap_fence_div(container_id, element_id) { - var container_element = document.getElementById(container_id) - if (!container_element) { - alert('Can\'t find element with id = ' + container_id); - return (-1); - } - - var child_element = document.getElementById(element_id); - if (!child_element) { - alert('Can\'t find element with id = ' + element_id); - return (-1); - } - if (container_element.firstChild) - container_element.removeChild(container_element.firstChild); - var target = child_element.cloneNode(1); - target.id = null; - container_element.appendChild(target); - } //--> </SCRIPT> <metal:javascriptslot define-slot="javascript_head_slot" />
luci/cluster/resource-form-macros +33 -9
96 lines not on this page · raw message
luci/cluster/resource_form_handlers.js +53 -5
81 lines not on this page · raw message
luci/homebase/luci_homebase.css +21 -6
@@ -14,27 +14,27 @@ background: #dee7ec; } -div.fencedev { +div.fence { max-width: 700px; padding: .5em; } -*.fencedev { +*.fence { background: #dee7ec; } -table.fencedev { +table.fence { padding: .618em; width: 700px; } -div.fencedev, -td.fencedev { +div.fence, +td.fence { padding-top: .309em; padding-bottom: .309em; } -td.fencedev { +td.fence { width: 50%; }
@@ -438,6 +438,21 @@ margin-bottom: .25em ! important; } +div.fence_add { + margin-top: .25em ! important; + margin-bottom: .25em ! important; +} + +div.fence_container { + border: thin solid #c9c9c9; +} + +div.fence_control { + margin-top: 2em; + margin-bottom: .75em; + margin-left: .33em; +} + div.service_comp_list { background: #dee7ec; max-width: 700px;
luci/site/luci/Extensions/ClusterNode.py +7 -0
@@ -96,3 +96,10 @@ except KeyError, e: return "" + def getVotes(self): + try: + return self.getAttribute('votes') + except KeyError, e: + return "1" + except: + return None
luci/site/luci/Extensions/FenceDevice.py +6 -1
@@ -19,7 +19,12 @@ def getAgentType(self): - return self.attr_hash["agent"] + agent = self.attr_hash["agent"] + try: + return agent[agent.rfind('/') + 1:] + except: + pass + return agent def isShared(self): agent = self.getAgentType()
luci/site/luci/Extensions/LuciSyslog.py +1 -0
@@ -78,6 +78,7 @@ def close(self): try: + self.__init = 0 closelog() except: pass
luci/site/luci/Extensions/cluster_adapters.py +421 -74
735 lines not on this page · raw message
luci/site/luci/Extensions/conga_constants.py +2 -1
@@ -43,6 +43,7 @@ FENCEDEV_CONFIG="53" FENCEDEV="54" CLUSTER_DAEMON="55" +SERVICE_DELETE = '56' #Cluster tasks CLUSTER_STOP = '1000'
@@ -119,7 +120,7 @@ PRE_JOIN = "Packages are installed and configuration has been distributed, but the node has not yet joined the cluster." -POSSIBLE_REBOOT_MESSAGE = "This node is not currently responding and is probably<br/>rebooting as planned. This state should persist for 5 minutes or so..." +POSSIBLE_REBOOT_MESSAGE = "This node is not currently responding and is probably rebooting as planned. This state should persist for 5 minutes or so..." REDIRECT_MSG = " You will be redirected in 5 seconds. Please fasten your safety restraints."
luci/site/luci/Extensions/ricci_bridge.py +29 -56
123 lines not on this page · raw message