conga/luci cluster/form-macros site/luci/Exten ...
CVSROOT: /cvs/cluster
Module name: conga
Branch: RHEL5
Changes by: rmccabe at sourceware.org 2007-06-19 15:54:10
Modified files:
luci/cluster : form-macros
luci/site/luci/Extensions: LuciClusterActions.py
LuciClusterInfo.py cluster_adapters.py conga_constants.py
Removed files:
luci/python/Extensions: .cvsignore
Log message:
Fix bz238726: Conga provides no way to remove a dead node from a cluster (depends on 244867)
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.90.2.23&r2=1.90.2.24
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/python/Extensions/.cvsignore.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/LuciClusterActions.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.4.1&r2=1.1.4.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/LuciClusterInfo.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.4.1&r2=1.1.4.2
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.30&r2=1.120.2.31
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.10&r2=1.19.2.11
luci/cluster/form-macros +6 -0
@@ -3117,7 +3117,11 @@ <option tal:attributes="value nodeinfo/delete_url" tal:condition="python: not 'ricci_error' in nodeinfo"> Delete this node</option> + <option tal:attributes="value nodeinfo/force_delete_url" + tal:condition="python: 'ricci_error' in nodeinfo"> + Force the deletion of this node</option> </select> + <input type="button" value="Go" onclick="if (this.form.gourl[this.form.gourl.selectedIndex].value && confirm(this.form.gourl[this.form.gourl.selectedIndex].text + '?')) return dropdown(this.form.gourl)" /> </form>
@@ -3129,6 +3133,7 @@ <select name="gourl"> <option value="">Choose a Task...</option> <option tal:attributes="value nodeinfo/fence_url | nothing">Fence this node</option> + <option tal:attributes="value nodeinfo/force_delete_url | nothing">Force the deletion of this node</option> </select> <input type="button" value="Go" onclick="if (this.form.gourl[this.form.gourl.selectedIndex].value && confirm(this.form.gourl[this.form.gourl.selectedIndex].text + '?')) return dropdown(this.form.gourl)" />
@@ -3537,6 +3542,7 @@ <select class="node" name="gourl"> <option value="">Choose a Task...</option> <option tal:attributes="value nd/fence_it_url | nothing">Fence this node</option> + <option tal:attributes="value nd/force_delete_url| nothing">Force the deletion of this node</option> </select> <input type="button" value="Go" onclick="if (this.form.gourl[this.form.gourl.selectedIndex].value && confirm(this.form.gourl[this.form.gourl.selectedIndex].text + '?')) return dropdown(this.form.gourl)" />
luci/site/luci/Extensions/Attic/LuciClusterActions.py +60 -2
80 lines not on this page · raw message
luci/site/luci/Extensions/Attic/LuciClusterInfo.py +7 -11
@@ -17,7 +17,7 @@ from conga_constants import CLUSTER_CONFIG, CLUSTER_DELETE, \ CLUSTER_PROCESS, CLUSTER_RESTART, CLUSTER_START, CLUSTER_STOP, \ - FDOM, FENCEDEV, NODE, NODE_ACTIVE, \ + NODE_FORCE_DELETE, FDOM, FENCEDEV, NODE, NODE_ACTIVE, \ NODE_ACTIVE_STR, NODE_DELETE, NODE_FENCE, NODE_INACTIVE, \ NODE_INACTIVE_STR, NODE_JOIN_CLUSTER, NODE_LEAVE_CLUSTER, \ NODE_PROCESS, NODE_REBOOT, NODE_UNKNOWN, NODE_UNKNOWN_STR, \
@@ -149,18 +149,10 @@ if not doc: try: from LuciDB import getClusterStatusDB + fvars = GetReqVars(request, [ 'clustername' ]) - clustername = cluname + clustername = fvars['clustername'] if clustername is None: - try: - clustername = request['clustername'] - except: - try: - clustername = request.form['clustername'] - except: - pass - - if not clustername: raise Exception, 'unable to determine cluster name' cinfo = getClusterStatusDB(self, clustername)
@@ -860,6 +852,8 @@ else: infohash['fence_url'] = '%s?pagetype=%s&task=%s&nodename=%s&clustername=%s' \ % (baseurl, NODE_PROCESS, NODE_FENCE, nodename, clustername) + infohash['force_delete_url'] = '%s?pagetype=%s&task=%s&nodename=%s&clustername=%s' \ + % (baseurl, NODE_PROCESS, NODE_FORCE_DELETE, nodename, clustername) # figure out current services running on this node svc_dict_list = list()
@@ -1021,6 +1015,8 @@ else: nl_map['fence_it_url'] = '%s?pagetype=%s&task=%s&nodename=%s&clustername=%s' \ % (baseurl, NODE_PROCESS, NODE_FENCE, name, clustername) + nl_map['force_delete_url'] = '%s?pagetype=%s&task=%s&nodename=%s&clustername=%s' \ + % (baseurl, NODE_PROCESS, NODE_FORCE_DELETE, name, clustername) # figure out current services running on this node svc_dict_list = list()
luci/site/luci/Extensions/cluster_adapters.py +51 -26
238 lines not on this page · raw message
luci/site/luci/Extensions/conga_constants.py +10 -9
@@ -59,17 +59,18 @@ SYS_SERVICE_UPDATE = '91' # Cluster tasks -CLUSTER_STOP = '1000' -CLUSTER_START = '1001' -CLUSTER_RESTART = '1002' -CLUSTER_DELETE = '1003' +CLUSTER_STOP = '1000' +CLUSTER_START = '1001' +CLUSTER_RESTART = '1002' +CLUSTER_DELETE = '1003' # Node tasks -NODE_LEAVE_CLUSTER = '100' -NODE_JOIN_CLUSTER = '101' -NODE_REBOOT = '102' -NODE_FENCE = '103' -NODE_DELETE = '104' +NODE_LEAVE_CLUSTER = '100' +NODE_JOIN_CLUSTER = '101' +NODE_REBOOT = '102' +NODE_FENCE = '103' +NODE_DELETE = '104' +NODE_FORCE_DELETE = '105' # General tasks BASECLUSTER = '201'