conga/luci cluster/form-chooser cluster/form-m ...
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-02-23 22:07:45
Modified files:
luci/cluster : form-chooser form-macros
luci/homebase : luci_homebase.css luci/site/luci/Extensions: cluster_adapters.py
conga_constants.py ricci_bridge.py
Added files:
luci/cluster : validate_sys_svc.js
luci/plone-custom: conga_ajax.js svc_reload.png
svc_reload_active.png svc_reload_disabled.png svc_start.png svc_start_active.png svc_start_disabled.png svc_stop.png svc_stop_active.png svc_stop_disabled.png
luci/site/luci/Extensions: system_adapters.py
Log message:
- System service management interface (chkconfig / service start/stop/restart)
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/validate_sys_svc.js.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-chooser.diff?cvsroot=cluster&r1=1.16&r2=1.17
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.192&r2=1.193
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/luci_homebase.css.diff?cvsroot=cluster&r1=1.39&r2=1.40
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/plone-custom/conga_ajax.js.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/plone-custom/svc_reload.png.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/plone-custom/svc_reload_active.png.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/plone-custom/svc_reload_disabled.png.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/plone-custom/svc_start.png.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/plone-custom/svc_start_active.png.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/plone-custom/svc_start_disabled.png.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/plone-custom/svc_stop.png.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/plone-custom/svc_stop_active.png.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/plone-custom/svc_stop_disabled.png.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/system_adapters.py.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&r1=1.243&r2=1.244
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/conga_constants.py.diff?cvsroot=cluster&r1=1.36&r2=1.37
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ricci_bridge.py.diff?cvsroot=cluster&r1=1.58&r2=1.59
/cvs/cluster/conga/luci/cluster/validate_sys_svc.js,v --> standard output revision 1.1
- renamed from luci/cluster/validate_sys_svc.js +22 -0
@@ -0,0 +1,22 @@ +function svc_callback() { + if (xmlHttp_object.readyState == 4) { + if (xmlHttp_object.status == 200) { + var response = xmlHttp_object.responseXML; + if (response) { + req_status = response.getAttribute('success'); + req_op = response.getAttribute('operation'); + req_svc = response.getAttribute('service'); + req_msg = response.getAttribute('message'); + //alert(req_msg + ' / ' + req_status + ' / ' + req_op + ' / ' + req_svc); + } else { + alert(xmlHttp_object.responseText); + } + } else { + //alert('Error retrieving data from server: ' + xmlHttp_object.status); + } + } +} + +function update_sys_svc(url) { + initiate_async_get(url, svc_callback); +}
luci/cluster/form-chooser +6 -2
@@ -149,11 +149,15 @@ <span tal:omit-tag="" tal:condition="python: ptype == '55'"> <div metal:use-macro="here/form-macros/macros/fencedevprocess-form"/> </span> - <span tal:omit-tag="" tal:condition="python: ptype == '80'"> <div metal:use-macro="here/form-macros/macros/conf_editor-form"/> </span> - + <span tal:omit-tag="" tal:condition="python: ptype == '90'"> + <div metal:use-macro="here/form-macros/macros/system-svc-form"/> + </span> + <span tal:omit-tag="" tal:condition="python: ptype == '91'"> + <div metal:use-macro="here/form-macros/macros/system-svc-update-form"/> + </span> </span> </metal:choose-form> </body>
luci/cluster/form-macros +100 -0
110 lines not on this page · raw message
luci/homebase/luci_homebase.css +54 -0
60 lines not on this page · raw message
/cvs/cluster/conga/luci/plone-custom/conga_ajax.js,v --> standard output revision 1.1
- renamed from luci/plone-custom/conga_ajax.js +29 -0
@@ -0,0 +1,29 @@ +var xmlHttp_object = false; + +function initiate_async_get(url, callback_function) { + xmlHttp_object = false; + + if (!xmlHttp_object && typeof XMLHttpRequest != 'undefined') { + try { + xmlHttp_object = new XMLHttpRequest(); + } catch (e0) { + try { + xmlHttp_object = new ActiveXObject("Msxml2.XMLHTTP"); + } catch (e) { + try { + xmlHttp_object = new ActiveXObject("Microsoft.XMLHTTP"); + } catch (e2) { + xmlHttp_object = false; + } + } + } + } + + if (xmlHttp_object) { + xmlHttp_object.open("GET", url, true); + xmlHttp_object.onreadystatechange = callback_function; + xmlHttp_object.send(null); + } else { + alert("Unable to communicate with the luci server."); + } +}
/cvs/cluster/conga/luci/plone-custom/svc_reload.png,v --> standard output revision 1.1
Binary files /cvs/cluster/conga/luci/plone-custom/svc_reload.png and - differ /cvs/cluster/conga/luci/plone-custom/svc_reload_active.png,v --> standard output revision 1.1
Binary files /cvs/cluster/conga/luci/plone-custom/svc_reload_active.png and - differ /cvs/cluster/conga/luci/plone-custom/svc_reload_disabled.png,v --> standard output revision 1.1
Binary files /cvs/cluster/conga/luci/plone-custom/svc_reload_disabled.png and - differ /cvs/cluster/conga/luci/plone-custom/svc_start.png,v --> standard output revision 1.1
Binary files /cvs/cluster/conga/luci/plone-custom/svc_start.png and - differ /cvs/cluster/conga/luci/plone-custom/svc_start_active.png,v --> standard output revision 1.1
Binary files /cvs/cluster/conga/luci/plone-custom/svc_start_active.png and - differ /cvs/cluster/conga/luci/plone-custom/svc_start_disabled.png,v --> standard output revision 1.1
Binary files /cvs/cluster/conga/luci/plone-custom/svc_start_disabled.png and - differ /cvs/cluster/conga/luci/plone-custom/svc_stop.png,v --> standard output revision 1.1
Binary files /cvs/cluster/conga/luci/plone-custom/svc_stop.png and - differ /cvs/cluster/conga/luci/plone-custom/svc_stop_active.png,v --> standard output revision 1.1
Binary files /cvs/cluster/conga/luci/plone-custom/svc_stop_active.png and - differ /cvs/cluster/conga/luci/plone-custom/svc_stop_disabled.png,v --> standard output revision 1.1
Binary files /cvs/cluster/conga/luci/plone-custom/svc_stop_disabled.png and - differ /cvs/cluster/conga/luci/site/luci/Extensions/system_adapters.py,v --> standard output revision 1.1
- renamed from luci/site/luci/Extensions/system_adapters.py +134 -0
134 lines not on this page · raw message
luci/site/luci/Extensions/cluster_adapters.py +3 -1
@@ -41,6 +41,7 @@ from GeneralError import GeneralError from homebase_adapters import manageCluster, createClusterSystems, havePermCreateCluster, setNodeFlag, delNodeFlag, userAuthenticated, getStorageNode, getClusterNode, delCluster, parseHostForm from LuciSyslog import LuciSyslog +from system_adapters import validate_svc_update #Policy for showing the cluster chooser menu: #1) If there are no clusters in the ManagedClusterSystems
@@ -2453,7 +2454,8 @@ 54: validateFenceEdit, 55: validateDaemonProperties, 57: deleteFenceDevice, - 58: validateNodeFenceConfig + 58: validateNodeFenceConfig, + 90: validate_svc_update } def validatePost(self, request):
luci/site/luci/Extensions/conga_constants.py +2 -0
@@ -48,6 +48,8 @@ FENCEDEV_NODE_CONFIG = '58' CONF_EDITOR = '80' +SYS_SERVICE_MANAGE = '90' +SYS_SERVICE_UPDATE = '91' #Cluster tasks CLUSTER_STOP = '1000'
luci/site/luci/Extensions/ricci_bridge.py +64 -0
70 lines not on this page · raw message