conga ./conga.spec.in.in luci/cluster/cluster_ ...
CVSROOT: /cvs/cluster
Module name: conga
Branch: RHEL5
Changes by: rmccabe at sourceware.org 2010-09-29 17:08:26
Modified files:
. : conga.spec.in.in
luci/cluster : cluster_config-macros fence-macros
resource-form-macros validate_config_multicast.js validate_fence.js
luci/docs : Makefile
luci/plone-custom: conga.js luci/site/luci/Extensions: FenceHandler.py LuciClusterInfo.py
LuciValidation.py conga_storage_constants.py
luci/site/luci/Extensions/ClusterModel: FenceDeviceAttr.py
ModelBuilder.py
ricci : Makefile
Added files:
luci/docs : luci_admin.8
ricci/docs : Makefile ricci.8
Log message:
Sync up with RHEL56 dist cvs
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/conga.spec.in.in.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.45.2.116&r2=1.45.2.117
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/cluster_config-macros.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.3.2.7&r2=1.3.2.8
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/fence-macros.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.2.2.17&r2=1.2.2.18
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/resource-form-macros.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.21.2.17&r2=1.21.2.18
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.5&r2=1.3.2.6
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/validate_fence.js.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.13&r2=1.1.2.14
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/docs/luci_admin.8.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/docs/Makefile.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.2.2.1&r2=1.2.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/plone-custom/conga.js.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.3.2.10&r2=1.3.2.11
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.22&r2=1.4.2.23
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.19&r2=1.1.4.20
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/LuciValidation.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.6.2.16&r2=1.6.2.17
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/conga_storage_constants.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/ClusterModel/FenceDeviceAttr.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.5.2.4&r2=1.5.2.5
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.15&r2=1.1.4.16
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/Makefile.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.11.2.2&r2=1.11.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/docs/Makefile.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=NONE&r2=1.2.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/docs/ricci.8.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=NONE&r2=1.1.2.1
conga.spec.in.in +4 -0
@@ -142,6 +142,8 @@ %if "%{include_zope_and_plone}" == "yes" %{_libdir}/luci/zope %endif +%doc +%{_mandir}/man8/luci_admin.8* %pre -n luci groupmod luci >&/dev/null
@@ -287,6 +289,8 @@ %config(noreplace) %{_sysconfdir}/oddjobd.conf.d/ricci-modvirt.oddjob.conf %config(noreplace) %{_sysconfdir}/dbus-1/system.d/ricci-modvirt.systembus.conf %{_libexecdir}/ricci-modvirt +%doc +%{_mandir}/man8/ricci.8* %pre -n ricci getent group ricci >/dev/null || groupadd -r ricci
luci/cluster/cluster_config-macros +8 -1
@@ -608,7 +608,14 @@ </tal:block> </td> </tr> - + <tr class="systemsTable" + tal:condition="python:os_version != 'rhel4'"> + <td class="systemsTable"> + <input type="radio" name="mcast" value="broadcast" + onclick="disable_mcast('mcast_address', 'mcast_interface')" + tal:attributes="checked python: clusterinfo['is_bcast'] == 'True'"/>Use broadcast + </td> + </tr> <tr class="systemsTable"> <td class="systemsTable"> Multicast address
luci/cluster/fence-macros +853 -99
1,048 lines not on this page · raw message
luci/cluster/resource-form-macros +29 -1
@@ -32,7 +32,29 @@ <td tal:define="isubtree res/attrs/__independent_subtree|nothing"> <input class="vanilla" type="checkbox" name="__independent_subtree" - tal:attributes="checked python:(isubtree in ['1', 'true', 'True', True, 1]) and 'checked' or None" /> + tal:attributes="checked python:(isubtree in ['1', 1]) and 'checked' or None" /> + </td> + </tr> + <tr> + <td>This resource is non-critical</td> + <td tal:define="isubtree res/attrs/__independent_subtree|nothing"> + <input class="vanilla" type="checkbox" + name="__independent_subtree_noncritical" + tal:attributes="checked python:(isubtree in ['2', 2]) and 'checked' or None" /> + </td> + </tr> + <tr> + <td>Maximum number of restart failures before giving up<br>(applies only for non-critical resources)</td> + <td> + <input type="text" name="__max_restarts" size="3" + tal:attributes="value res/attrs/__max_restarts|nothing" /> + </td> + </tr> + <tr> + <td>Restart expire time<br>(applies only for non-critical resources)</td> + <td> + <input type="text" name="__restart_expire_time" size="3" + tal:attributes="value res/attrs/__restart_expire_time|nothing" /> </td> </tr> </table>
@@ -478,6 +500,12 @@ <option name="ext2" value="ext2" tal:content="string: ext2" tal:attributes="selected python: fstype == 'ext2' and 'selected'" /> + <option name="ext4" value="ext4" + tal:content="string: ext4" + tal:attributes="selected python: fstype == 'ext4' and 'selected'" /> + <option name="xfs" value="xfs" + tal:content="string: xfs" + tal:attributes="selected python: fstype == 'xfs' and 'selected'" /> </select> </td> </tr>
luci/cluster/validate_config_multicast.js +2 -0
@@ -56,6 +56,8 @@ mcast = 0; else if (form.mcast.length > 1 && form.mcast[1].checked) mcast = 1; + else if (form.mcast[2].checked) + mcast = null; else { errors.push('An invalid value was given while specifying how the multicast address should be chosen.'); set_form_err(form.mcast[0]);
luci/cluster/validate_fence.js +7 -0
@@ -22,6 +22,9 @@ fence_inst_validator['xvm'] = [ 'domain' ]; fence_inst_validator['lpar'] = [ 'partition', 'managed' ]; fence_inst_validator['vmware'] = [ 'port' ]; +fence_inst_validator['cisco_mds'] = [ 'port' ]; +fence_inst_validator['ifmib'] = [ 'port' ]; +fence_inst_validator['ucs'] = [ 'port' ]; var fence_validator = []; fence_validator['apc'] = [ 'ipaddr', 'login', 'passwd', 'passwd_script' ];
@@ -32,6 +35,7 @@ fence_validator['egenera'] = [ 'cserver' ]; fence_validator['gnbd'] = [ 'servers' ]; fence_validator['ilo'] = [ 'hostname', 'login', 'passwd', 'passwd_script', 'secure' ]; +fence_validator['ilo_mp'] = [ 'hostname', 'login', 'passwd', 'passwd_script', 'secure', 'ipport', 'secure', 'cmd_prompt' ]; fence_validator['ipmilan'] = [ 'ipaddr', 'login', 'passwd', 'passwd_script', 'lanplus', 'auth' ]; fence_validator['manual'] = []; fence_validator['mcdata'] = [ 'ipaddr', 'login', 'passwd', 'passwd_script' ];
@@ -44,6 +48,9 @@ fence_validator['vixel'] = [ 'ipaddr', 'passwd', 'passwd_script' ]; fence_validator['wti'] = [ 'ipaddr', 'passwd', 'passwd_script' ]; fence_validator['lpar'] = [ 'ipaddr', 'login', 'passwd', 'passwd_script' ]; +fence_validator['cisco_mds'] = [ 'ipaddr', 'login', 'passwd', 'passwd_script' ]; +fence_validator['ifmib'] = [ 'ipaddr', 'login', 'passwd', 'passwd_script' ]; +fence_validator['ucs'] = [ 'ipaddr', 'login', 'passwd', 'passwd_script' ]; fence_validator['vmware'] = [ 'ipaddr', 'login', 'passwd', 'passwd_script', 'vmlogin' ]; fence_validator['xvm'] = [];
luci/docs/Makefile +4 -0
@@ -8,6 +8,8 @@ ## ################################################################################ +include ../make/defines.mk + LUCI_HOST=luci LUCI_USER=admin LUCI_PASS=changeme
@@ -20,6 +22,8 @@ docs: install: + install -d ${mandir}/man8 + install luci_admin.8 ${mandir}/man8 clean:
luci/plone-custom/conga.js +1 -1
@@ -223,7 +223,7 @@ return (null); } - if (!isNaN(parseInt(i[i.length - 1], 10))) { + if (!isNaN(Number(i[i.length - 1]))) { return ('Invalid IP address.'); }
luci/site/luci/Extensions/FenceHandler.py +395 -0
431 lines not on this page · raw message
luci/site/luci/Extensions/LuciClusterInfo.py +4 -0
@@ -682,6 +682,10 @@ clumap['pfd'] = pfd clumap['skip_undefined'] = fdp.getSkipUndefined() + if model.get_cluster_broadcast() is True: + clumap['is_bcast'] = 'True' + else: + clumap['is_bcast'] = 'False' #------------- #if multicast multicast_url = '%stab=%s' % (prop_baseurl, PROP_MCAST_TAB)
luci/site/luci/Extensions/LuciValidation.py +30 -2
@@ -390,6 +390,29 @@ resObj.addAttribute('__independent_subtree', '1') else: resObj.removeAttribute('__independent_subtree') + + if dummy_form.has_key('__independent_subtree_noncritical'): + resObj.addAttribute('__independent_subtree', '2') + + if dummy_form.has_key('__max_restarts'): + try: + resObj.addAttribute('__max_restarts', str(int(dummy_form['__max_restarts']))) + except: + resObj.removeAttribute('__max_restarts') + else: + resObj.removeAttribute('__max_restarts') + + if dummy_form.has_key('__restart_expire_time'): + try: + resObj.addAttribute('__restart_expire_time', str(int(dummy_form['__restart_expire_time']))) + except: + resObj.removeAttribute('__restart_expire_time') + else: + resObj.removeAttribute('__restart_expire_time') + else: + resObj.removeAttribute('__restart_expire_time') + resObj.removeAttribute('__max_restarts') + form_hash[form_id]['obj'] = resObj if len(errors) > 0:
@@ -663,16 +686,21 @@ errors = list() try: mcast_val = form['mcast'].strip().lower() - if mcast_val != 'true' and mcast_val != 'false': + if mcast_val not in ('true', 'false', 'broadcast'): raise KeyError, mcast_val if mcast_val == 'true': mcast_manual = True - else: + elif mcast_val == 'false': mcast_manual = False + elif mcast_val == 'broadcast': + model.del_cluster_multicast() + model.set_cluster_broadcast() + return (True, {}) except KeyError, e: errors.append('An invalid multicast selection was made') return (False, {'errors': errors}) + model.del_cluster_broadcast() mcast_interface = None if form.has_key('mcast_interface'): mcast_interface = form['mcast_interface'].strip()
luci/site/luci/Extensions/conga_storage_constants.py +1 -1
@@ -80,7 +80,7 @@ 'fstab': 'List in /etc/fstab', 'fstabpoint': '/etc/fstab Mountpoint', 'gfs_fsname': 'Unique GFS Name', - 'has_journal': 'Journaling Enabled - ext3', + 'has_journal': 'Journaling Enabled - ext3, ext4', 'journals_num': 'Number of Journals', 'journal_size': 'Journal Size', 'label': 'Label',
luci/site/luci/Extensions/ClusterModel/FenceDeviceAttr.py +19 -0
@@ -25,12 +25,16 @@ 'fence_xvm': 'Virtual Machine Fencing', 'fence_scsi': 'SCSI Reservation', 'fence_ilo': 'HP iLO Device', + 'fence_ilo_mp': 'HP iLO MP', 'fence_ipmilan': 'IPMI Lan', 'fence_drac': 'Dell DRAC', 'fence_rsa': 'IBM RSA II Device', 'fence_rps10': 'RPS10 Serial Switch', 'fence_lpar': 'LPAR Fencing', 'fence_vmware': 'VMware Fencing', + 'fence_cisco_mds': 'Cisco MDS', + 'fence_ucs': 'Cisco UCS', + 'fence_ifmib': 'IF MIB', 'fence_manual': 'Manual Fencing' }
@@ -49,7 +53,11 @@ 'fence_scsi': True, 'fence_lpar': True, 'fence_vmware': True, + 'fence_cisco_mds': True, + 'fence_ucs': True, + 'fence_ifmib': True, 'fence_ilo': False, + 'fence_ilo_mp': False, 'fence_ipmilan': False, 'fence_drac': False, 'fence_rsa': False,
@@ -92,6 +100,9 @@ 'fence_scsi': ( 'node' ), 'fence_lpar': ( 'partition' ), 'fence_vmware': ( 'port' ), + 'fence_cisco_mds': ( 'port' ), + 'fence_ucs': ( 'port' ), + 'fence_ifmib': ( 'port' ), 'fence_ilo': ( ), 'fence_ipmilan': ( ), 'fence_drac': ( ),
@@ -127,10 +138,18 @@ ( 'name', 'ipaddr', 'login', 'passwd' ), 'fence_vmware': ( 'name', 'ipaddr', 'login', 'passwd', 'vmlogin', 'vmpasswd' ), + 'fence_cisco_mds': + ( 'name', 'ipaddr', 'login', 'passwd' ), + 'fence_ucs': + ( 'name', 'ipaddr', 'login', 'passwd' ), + 'fence_ifmib': + ( 'name', 'ipaddr', 'login', 'passwd' ), 'fence_scsi': ( 'name' ), 'fence_ilo': ( 'name', 'hostname', 'login', 'passwd' ), + 'fence_ilo_mp': + ( 'name', 'ipaddr', 'login', 'passwd', 'ipport', 'secure', 'cmd_prompt' ), 'fence_ipmilan': ( 'name', 'ipaddr', 'login', 'passwd', 'lanplus', 'auth' ), 'fence_drac':
luci/site/luci/Extensions/ClusterModel/ModelBuilder.py +19 -0
@@ -1020,6 +1020,25 @@ node.removeChild(node_child) break + def set_cluster_broadcast(self): + if self.del_cluster_multicast() is False: + return False + broadcast = self.CMAN_ptr.addAttribute('broadcast', 'yes') + + def del_cluster_broadcast(self): + if self.CMAN_ptr is None: + return False + self.CMAN_ptr.removeAttribute('broadcast') + self.isModified = True + + def get_cluster_broadcast(self): + if self.CMAN_ptr is None: + return False + broadcast = self.CMAN_ptr.getAttribute('broadcast') + if broadcast and broadcast.lower() in ('1', 'true', 'yes'): + return True + return False + def del_cluster_multicast(self): if self.CMAN_ptr is None: return False
ricci/Makefile +1 -0
@@ -33,6 +33,7 @@ ${MAKE} -C modules install ${MAKE} -C init.d install ${MAKE} -C pam.d install + ${MAKE} -C docs install ${INSTALL_DIR} ${docdir}/ricci-${VERSION}/ ${INSTALL_FILE} COPYING ${docdir}/ricci-${VERSION}/
/cvs/cluster/conga/ricci/docs/Makefile,v --> standard output revision 1.2.2.1
- renamed from ricci/docs/Makefile +8 -0
@@ -0,0 +1,8 @@ +include ../make/defines.mk + +all: + @true + +install: + install -d ${mandir}/man8 + install ricci.8 ${mandir}/man8