conga ./conga.spec.in.in luci/cluster/form-mac ...
CVSROOT: /cvs/cluster
Module name: conga
Branch: RHEL5
Changes by: rmccabe at sourceware.org 2007-08-27 18:38:00
Modified files:
. : conga.spec.in.in
luci/cluster : form-macros validate_config_multicast.js
luci/site/luci/Extensions: LuciClusterInfo.py
cluster_adapters.py
luci/site/luci/Extensions/ClusterModel: ModelBuilder.py luci/site/luci/var: Data.fs
Log message:
- Fix 253994: Cannot specify multicast address for a cluster
- Update the luci Zope DB
- Update the changelog
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/conga.spec.in.in.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.45.2.58&r2=1.45.2.59
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.90.2.30&r2=1.90.2.31
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/validate_config_multicast.js.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.3.2.1&r2=1.3.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/LuciClusterInfo.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.4.7&r2=1.1.4.8
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.38&r2=1.120.2.39
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/ModelBuilder.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.4.4&r2=1.1.4.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/var/Data.fs.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.15.2.24&r2=1.15.2.25
conga.spec.in.in +4 -2
@@ -311,9 +311,11 @@ ### changelog ### %changelog * Wed Aug 22 2007 Ryan McCabe <[email protected]> 0.10.0-6 -- Fixed bz253783 (ricci is vulnerable to a connect DoS attack) +- Fixed bz253783 - Fixed bz253914 (conga doesn't allow you to reuse nfs export and nfs client resources) -- Resolves: bz253783, bz253914 +- Fixed bz254038 (Impossible to set many valid quorum disk configurations via conga) +- Fixed bz253994 (Cannot specify multicast address for a cluster) +- Resolves: bz253783, bz253914, bz254038, bz253994 * Mon Aug 20 2007 Ryan McCabe <[email protected]> 0.10.0-5 - Fixed bz249291 (delete node task fails to do all items listed in the help document)
luci/cluster/form-macros +18 -6
@@ -1082,7 +1082,7 @@ <tr class="systemsTable"> <td class="systemsTable"> <input type="radio" name="mcast" value="False" - onClick="disable_mcast('mcast_address');" + onClick="disable_mcast('mcast_address', 'mcast_interface');" tal:attributes="checked python: clusterinfo['is_mcast'] != 'True'" /> <tal:block tal:condition="python:os_version == 'rhel4'">
@@ -1097,7 +1097,7 @@ <tr class="systemsTable"> <td class="systemsTable"> <input type="radio" name="mcast" value="True" - onClick="enable_mcast('mcast_address');" + onClick="enable_mcast('mcast_address', 'mcast_interface');" tal:attributes="checked python: clusterinfo['is_mcast'] == 'True'" />
@@ -1115,11 +1115,23 @@ Multicast address </td> <td class="systemsTable"> - <input type="text" name="mcast_address" id="mcast_address" + <input type="text" + name="mcast_address" id="mcast_address" tal:attributes=" - disabled python: clusterinfo['is_mcast'] != 'True' and '1' or '0'; - value python: clusterinfo['is_mcast'] == 'True' and clusterinfo['mcast_addr'] or '';" - /> + disabled not:clusterinfo/mcast_addr; + value clusterinfo/mcast_addr |nothing" /> + </td> + </tr> + <tr class="systemsTable"> + <td class="systemsTable"> + Multicast network interface <span tal:condition="python:os_version != 'rhel4'">(optional)</span> + </td> + <td class="systemsTable"> + <input type="text" + name="mcast_interface" id="mcast_interface" + tal:attributes=" + disabled not:clusterinfo/mcast_addr; + value clusterinfo/mcast_interface |nothing" /> </td> </tr> </tbody>
luci/cluster/validate_config_multicast.js +37 -13
71 lines not on this page · raw message
luci/site/luci/Extensions/LuciClusterInfo.py +3 -1
@@ -618,10 +618,12 @@ is_mcast = model.isMulticast() if is_mcast: clumap['mcast_addr'] = model.getMcastAddr() + clumap['mcast_interface'] = model.getMcastInterface() clumap['is_mcast'] = 'True' else: + clumap['mcast_addr'] = None + clumap['mcast_interface'] = None clumap['is_mcast'] = 'False' - clumap['mcast_addr'] = '1.2.3.4' clumap['gulm'] = False else: #-------------
luci/site/luci/Extensions/cluster_adapters.py +15 -6
@@ -974,6 +974,14 @@ errors.append('An invalid multicast selection was made') return (False, {'errors': errors}) + mcast_interface = None + if form.has_key('mcast_interface'): + mcast_interface = form['mcast_interface'].strip() + + if mcast_manual is True and form.has_key('cluster_version') and form['cluster_version'].strip() == 'rhel4' and not mcast_interface: + errors.append('No multicast interface was specified') + return (False, {'errors': errors}) + if mcast_manual is True: import socket try:
@@ -991,13 +999,14 @@ else: addr_str = None - if (addr_str is None and mcast_manual is not True) or (mcast_manual is True and addr_str == model.getMcastAddr()): - errors.append('No multicast configuration changes were made') - return (False, {'errors': errors}) - try: - model.usesMulticast = True - model.mcast_address = addr_str + if not addr_str: + if mcast_interface: + errors.append('A multicast interface was specified, but no multicast address was given') + return (False, {'errors': errors}) + model.del_cluster_multicast() + else: + model.set_cluster_multicast(addr_str, mcast_if=mcast_interface) except Exception, e: if LUCI_DEBUG_MODE is True: luci_log.debug('Error updating mcast properties: %r %s' \
luci/site/luci/Extensions/ClusterModel/ModelBuilder.py +88 -51
193 lines not on this page · raw message
Binary files /cvs/cluster/conga/luci/site/luci/var/Data.fs 2007/08/23 04:57:49 1.15.2.24 and /cvs/cluster/conga/luci/site/luci/var/Data.fs 2007/08/27 18:36:46 1.15.2.25 differ
rcsdiff: /cvs/cluster/conga/luci/site/luci/var/Data.fs: diff failed