conga luci/cluster/form-chooser luci/cluster/f ...
CVSROOT: /cvs/cluster
Module name: conga
Branch: RHEL5
Changes by: rmccabe at sourceware.org 2006-12-22 17:50:17
Modified files:
luci/cluster : form-chooser form-macros index_html
validate_config_qdisk.js
luci/conga_ssl : SSLClient.cpp SSLClient.h conga_ssl_lib.cpp luci/homebase : form-macros homebase_common.js index_html
luci_homebase.css validate_sys_remove.js
luci/site/luci/Extensions: FenceHandler.py ModelBuilder.py
cluster_adapters.py conga_constants.py conga_ssl.py homebase_adapters.py ricci_bridge.py ricci_communicator.py
luci/utils : luci_admin
ricci/modules/storage: ExtendedFS.cpp
Removed files:
luci/site/luci/Extensions: fence_test.py
Log message:
Resolves: 201394 Improves, Related: 212021
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-chooser.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.12.2.2&r2=1.12.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.90.2.10&r2=1.90.2.11
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/index_html.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.20.2.5&r2=1.20.2.6
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/validate_config_qdisk.js.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.4&r2=1.4.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/conga_ssl/SSLClient.cpp.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/conga_ssl/SSLClient.h.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/conga_ssl/conga_ssl_lib.cpp.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/form-macros.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.44.2.4&r2=1.44.2.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/homebase_common.js.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.13.2.1&r2=1.13.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/index_html.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.18.2.2&r2=1.18.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.2&r2=1.28.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/validate_sys_remove.js.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/FenceHandler.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.4.2.1&r2=1.4.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ModelBuilder.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.8.2.2&r2=1.8.2.3
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.14&r2=1.120.2.15
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.3&r2=1.19.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/conga_ssl.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.1&r2=1.1.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/homebase_adapters.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.34.2.6&r2=1.34.2.7
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.14&r2=1.30.2.15
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ricci_communicator.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.9.2.7&r2=1.9.2.8
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/fence_test.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/utils/luci_admin.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.50&r2=1.50.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/storage/ExtendedFS.cpp.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.7&r2=1.7.2.1
luci/cluster/form-chooser +5 -0
@@ -152,6 +152,11 @@ <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> </metal:choose-form> </body>
luci/cluster/form-macros +517 -200
1,329 lines not on this page · raw message
luci/cluster/index_html +7 -6
@@ -207,23 +207,24 @@ <tal:block tal:define="ret python: request.SESSION.get('checkRet')"> <div class="retmsgs" id="retmsgsdiv" tal:condition="python:(ret and 'messages' in ret and len(ret['messages']))"> <div class="hbclosebox"> - <a href="javascript:hide_element('retmsgsdiv');"><img src="../homebase/x.png"></a> + <a href="javascript:hide_element('retmsgsdiv')"><img src="/luci/homebase/x.png" class="closeBox" title="dismiss"></a> </div> - <ul class="retmsgs"> + <p class="retmsgs">Status messages:</p> + <ul class="statusmsg"> <tal:block tal:repeat="e python:ret['messages']"> - <li class="retmsgs" tal:content="python:e" /> + <li class="statusmsg" tal:content="python:e" /> </tal:block> </ul> </div> <div id="errmsgsdiv" class="errmsgs" tal:condition="python:(ret and 'errors' in ret and len(ret['errors']))"> <div class="hbclosebox"> - <a class="hbclosebox" href="javascript:hide_element('errmsgsdiv');"><img src="../homebase/x.png"></a> + <a class="hbclosebox" href="javascript:hide_element('errmsgsdiv')"><img src="/luci/homebase/x.png" class="closeBox" title="dismiss"></a> </div> <p class="errmsgs">The following errors occurred:</p> - <ul class="errmsgs"> + <ul class="statusmsg"> <tal:block tal:repeat="e python:ret['errors']"> - <li class="errmsgs" tal:content="python:e" /> + <li class="statusmsg" tal:content="python:e" /> </tal:block> </ul> </div>
luci/cluster/validate_config_qdisk.js +3 -2
@@ -314,10 +314,11 @@ var del_td = document.createElement('td'); del_td.className = 'systemsTable'; var del_img = document.createElement('img'); - del_img.className = 'qdscore qdisk qdel_img'; + del_img.className = 'qdisk deleteRow'; del_img.setAttribute('name', hstr + ':hdel'); del_img.setAttribute('id', hstr + ':hdel'); - del_img.setAttribute('src', '/luci/homebase/x.png'); + del_img.setAttribute('src', '/luci/delete-row.png'); + del_img.setAttribute('title', 'delete this row'); del_img.setAttribute('onClick', 'delete_qdisk_heur(this, document.quorum_partition)'); del_td.appendChild(del_img);
luci/conga_ssl/SSLClient.cpp +5 -28
@@ -437,7 +437,7 @@ } bool -SSLClient::trust_peer_cert() +SSLClient::trust_peer_cert(const String& hostname) { MutexLocker l(global_lock);
@@ -447,35 +447,12 @@ if (!peer_has_cert()) throw String("peer did not present cert"); - String f_name(_certs_store_dir); - f_name += "/peer_cert_XXXXXX"; - int fd = -1; - char* buff = new char[f_name.size() + 1]; + String filename(_certs_store_dir); + filename += "/" + hostname + "_cert_pub"; try { - // pick a filename - strcpy(buff, f_name.c_str()); - if ((fd = mkstemp(buff)) == -1) - throw String("unable to generate random file"); - f_name = buff; - delete[] buff; buff = 0; - - String data(_cert_pem); - while (data.size()) { - ssize_t i = write(fd, data.c_str(), data.size()); - if (i == -1) { - if (errno != EINTR) - throw String("error writing certificate"); - } else - data = data.substr(i); - } - while (close(fd) && errno == EINTR) - ; + File::create(filename).replace(_cert_pem); } catch ( ... ) { - delete[] buff; - if (fd != -1) - while (close(fd) && errno == EINTR) - ; - unlink(f_name.c_str()); + unlink(filename.c_str()); return false; }
luci/conga_ssl/SSLClient.h +1 -1
@@ -56,7 +56,7 @@ String peer_cert_fingerprint(String& digest); -bool trust_peer_cert (); + bool trust_peer_cert(const String&);bool untrust_peer_cert ();// remove peer's cert from cert_store ClientSocket&socket ();
luci/conga_ssl/conga_ssl_lib.cpp +3 -2
@@ -261,7 +261,8 @@ conga_ssl_lib_trust(PyObject *self, PyObject *args) { int id; - if (!PyArg_ParseTuple(args, "i", &id)) + const char* msg; + if (!PyArg_ParseTuple(args, "is", &id, &msg)) return NULL; try {
@@ -273,7 +274,7 @@ bool resp; { PythonThreadsAllower all; - resp = iter->second->trust_peer_cert(); + resp = iter->second->trust_peer_cert(msg); } PyObject* resp_p = Py_BuildValue("i", (resp)?1:0);
luci/homebase/form-macros +418 -145
749 lines not on this page · raw message
luci/homebase/homebase_common.js +46 -8
91 lines not on this page · raw message
luci/homebase/index_html +7 -6
@@ -134,23 +134,24 @@ <div class="retmsgs" id="retmsgsdiv" tal:condition="python:(ret and 'messages' in ret and len(ret['messages']))"> <div class="hbclosebox"> - <a href="javascript:hide_element('retmsgsdiv');"><img src="x.png"></a> + <a href="javascript:hide_element('retmsgsdiv');"><img src="x.png" class="closeBox" title="dismiss"></a> </div> - <ul class="retmsgs"> + <p class="retmsgs">Status messages:</p> + <ul class="statusmsg"> <tal:block tal:repeat="e python:ret['messages']"> - <li class="retmsgs" tal:content="python:e" /> + <li class="statusmsg" tal:content="python:e" /> </tal:block> </ul> </div> <div id="errmsgsdiv" class="errmsgs" tal:condition="python:(ret and 'errors' in ret and len(ret['errors']))"> <div class="hbclosebox"> - <a class="hbclosebox" href="javascript:hide_element('errmsgsdiv');"><img src="x.png"></a> + <a class="hbclosebox" href="javascript:hide_element('errmsgsdiv');"><img src="x.png" class="closeBox" title="dismiss"></a> </div> <p class="errmsgs">The following errors occurred:</p> - <ul class="errmsgs"> + <ul class="statusmsg"> <tal:block tal:repeat="e python:ret['errors']"> - <li class="errmsgs" tal:content="python:e" /> + <li class="statusmsg" tal:content="python:e" /> </tal:block> </ul> </div>
luci/homebase/luci_homebase.css +14 -5
@@ -48,6 +48,8 @@ } input.qdisk { + font-family: "Bitstream Vera Sans Mono", "DejaVu Sans Mono", monospace ! important; + font-size: 12px ! important; padding: .2em; }
@@ -81,6 +83,10 @@ margin-left: 0 ! important; } +ul.statusmsg, li.statusmsg { + color: black ! important; +} + ul.deploy { margin-bottom: +.5em; }
@@ -153,7 +159,7 @@ color: green !important; } -p.errmsgs { +p.errmsgs, p.retmsgs { font-weight: 800; }
@@ -163,7 +169,7 @@ border-width: 2px; border-color: red; margin-top: 2em; - max-width: 700px; + max-width: 600px ! important; } div.retmsgs {
@@ -172,7 +178,7 @@ border-style: dotted; border-width: 2px; border-color: green; - max-width: 700px; + max-width: 600px ! important; } div.hbCSystems {
@@ -208,6 +214,7 @@ table.systemsTable { padding-left: +.5em; background: #dee7ec; + max-width: 700px; } td.systemsTable {
@@ -250,8 +257,6 @@ } img.qdel_img { - height: 7px; - width: 7px; background: #dee7ec; border: none; }
@@ -415,6 +420,10 @@ color: blue ! important; } +img.deleteRow, img.closeBox { + cursor: pointer; +} + *.running, *.node_active { color: green ! important;
luci/homebase/validate_sys_remove.js +2 -2
@@ -6,7 +6,7 @@ if (!form) return (-1); - var num_clusters = document.getElementById('numClusters').value; + var num_clusters = document.getElementById('num_clusters').value; for (var i = 0 ; i < num_clusters ; i++) { var element = document.getElementById('__CLUSTER' + i); if (!element || !element.value || !element.checked)
@@ -14,7 +14,7 @@ selected_clusters.push(element.value); } - var num_storage = document.getElementById('numStorage').value; + var num_storage = document.getElementById('num_storage').value; for (var i = 0 ; i < num_storage ; i++) { var element = document.getElementById('__SYSTEM' + i); if (!element || !element.value || !element.checked)
luci/site/luci/Extensions/FenceHandler.py +532 -1
551 lines not on this page · raw message
luci/site/luci/Extensions/ModelBuilder.py +16 -1
@@ -902,6 +902,21 @@ if fence.getName() == oldname: fence.addAttribute("name",newname) + ###Method for removing fence instances if a fence device + ###has been deleted from the configuration + def removeFenceInstancesForFenceDevice(self, name): + nodes = self.getNodes() + for node in nodes: + levels = node.getFenceLevels() + for level in levels: + fences = level.getChildren() + kill_list = list() + for fence in fences: + if fence.getName() == name: + kill_list.append(fence) + for victim in kill_list: + level.removeChild(victim) + def removeReferences(self, tagobj): self.__removeReferences(tagobj, self.cluster_ptr) def __removeReferences(self, tagobj, level):
@@ -911,7 +926,7 @@ level.removeChild(t) continue self.__removeReferences(tagobj, t) - + def updateReferences(self): self.__updateReferences(self.cluster_ptr) def __updateReferences(self, level):
luci/site/luci/Extensions/cluster_adapters.py +1242 -627
12 lines not on this page · raw message
luci/site/luci/Extensions/conga_constants.py +7 -0
Lines of this file are not shown. View the raw message.
luci/site/luci/Extensions/conga_ssl.py +2 -1
Lines of this file are not shown. View the raw message.
luci/site/luci/Extensions/homebase_adapters.py +592 -445
1,037 lines not on this page · raw message
luci/site/luci/Extensions/ricci_bridge.py +2 -0
Lines of this file are not shown. View the raw message.
luci/site/luci/Extensions/ricci_communicator.py +17 -1
Lines of this file are not shown. View the raw message.
luci/utils/luci_admin +28 -5
Lines of this file are not shown. View the raw message.
ricci/modules/storage/ExtendedFS.cpp +7 -3
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.