commit cb7a1221e65d31dce10ef31276d97434c8241dc7923bcda01c16920875cb3054 Author: Adrian Schröter Date: Wed Aug 28 11:02:28 2024 +0200 Sync from SUSE:SLFO:Main ClusterTools2 revision df813cb15fc4d758576b24b8d1a42b68 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/ClusterTools2-3.1.3.tgz b/ClusterTools2-3.1.3.tgz new file mode 100644 index 0000000..cd7fbb7 --- /dev/null +++ b/ClusterTools2-3.1.3.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c471d58cb9948ccbf134f717a548018abc00d9ca3913380580a200007285de5a +size 104111 diff --git a/ClusterTools2.changes b/ClusterTools2.changes new file mode 100644 index 0000000..7663adc --- /dev/null +++ b/ClusterTools2.changes @@ -0,0 +1,350 @@ +------------------------------------------------------------------- +Thu Aug 8 10:23:44 UTC 2024 - abriel@suse.com + +- remove dependency to perl-TermReadLine-Gnu for SLE16 + +------------------------------------------------------------------- +Wed Feb 21 10:42:28 UTC 2024 - abriel@suse.com + +- change version from 3.1.2 to 3.1.3 + * adapt 'cs_show_scores' to support newer versions of crmsh + (bsc#1219806) + * change SBP URL in man page ha_related_sap_notes.7 to point to + the new location + (bsc#1194285) + * additional man page updates + * new script /usr/sbin/cs_list_sap_instances + +------------------------------------------------------------------- +Mon Mar 28 08:32:25 UTC 2022 - abriel@suse.com + +- change version from 3.1.1 to 3.1.2 +- As newer versions of pacemaker display the output from command + 'crmadmin --quiet' on stdout instead on stderr, the command + 'cs_clusterstate' was enhanced to adapt these change. + (bsc#1188652) +- Adapt 'cs_show_scores' to support newer versions of pacemaker + and crmsh + (bsc#1188456) +- man page updates + +------------------------------------------------------------------- +Fri Jul 16 11:22:34 UTC 2021 - abriel@suse.com + +- change version from 3.1.0 to 3.1.1 +- As some of the supportconfig plugins of ClusterTools2 takes very + log time to process, we will disable these plugins by default in + /etc/ClusterTools2/supportconfig_plugins. + That means that after an initial installation of ClusterTools2 + NO supportconfig plugin will be active. To change this behaviour + manually uncomment the entres of interesst in the file + /etc/ClusterTools2/supportconfig_plugins. + During a package update nothing will change. If an active plugin + is disturbing the creation of a supportconfig archive, please + comment out the related entry manually in the file + /etc/ClusterTools2/supportconfig_plugins. + Please refer to manual page supportconfig_plugins(5) for further + details. + (bsc#1186119) +- Add file samples/00_bootstrap_sle15.crm.tmpl to support SLE15 + (bsc#1166943) + +------------------------------------------------------------------- +Mon Dec 16 10:58:37 UTC 2019 - abriel@suse.com + +- change version from 3.0.1 to 3.1.0 +- Update package to the latest upstream version + + add missing man pages, config files and scripts: + add new man page man8/cs_show_hana_info.8, man8/cs_dmesg.8, + man8/cs_show_wwpn.8 , man8/cs_show_hana_autofailover_patterns.8, + man8/cs_show_cluster_transition.8 + + add new kernel modules (ibmvnic.ko, ibmvfc.ko, lin_tape.ko, + deadman.ko) to search for + + add new config files etc/ClusterTools2/cs_show_memory, + etc/ClusterTools2/cs_show_cluster_transition + + add new scripts sbin/cs_show_hana_info, sbin/cs_show_wwpn, + sbin/cs_show_hana_autofailover_patterns, sbin/cs_dmesg, + sbin/cs_show_cluster_transition, sbin/cs_show_xfs_patterns, + + add new examples for helper scripts (samples/pacemakill) + + enhance the scripts: + add check for multi-queue scheduler + + change initrd check to support new SLES12/15 format + + adapt the changed sar filename syntax + + add 'systemctl get-default' for SLES12/15 instead of using + /etc/inittab + + add checks for additional SAP Notes 2655238, 2205917 and 2686011 + + remove crontab in favour for systemd timer + + use /etc/os-release instead of old /etc/SuSE-release + + add check for powerVM + + adapt the corosync checks to the new values in the best practice + documentation + + add additional rpms to look for (e.g. saptune, rear, glibc2, + kernel-default, kernel-ppc64=4.12.14 ...) + + add additional files (e.g. /boot/grub2/grub.cfg, + /var/log/mcelog, memory.txt (from supportconfig), + /etc/systemd/system.conf, /usr/sap/sapservices, /etc/sudoers ...) + to search for or to search in + + add additional services to check (e.g. sbd.service, + tuned.service ...) + + add additional error and info pattern to search for in log files + (e.g. "systemd.*start-limit" and similar search strings) + + enhance the list of cluster related SUSE TIDs + 7022678, 7023149, 7022921, 7021158, 7022255, 7022984, 7023127, + 7021376, 7018571, 7021211, 7018408, 7023236, 7022001, 7019001, + 7017985, 7023007, 7016640, 7018194, 7022644, 7017617, 7018594, + 7022764, 7020256, 7022316, 7022840, 7021065, 7022467, 7022565, + 7022152, 7018352, 7017651, 7023166, 7010249, 3044267, 7004659, + 7018181, 7023324, 7016918, 7023526, 7022310, 7022681, 7023021, + 7023732, 7018233, 7018329, 7018361, 7011860, 7023344, 7021064, + 7022268, 7018744, 7023714, 7023713, 3684654, 3054866, 7022975, + 7022293, 7017750, 7023805, 7021182 + (bsc#1097134, jsc#SLE-9199) + +- cleanup the package and the man pages, remove unavailable + references, adjust Copyright string, adjust feedback address +- script refinement and first steps for an adaption to SLE15 code + stream + using 'shellcheck' to find and correct syntax problems, + spelling errors and other problems + +------------------------------------------------------------------- +Thu Feb 21 15:11:30 UTC 2019 - kstreitova@suse.com + +- The /etc/cron.d/ClusterTools2 does not contain any active cronjob + so we can move it to /usr/share/ClusterTools2/samples/ and + remove "Requires: cron" as it's no longer needed. + [bsc#1115405] [fate#323635] +- Remove the Vendor line that is now forbidden + +------------------------------------------------------------------- +Thu Mar 15 15:53:18 UTC 2018 - imanyugin@suse.com + +- added /etc/ClusterTools2/cs_make_sbd_devices, bsc#1084925 +- version 3.0.1 + +------------------------------------------------------------------- +Wed Sep 7 13:05:52 UTC 2016 - imanyugin@suse.com + +- Obsolete the -doc subpackage, bsc#993014 + +------------------------------------------------------------------- +Thu Jun 30 13:17:11 UTC 2016 - lars.pinne@suse.com + +- version 3.0.0, adaptation of the scripts for the SLE12 platform +- fate#319611 + +------------------------------------------------------------------- +Thu Sep 06 00:00:00 UTC 2013 - lars.pinne@suse.com + +- added cs_show_wwpn, cs_check_lsbinit first alpha + +------------------------------------------------------------------- +Mon May 06 00:00:00 UTC 2013 - fabian.herschel@suse.com + +- upstream fixes for sap simpelstack to be more flexible + +------------------------------------------------------------------- +Fri Apr 20 00:00:00 UTC 2012 - fabian.herschel@suse.com + +- tools, manpages and config files now renamed for ship with SLES for SAP Applications + +------------------------------------------------------------------- +Wed Apr 04 00:00:00 UTC 2012 - fabian.herschel@suse.com + +- first changes to get package technical preview ready + +------------------------------------------------------------------- +Fri Mar 23 00:00:00 UTC 2012 - lars.pinne@suse.com + +- grep_supportconfig for Oracle and s390x + +------------------------------------------------------------------- +Fri Feb 10 00:00:00 UTC 2012 - lars.pinne@suse.com + +- eDir back again + +------------------------------------------------------------------- +Tue Nov 15 00:00:00 UTC 2011 - lars.pinne@suse.com + +- more grep patterns, minor fixes + +------------------------------------------------------------------- +Fri Nov 11 00:00:00 UTC 2011 - fabian.herschel@suse.com + +- 2.2.11 st martin package version (11.11.2011) + +------------------------------------------------------------------- +Wed Nov 02 00:00:00 UTC 2011 - fabian.herschel@suse.com + +- 2.2.10 package version + +------------------------------------------------------------------- +Fri Oct 21 00:00:00 UTC 2011 - lars.pinne@novell.com + +- added lsoflog, merged separate crontab and logrotate to one ClusterTools2, fixed grep_supportconfig + +------------------------------------------------------------------- +Thu Oct 05 00:00:00 UTC 2011 - lars.pinne@novell.com + +- added grep_cluster_transition + +------------------------------------------------------------------- +Thu Sep 29 00:00:00 UTC 2011 - lars.pinne@novell.com + +- moved add_softdog_to_initrd to add_watchdog_to_initrd, added grep_cluster_patterns, various fixes and updates + +------------------------------------------------------------------- +Thu Sep 22 00:00:00 UTC 2011 - lars.pinne@novell.com + +- added xmstat, various fixes and updates + +------------------------------------------------------------------- +Tue Aug 30 00:00:00 UTC 2011 - lars.pinne@novell.com + +- added wow on-fail-block, added supportconfig plugins + +------------------------------------------------------------------- +Fri Aug 26 00:00:00 UTC 2011 - fabian.herschel@suse.com + +- 2.2.9 package version + +------------------------------------------------------------------- +Tue Jul 18 00:00:00 UTC 2011 - lars.pinne@novell.com + +- added man page, fixed config scripts, 2nd ring in make_corosync_conf, set config (noreplace) + +------------------------------------------------------------------- +Wed Jul 06 00:00:00 UTC 2011 - fabian.herschel@suse.com + +- 2.2.8 fixed node status (CSN) + +------------------------------------------------------------------- +Tue Jul 05 00:00:00 UTC 2011 - fabian.herschel@suse.com + +- 2.2.7 fixed command line option +- fixed missing groups in resource list + +------------------------------------------------------------------- +Tue Jul 05 00:00:00 UTC 2011 - fabian.herschel@suse.com + +- 2.2.6 new package version for opensuse.org +- You could (only recommended for test scenarious) switchoff STONITH by setting STONITH_ENABLED=false in your WOW file +- corrected error in samples (uninitialized SAPsid) + +------------------------------------------------------------------- +Tue Jun 14 00:00:00 UTC 2011 - fabian.herschel@suse.com + +- 2.2.5-1 added corrections/improvements from lars.pinne@novell.com +- changed menueng2, wow and ClusterService to display better help (program name now matches the use case) + +------------------------------------------------------------------- +Sat May 14 00:00:00 UTC 2011 - fabian.herschel@suse.com + +- 2.2.4-1 added fhcrmedit to have a batch-able editor - fhcrmedit will be renamed in the future and is only a draft for internal tests + +------------------------------------------------------------------- +Fri May 13 00:00:00 UTC 2011 - fabian.herschel@suse.com + +- 2.2.3-1 simple stack now has now the option to skip the SFEX device resource (just let SFEX_DEVICE be empty) + +------------------------------------------------------------------- +Tue May 10 00:00:00 UTC 2011 - lars.pinne@novell.com + +- 2.2.2-1 added sum and error patterns, fixed minor bugs, added some man pages, updated ClusterService + +------------------------------------------------------------------- +Tue Apr 29 00:00:00 UTC 2011 - fabian.herschel@novell.com + +- 2.2.1-1 fixed package spec to get it build (added precheck_for_sap) + +------------------------------------------------------------------- +Tue Apr 29 00:00:00 UTC 2011 - lars.pinne@novell.com + +- 2.2.0-1 added psauxlog + +------------------------------------------------------------------- +Tue Apr 12 00:00:00 UTC 2011 - fabian.herschel@novell.com + +- 2.2.0-1 now supports command mode (--cmd CMD options) + +------------------------------------------------------------------- +Thu Apr 12 00:00:00 UTC 2011 - lars.pinne@novell.com + +- 2.1.10-1 update and cleanup +- sum_base_config + +------------------------------------------------------------------- +Mon Mar 07 00:00:00 UTC 2011 - lars.pinne@novell.com + +- 2.1.9-1 update and cleanup +- grep_error_patterns + +------------------------------------------------------------------- +Mon Mar 07 00:00:00 UTC 2011 - fabian.herschel@novell.com + +- 2.1.8-1 prepare_wowfile (lp) +- RAID1 devices resources could be named more flexible (fh) + +------------------------------------------------------------------- +Tue Feb 22 00:00:00 UTC 2011 - lars.pinne@novell.com + +- 2.1.7-1 Updated files +- Manpages: sbd.8, sleha_cleanup.8 +- grep-error-patterns +- sleha_cleanup +- whbsaprecheck + +------------------------------------------------------------------- +Tue Feb 01 00:00:00 UTC 2011 - fabian.herschel@novell.com + +- 2.1.6-1 added sleha_cleanup and grep-error-patterns from Lars Pinne + +------------------------------------------------------------------- +Mon Nov 15 00:00:00 UTC 2010 - fabian.herschel@novell.com + +- 2.1.5-1 added new man pages from Lars + +------------------------------------------------------------------- +Mon Oct 25 00:00:00 UTC 2010 - fabian.herschel@novell.com + +- 2.1.4-1 added new use case for fs only stack + +------------------------------------------------------------------- +Thu Oct 14 00:00:00 UTC 2010 - fabian.herschel@novell.com + +- 2.1.3-1 menueng2 now supports multiple menues and additional control commands +- use case specific sample CS_SAPNA0 + +------------------------------------------------------------------- +Tue Oct 12 00:00:00 UTC 2010 - fabian.herschel@novell.com + +- 2.1.2-1 name scheme for wow and submenus + +------------------------------------------------------------------- +Thu Oct 07 00:00:00 UTC 2010 - fabian.herschel@novell.com + +- 2.1.0-1 reintegrated wow to ClusterTools2 + +------------------------------------------------------------------- +Wed Oct 06 00:00:00 UTC 2010 - fabian.herschel@novell.com + +- 2.0.0-1 initial package diff --git a/ClusterTools2.spec b/ClusterTools2.spec new file mode 100644 index 0000000..95ef6a1 --- /dev/null +++ b/ClusterTools2.spec @@ -0,0 +1,113 @@ +# +# spec file for package ClusterTools2 +# +# Copyright (c) 2011-2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019-2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + +Name: ClusterTools2 +Summary: Tools for cluster management +License: GPL-2.0-or-later +Group: Productivity/Clustering/HA +Version: 3.1.3 +Release: 0 +Source: %{name}-%{version}.tgz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +Requires: systemd +Requires: logrotate +Requires: pacemaker > 1.1.1 +%if 0%{?suse_version} < 1600 +Requires: perl-TermReadLine-Gnu >= 1.16 +%endif +Obsoletes: ClusterTools2-doc < %{version} +Provides: ClusterTools2-doc = %{version} +Url: http://www.suse.com + + +%description +ClusterTools2 provides tools for setting up and managing a corosync/ +pacemaker cluster. +There are some other commandline tools to make life easier. +Starting with version 3.0.0 is support for SUSE Linux Enterprise Server 12. + +%prep +%setup -c -T -a 0 + +%build +( cd man5; for mp in *5; do gzip $mp; done ) +( cd man7; for mp in *7; do gzip $mp; done ) +( cd man8; for mp in *8; do gzip $mp; done ) +mkdir -p etc/ClusterTools2 + +%clean +test "$RPM_BUILD_ROOT" != "/" && rm -rf $RPM_BUILD_ROOT + +%install +mkdir -p %{buildroot}/etc/ClusterTools2 +mkdir -p %{buildroot}/etc/logrotate.d +mkdir -p %{buildroot}/usr/lib/ClusterTools2 +mkdir -p %{buildroot}/usr/lib/ClusterTools2/scripts +mkdir -p %{buildroot}/usr/lib/ClusterTools2/supportconfig/plugins +mkdir -p %{buildroot}/usr/sbin +mkdir -p %{buildroot}/usr/share/ClusterTools2 +mkdir -p %{buildroot}/usr/share/ClusterTools2/samples +mkdir -p %{buildroot}/usr/share/man/man5 +mkdir -p %{buildroot}/usr/share/man/man7 +mkdir -p %{buildroot}/usr/share/man/man8 +mkdir -p %{buildroot}/usr/lib/ClusterTools2/supportconfig/plugins +mkdir -p %{buildroot}/usr/lib/systemd/system + +# +# "binaries" +# +cp -va sbin/* %{buildroot}/usr/sbin/ +cp -va system/* %{buildroot}/usr/lib/systemd/system +cp -va plugins/* %{buildroot}/usr/lib/ClusterTools2/supportconfig/plugins/ +# +# etc +# +cp -va etc/ClusterTools2/* %{buildroot}/etc/ClusterTools2/ +cp -va etc/logrotate.d/* %{buildroot}/etc/logrotate.d/ +# +# share +# +cp -a share/* %{buildroot}/usr/share/ClusterTools2/ +chmod 0755 samples/*.pl +cp -a samples/* %{buildroot}/usr/share/ClusterTools2/samples/ +# +# man pages and license +# +cp -a man5/*.gz %{buildroot}/usr/share/man/man5/ +cp -a man7/*.gz %{buildroot}/usr/share/man/man7/ +cp -a man8/*.gz %{buildroot}/usr/share/man/man8/ + +%post +mkdir -p /usr/lib/systemd/system +mkdir -p /usr/lib/supportconfig/plugins +cp /usr/lib/ClusterTools2/supportconfig/plugins/* /usr/lib/supportconfig/plugins + +%files +%defattr(-,root,root) +/usr/sbin/* +/usr/share/ClusterTools2 +/usr/lib/ClusterTools2 +/usr/lib/systemd/system +%config(noreplace) /etc/ClusterTools2 +%config(noreplace) /etc/logrotate.d/* +%doc /usr/share/man/man5/*.gz +%doc /usr/share/man/man7/*.gz +%doc /usr/share/man/man8/*.gz + +%changelog