From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmccabe@sourceware.org Date: 14 Dec 2006 23:14:55 -0000 Subject: [Cluster-devel] conga/luci cluster/form-macros site/luci/Exten ... Message-ID: <20061214231455.9523.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: conga Changes by: rmccabe at sourceware.org 2006-12-14 23:14:55 Modified files: luci/cluster : form-macros luci/site/luci/Extensions: cluster_adapters.py Log message: - fencing updates - fix a typo in multicast address configuration Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.131&r2=1.132 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&r1=1.183&r2=1.184 --- conga/luci/cluster/form-macros 2006/12/14 18:22:53 1.131 +++ conga/luci/cluster/form-macros 2006/12/14 23:14:54 1.132 @@ -1156,44 +1156,55 @@ Name + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/name | nothing" /> IP Address + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/ipaddr | nothing" /> Login + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/login | nothing" /> Password + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/passwd | nothing" /> +
- +
+ + @@ -1212,44 +1223,55 @@ Name + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/name | nothing" /> IP Address + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fendev/ipaddr | nothing" /> Login + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/login | nothing" /> Password + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/passwd | nothing" /> +
- +
+ + @@ -1268,37 +1290,46 @@ Name + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/name | nothing" /> IP Address + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/ipaddr | nothing" /> Password + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/passwd | nothing" /> +
- +
+ + @@ -1342,11 +1373,13 @@ + + @@ -1388,11 +1421,13 @@ tal:attributes="value cur_fencedev/passwd | nothing" /> + + @@ -1435,11 +1470,13 @@ + + @@ -1457,44 +1494,55 @@ Name + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/name | nothing" /> IP Address + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/ipaddr | nothing" /> Login + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/login | nothing" /> Password + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/passwd | nothing" /> +
- +
+ + @@ -1513,7 +1561,9 @@ Name + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/name | nothing" /> @@ -1524,30 +1574,37 @@ Login + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/login | nothing" /> Password + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/passwd | nothing" /> +
- +
+ + @@ -1566,37 +1623,46 @@ Name + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/name | nothing" /> IP Address + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/ipaddr | nothing" /> Password + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/passwd | nothing" /> +
- +
+ + @@ -1615,30 +1681,37 @@ Name + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/name | nothing" /> Servers (whitespace separated list) + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/servers | nothing" /> +
- +
+ + @@ -1657,37 +1730,46 @@ Name + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/name | nothing" /> CServer + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/cserver | nothing" /> ESH Path (Optional) + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/login | string:/opt/pan-mgr/bin/esh" /> +
- +
+ + @@ -1731,11 +1813,13 @@ + + @@ -1753,44 +1837,55 @@ Name + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/name | nothing" /> IP Address + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/ipaddr | nothing" /> Login + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/login | nothing" /> Password + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/passwd | nothing" /> +
- +
+ + @@ -1827,11 +1922,13 @@ + + @@ -1849,23 +1946,28 @@ Name + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/name | nothing" /> +
- +
+ + @@ -1884,15 +1986,19 @@ Name + tal:attributes=" + disabled cur_fencedev/isShared | nothing; + value cur_fencedev/name | nothing" /> + + @@ -1940,11 +2046,13 @@ + + @@ -2508,6 +2616,7 @@
--- conga/luci/site/luci/Extensions/cluster_adapters.py 2006/12/14 21:37:15 1.183 +++ conga/luci/site/luci/Extensions/cluster_adapters.py 2006/12/14 23:14:54 1.184 @@ -726,14 +726,16 @@ if mcast_manual == True: try: - addr_str = form['mcast_addr'].strip() + addr_str = form['mcast_address'].strip() socket.inet_pton(socket.AF_INET, addr_str) except KeyError, e: + addr_str = None errors.append('No multicast address was given') except socket.error, e: try: socket.inet_pton(socket.AF_INET6, addr_str) except socket.error, e: + addr_str = None errors.append('An invalid multicast address was given: %s') else: addr_str = None @@ -745,6 +747,7 @@ try: model.usesMulticast = True model.mcast_address = addr_str + model.isModified = True except Exception, e: luci_log.debug('Error updating mcast properties: %s' % str(e)) errors.append('Unable to update cluster multicast properties') @@ -3045,7 +3048,7 @@ if delete_cluster: try: - set_node_flag(self, clustername, rc.hostname(), str(batch_number), NODE_DELETE, "Deleting cluster \"%s\": Deleting node \'%s\'" \ + set_node_flag(self, clustername, rc.hostname(), str(batch_number), CLUSTER_DELETE, "Deleting cluster \"%s\": Deleting node \'%s\'" \ % (clustername, nodename_resolved)) except Exception, e: luci_log.debug_verbose('ND5a: failed to set flags: %s' % str(e))