conga/luci/site/luci/Extensions cluster_adapte ...
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2006-11-27 21:05:51
Modified files:
luci/site/luci/Extensions: cluster_adapters.py ricci_bridge.py
Removed files:
luci/site/luci/Extensions: RicciReceiveError.py
UnknownClusterError.py
Log message:
cleanups
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&r1=1.167&r2=1.168
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ricci_bridge.py.diff?cvsroot=cluster&r1=1.46&r2=1.47
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/RicciReceiveError.py.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/UnknownClusterError.py.diff?cvsroot=cluster&r1=1.1&r2=NONE
luci/site/luci/Extensions/cluster_adapters.py +12 -5
@@ -1026,7 +1026,7 @@ try: pagetype = request[PAGETYPE] - except KeyError, e: + except: pagetype = '3'
@@ -1121,7 +1121,7 @@ try: url = request['URL'] - except KeyError, e: + except: url = "/luci/cluster/index_html" #The only way this method can run is if there exists
@@ -2819,8 +2819,13 @@ svclist.append(thing) #Get cluster name and node name from request - clustername = request['clustername'] - nodename = request['nodename'] + try: + clustername = request['clustername'] + nodename = request['nodename'] + except Exception, e: + luci_log.debug_verbose('getNodeInfo0: %s' % str(e)) + return {} + #extract correct node line from cluster status found = False for item in status:
@@ -2828,7 +2833,9 @@ found = True break if found == False: - raise UnknownClusterError("Fatal", "Unable to resolve node name in cluster status") + luci_log.debug_verbose('getNodeInfo1: Unable to resolve node name in cluster status') + return {} + #Now determine state of node... if item['online'] == "false": nodestate = NODE_UNKNOWN
luci/site/luci/Extensions/ricci_bridge.py +29 -56
123 lines not on this page · raw message