conga luci/cluster/index_html luci/homebase/fo ...
CVSROOT: /cvs/cluster
Module name: conga
Branch: RHEL5
Changes by: rmccabe at sourceware.org 2006-11-01 22:06:55
Modified files:
luci/cluster : index_html
luci/homebase : form-macros luci/site/luci/Extensions: homebase_adapters.py ricci_bridge.py
ricci_communicator.py
ricci/modules/storage: LVM.cpp
Log message:
ref bz# 213504
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/index_html.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/form-macros.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.44.2.2&r2=1.44.2.3
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.4&r2=1.34.2.5
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.5&r2=1.30.2.6
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.2&r2=1.9.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/storage/LVM.cpp.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.7&r2=1.7.2.1
luci/cluster/index_html +1 -1
@@ -162,7 +162,7 @@ <tal:block tal:condition="hascluster"> <tal:block tal:define="global ricci_agent python: here.getRicciAgentForCluster(request)" /> - <tal:block tal:condition="ricci_agent" + <tal:block tal:condition="python: ricci_agent" tal:define=" global modelb python:here.getmodelbuilder(ricci_agent,isVirtualized)" /> </tal:block>
luci/homebase/form-macros +5 -5
@@ -1,7 +1,7 @@ <html> <tal:comment tal:replace="nothing"> - $Id: form-macros,v 1.44.2.2 2006/10/31 19:09:25 rmccabe Exp $ + $Id: form-macros,v 1.44.2.3 2006/11/01 22:06:55 rmccabe Exp $ </tal:comment> <head>
@@ -583,8 +583,8 @@ <tfoot class="systemsTable"> <tr class="systemsTable"><td colspan="2" class="systemsTable"> - <div tal:condition="python: not 'isComplete' in sessionObj['requestResults'] or not sessionObj['requestResults']['isComplete']"> - <input type="checkbox" name="allSameCheckBox" id="allSameCheckBox" onClick="allPasswdsSame(adminform);"/> Check if storage system passwords are identical. + <div tal:condition="python: not 'isComplete' in sessionObj['requestResults'] or not sessionObj['requestResults']['isComplete'] or ('errors' in sessionObj and len(sessionObj['errors']) > 0)"> + <input type="checkbox" name="allSameCheckBox" id="allSameCheckBox" onClick="allPasswdsSame(adminform);"/> Check if cluster node passwords are identical. </div> <div class="systemsTable" tal:condition="python: 'isComplete' in sessionObj['requestResults'] and sessionObj['requestResults']['isComplete']"> </div>
@@ -606,9 +606,9 @@ tal:attributes=" id python: '__SYSTEM' + str(sysNum) + ':Addr'; name python: '__SYSTEM' + str(sysNum) + ':Addr'; - value python: node['ricci_host']; + value python: node['host']; class python: 'hbInputSys' + ('errors' in node and ' error' or ''); - disabled python: nodeAuth and 1 or 0" + disabled python: (nodeAuth and node['host'].count('.') > 0) and 1 or 0" /> </td> <td class="systemsTable">
luci/site/luci/Extensions/homebase_adapters.py +97 -62
346 lines not on this page · raw message
luci/site/luci/Extensions/ricci_bridge.py +11 -2
@@ -507,13 +507,22 @@ batch.appendChild(module) # temporary workaround for ricci bug - system_info = rc.system_name() - rc = RicciCommunicator(system_info) + system_info = rc.hostname() + try: + rc = RicciCommunicator(system_info) + if rc is None: + raise Exception, 'unknown error' + except Exception, e: + luci_log.debug_verbose('Ricci error while connecting to %s: %s' \ + % (system_info, str(e))) + return None # end workaround try: ret = rc.process_batch(batch) except Exception, e: + luci_log.debug_verbose('process_batch error for %s: %s' \ + % (system_info, str(e))) return None if not ret:
luci/site/luci/Extensions/ricci_communicator.py +17 -4
@@ -32,6 +32,10 @@ except Exception, e: raise RicciError, 'Error connecting to %s:%d: %s' \ % (self.__hostname, self.__port, str(e)) + except: + raise RicciError, 'Error connecting to %s:%d: unknown error' \ + % (self.__hostname, self.__port) + luci_log.debug_verbose('Connected to %s:%d' \ % (self.__hostname, self.__port)) try:
@@ -42,6 +46,9 @@ except Exception, e: raise RicciError, 'Error setting up SSL for connection to %s: %s' \ % (self.__hostname, str(e)) + except: + raise RicciError, 'Error setting up SSL for connection to %s' \ + % self.__hostname # receive ricci header hello = self.__receive()
@@ -168,6 +175,8 @@ % (doc.toxml(), self.__hostname)) raise RicciError, 'Error sending XML to host %s: %s' \ % (self.__hostname, str(e)) + except: + raise RicciError, 'Error sending XML to host %s' % self.__hostname # receive response doc = self.__receive()
@@ -264,8 +273,11 @@ try: pos = self.ss.write(buff) except Exception, e: - luci_log.debug('Error sending XML \"%s\" to %s' \ - % (buff, self.__hostname)) + luci_log.debug('Error sending XML \"%s\" to %s: %s' \ + % (buff, self.__hostname, str(e))) + raise RicciError, 'write error while sending XML to host %s' \ + % self.__hostname + except: raise RicciError, 'write error while sending XML to host %s' \ % self.__hostname buff = buff[pos:]
@@ -294,8 +306,9 @@ except Exception, e: luci_log.debug('Error reading data from %s: %s' \ % (self.__hostname, str(e))) - raise RicciError, 'Error reading data from host %s' \ - % self.__hostname + raise RicciError, 'Error reading data from host %s' % self.__hostname + except: + raise RicciError, 'Error reading data from host %s' % self.__hostname luci_log.debug_verbose('Received XML \"%s\" from host %s' \ % (xml_in, self.__hostname))
ricci/modules/storage/LVM.cpp +65 -6
93 lines not on this page · raw message