22 Commits

Author SHA256 Message Date
c389c6afe4 Accepting request 1324163 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/1324163
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/crmsh?expand=0&rev=391
2025-12-22 21:51:54 +00:00
Xin Liang
a8dd98fdd1 New version of crmsh released
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/crmsh?expand=0&rev=900
2025-12-22 08:43:02 +00:00
52762c352c Accepting request 1321940 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/1321940
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/crmsh?expand=0&rev=390
2025-12-10 14:33:59 +00:00
Xin Liang
366a3cefd2 New version of crmsh released
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/crmsh?expand=0&rev=898
2025-12-10 10:55:46 +00:00
07881ce576 Accepting request 1320435 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/1320435
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/crmsh?expand=0&rev=389
2025-11-28 15:53:43 +00:00
Xin Liang
953a187b73 New version of crmsh released
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/crmsh?expand=0&rev=896
2025-11-28 10:15:52 +00:00
d94b078bba Accepting request 1317014 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/1317014
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/crmsh?expand=0&rev=388
2025-11-11 18:20:52 +00:00
Nicholas Yang
977d07ca30 New version of crmsh released
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/crmsh?expand=0&rev=894
2025-11-11 08:01:17 +00:00
8ff896cfbd Accepting request 1314300 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/1314300
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/crmsh?expand=0&rev=387
2025-10-29 20:07:59 +00:00
Xin Liang
a57d131b76 New version of crmsh released
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/crmsh?expand=0&rev=892
2025-10-29 09:56:31 +00:00
30e44743ba Accepting request 1310518 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/1310518
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/crmsh?expand=0&rev=386
2025-10-10 15:11:31 +00:00
Nicholas Yang
8532b74328 New version of crmsh released
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/crmsh?expand=0&rev=890
2025-10-10 09:41:58 +00:00
4fbd1a0459 Accepting request 1305065 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/1305065
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/crmsh?expand=0&rev=385
2025-09-16 16:18:41 +00:00
Xin Liang
8d524a6fc2 New version of crmsh released
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/crmsh?expand=0&rev=888
2025-09-16 05:33:50 +00:00
a064ca2be8 Accepting request 1302675 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/1302675
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/crmsh?expand=0&rev=384
2025-09-04 15:59:33 +00:00
Xin Liang
029c89f595 Accepting request 1302674 from network:ha-clustering:Unstable
New version of crmsh released

OBS-URL: https://build.opensuse.org/request/show/1302674
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/crmsh?expand=0&rev=886
2025-09-04 07:04:31 +00:00
01a460f8f3 Accepting request 1301630 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/1301630
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/crmsh?expand=0&rev=383
2025-08-28 15:18:29 +00:00
Xin Liang
4dc029bbc1 Accepting request 1301629 from network:ha-clustering:Unstable
New version of crmsh released

OBS-URL: https://build.opensuse.org/request/show/1301629
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/crmsh?expand=0&rev=884
2025-08-28 04:02:09 +00:00
ae2305baab Accepting request 1301216 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/1301216
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/crmsh?expand=0&rev=382
2025-08-25 18:39:01 +00:00
Xin Liang
4640ef6b43 New version of crmsh released
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/crmsh?expand=0&rev=882
2025-08-25 07:56:47 +00:00
09b4c3e18a Accepting request 1299487 from network:ha-clustering:Factory
OBS-URL: https://build.opensuse.org/request/show/1299487
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/crmsh?expand=0&rev=381
2025-08-15 19:52:28 +00:00
Xin Liang
637da16948 New version of crmsh released
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/crmsh?expand=0&rev=880
2025-08-15 03:31:54 +00:00
5 changed files with 398 additions and 49 deletions

View File

@@ -9,6 +9,6 @@
</service>
<service name="tar_scm">
<param name="url">https://github.com/ClusterLabs/crmsh.git</param>
<param name="changesrevision">d3091c0cdbf52ac3e322ffaf40177122c1156960</param>
<param name="changesrevision">e93cf92d1a42f1a4566938a716fd47359abb72c8</param>
</service>
</servicedata>

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1502cc39f6276fedd07a9440666694f7fd55c5a2ffbb796730a382bd6771542f
size 1781386

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4ea477dccbe651785ffd8f306c8a6413c67190cac4c19a400b73cd490800e78e
size 1782341

View File

@@ -1,3 +1,388 @@
-------------------------------------------------------------------
Mon Dec 22 08:26:28 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251222.3aa2ace5:
* Dev: unittests: Adjust unit test for previous commit
* Dev: sbd: Don't use category when checking sbd timeout
* Dev: sbd: Allow some timeout values bigger than expected
* Dev: sbd: Adjust check/fix functions for watchdog timeout and msgwait timeout
* Dev: sbd: Remove unused function
* Dev: sbd: Rename attribute warn to quiet in class SBDTimeoutChecker
* Dev: utils: check_ssh_passwd_need: Add SSH_AUTH_SOCK if detected in environment
* Dev: sbd: Minor improvements for log clarity
* Dev: sbd: Take crashdump watchdog timeout into account
* Dev: behave: Adjust functional test for previous commits
* Dev: doc: Add help info for `crm cluster health sbd`
* Dev: sbd: Introduce class sbd.SBDTimeoutChecker
* Dev: ui_cluster: Introduce sbd option for 'crm cluster health' command
-------------------------------------------------------------------
Tue Dec 16 09:53:38 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251216.8dbfabd9:
* Dev: unittests: Adjust unit test for previous commit
* Dev: utils: Rename utils.is_quorate to utils.cluster_with_quorum
* Dev: crash_test: Reuse get_node_list in xmlutil.CrmMonXmlParser
* Dev: utils: Reuse methods in xmlutil.CrmMonXmlParser
* Dev: unittests: Remove related unit test for the removed codes in crash_test/check.py
* Dev: crash_test: Removed unused codes related to check.py
-------------------------------------------------------------------
Wed Dec 10 10:43:22 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251210.b974da26:
* Dev: behave: Add functional test for adding qdevice on a diskless SBD cluster
* Dev: unittests: Adjust unit test for previous commit
* Fix: qdevice: Make sure stonith-watchdog-timeout is 2 times of SBD_WATCHDOG_TIMEOUT (bsc#1254571)
-------------------------------------------------------------------
Wed Dec 10 07:09:44 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251210.11894b3e:
* Dev: run-functional-tests: Stop firewalld.service before tests
* Revert "Dev: Update Docker image"
-------------------------------------------------------------------
Mon Dec 08 08:40:02 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251208.8152aa4f:
* Fix: migration: Avoid exception inside thread
-------------------------------------------------------------------
Fri Nov 28 10:01:42 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251128.b328f794:
* Dev: unittests: Adjust unit test for previous commit
* Dev: utils: Rename utils.ssh_reachable_check to utils.ssh_port_reachable_check
* Dev: utils: Check if the peer node needs password to access
-------------------------------------------------------------------
Fri Nov 28 09:04:01 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251128.1e105666:
* Dev: unittests: Adjust unit test for previous commit
* Dev: utils: Rename utils.node_reachable_check to utils.ssh_reachable_check
* Dev: ui_utils: Move ui_node.parse_option_for_nodes to ui_utils.parse_and_validate_node_args
* Dev: behave: Adjust functional test for previous commit
* Fix: utils: Raise UnreachableNodeError for those ssh unreachable nodes (bsc#1250645)
* Dev: utils: Adjust node_reachable_check function and the way it is used
-------------------------------------------------------------------
Mon Nov 24 09:53:48 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251124.0c3bd0aa:
* Dev: behave: Add functional test case for previous commit
* Dev: ui_sbd: Validate purge option first
* Dev: unittests: Adjust unit test for previous commit
* Dev: sbd: Improve the process of leveraging maintenance mode
-------------------------------------------------------------------
Mon Nov 24 04:08:17 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251124.722ae586:
* Dev: Update Docker image
-------------------------------------------------------------------
Fri Nov 14 06:00:48 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251114.99d958b3:
* Dev: unittests: Adjust unit test for previous commit
* Dev: sbd: Remove sbd configuration directories while removing cluster node
-------------------------------------------------------------------
Tue Nov 11 08:55:29 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251111.9d10628b:
* Dev: unittests: Adjust unit test for previous commit
* Dev: report: Collect xml format output from crm_mon
-------------------------------------------------------------------
Mon Nov 10 12:44:38 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251110.f97886d4:
* Fix: unittest: should mock shell calling in SBDTimout.get_default_systemd_start_timeout
* Dev: report: mix stderr and stdout in one stream when collecting command outputs
-------------------------------------------------------------------
Mon Nov 10 03:50:40 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251110.b08198d3:
* Dev: unittests: Adjust unit test for previous commit
* Dev: report: Collect corosync status in crm report
-------------------------------------------------------------------
Fri Nov 07 09:21:48 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251107.97dfd3cc:
* Dev: ui_sbd: Check if crashdump is configured before purging crashdump options
-------------------------------------------------------------------
Fri Nov 07 03:27:38 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251107.f762b092:
* Fix: bootstrap: ignore ssh authentication failure to localhost when merging known_hosts (#1931)
-------------------------------------------------------------------
Thu Oct 30 10:32:29 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251030.6e97b04b:
* Dev: behave: Adjust functional test for previous commit
* Fix: ui_configure: Check if able to set stonith-watchdog-timeout property
-------------------------------------------------------------------
Thu Oct 30 08:52:59 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251030.eabfc3fa:
* Fix: prun: Avoid unnecessary sudo in sftp and ssh commands (bsc#1229416)
* Fix: bootstrap: Correctly identify root user with host
* Fix: sh: Avoid unnecessary sudo calls in ClusterShell SSH commands (bsc#1229416)
-------------------------------------------------------------------
Thu Oct 30 04:21:47 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251030.a0dd0550:
* Dev: doc: Add formula for crashdump watchdog timeout in TimeoutFormulas section
-------------------------------------------------------------------
Wed Oct 29 08:55:06 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251029.0b77b20d:
* Dev: unittests: Adjust unit test for previous commit
* Dev: bootstrap: Disable pacemaker and sbd services after removing node
* Dev: unittests: Adjust unit test for previous commit
* Dev: ui_sbd: Add and check the minimum SBD timeout value
-------------------------------------------------------------------
Tue Oct 28 09:57:25 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251028.69feb78b:
* Dev: behave: Add functional test case for increasing and decreasing SBD timeout
* Dev: sbd: Dynamically retrieve and use DefaultTimeoutStartUSec for sbd.service
* Dev: unittests: Adjust unit test for previous commit
* Dev: ui_sbd: Minor changes for log info
* Dev: sbd: If the expected stonith-watchdog-timeout is smaller than the
* Dev: sbd: Decrease sbd related timeouts when expected value decreases
-------------------------------------------------------------------
Tue Oct 28 06:39:16 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251028.43b48d32:
* Dev: unittests: Adjust unit test for previous commit
* Dev: bootstrap: Avoid circular import by refactoring FILES_TO_SYNC to use get_files_to_sync()
* Dev: Get instance of CibFactory by using cibconfig.cib_factory_instance()
* Dev: bootstrap: Lazily initialize tempfile to store original corosync.conf in Context to avoid circular import
* Dev: Import only module instead of functions from module
-------------------------------------------------------------------
Mon Oct 13 07:19:13 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20251013.2b481a7b:
* Dev: Use functools.cache instead of custom memoize
-------------------------------------------------------------------
Sat Oct 11 07:10:00 UTC 2025 - nicholas.yang@suse.com
- Update to version 5.0.0+20251011.f141f31c:
* Dev: behave: Run containers in unconfined context when selinux is enabled
-------------------------------------------------------------------
Fri Oct 10 09:57:38 UTC 2025 - nicholas.yang@suse.com
- Update to version 5.0.0+20251010.cd7706e7:
* Fix: migration: Populate node name during corosync configuration migration (bsc#1250585)
* Fix: corosync: Fallback to CIB when node name is missing (bsc#1250585)
-------------------------------------------------------------------
Thu Sep 25 02:29:49 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250925.91a04ca5:
* Fix: bootstrap: public keys from ssh-agent are not added to local authorized_keys in `crm cluster join` (#1916)
* Fix: log: divided-by-zero when terminal width is 0 in progress bar
* Dev: behave: add functional test cases for bootstrapping with ssh password
* Dev: behave: allow to use a pypi mirror with a environment variable
* Dev: test_container: add expect and remove automake
-------------------------------------------------------------------
Fri Sep 19 03:24:31 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250919.fb15985a:
* Fix: cibconfig: Add utils.auto_convert_role=True flag in method CibObjectSetCli.save
-------------------------------------------------------------------
Tue Sep 16 03:30:29 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250916.c8f0c88a:
* Dev: unittests: Adjust unit test for previous commit
* Dev: behave: Adjust functional test for previous commit
* Dev: spec: Change csync2 from requies to recommends
* Dev: bootstrap: For compatibility concerns, add -x option back
* Dev: doc: Update help text for crm cluster copy subcommand
* Dev: Rename function utils.cluster_copy_file to utils.cluster_copy_path
* Dev: Rename function bootstrap.sync_file to bootstrap.sync_path
* Dev: utils: Improve cluster_copy_file with absolute path, dir check, mkdir on remote
* Dev: bootstrap: Add -d option for cpio, to create directories as needed
* Dev: sbd: Only sync /etc/sysconfig/sbd when cluster is running
* Dev: bootstrap: Remove csync2 stage from join side
* Dev: bootstrap: Remove node_list_in_cluster from Context
* Dev: bootstrap: Don't remove csync2-related files when removing cluster node
* Dev: bootstrap: Remove csync2 from stage dependency list
* Dev: ui_cluster: Drop -x option, skip configuring and using csync2 by default
-------------------------------------------------------------------
Thu Sep 04 06:43:51 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250904.957a78bf:
* Dev: unittests: Adjust unit test for previous commit
* Dev: sbd: Minor refactor enable_sbd_service method in SBDManager
-------------------------------------------------------------------
Mon Sep 01 08:11:16 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250901.a7c653f5:
* Dev: unittests: Adjust unit test for previous commit
* Dev: sbd: Check if fence-agents-sbd is installed on join node
* Dev: sbd: Check if fence-agents-sbd is installed on interactive mode
* Dev: sbd: Check if fence-agents-sbd is installed for non sbd stage
-------------------------------------------------------------------
Mon Sep 01 06:16:36 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250901.263ead3c:
* Dev: testcases: Adjust testcases for previous commit
* Dev: ui_node: Don't unpack node info from node_state for `node show` command
-------------------------------------------------------------------
Fri Aug 29 04:13:06 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250829.acc43479:
* Fix: sbd: Ensure proper cluster restart when adding diskless SBD (bsc#1248874)
-------------------------------------------------------------------
Thu Aug 28 03:50:37 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250828.c67318b2:
* Dev: sbd: Check if fence-agents-sbd is installed on all nodes
-------------------------------------------------------------------
Thu Aug 28 01:50:07 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250828.79b4c2fc:
* Dev: unittests: Adjust unit test for previous commit
* Dev: behave: Add functional test case for previous commit
* Dev: bootstrap: Enable to remove pacemaker remote node
* Dev: xmlutil: Add instance method get_res_id_of_remote_node
-------------------------------------------------------------------
Wed Aug 27 06:33:43 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250827.272bacc8:
* Fix: Makefile: should uninstall man pages
-------------------------------------------------------------------
Tue Aug 26 10:33:28 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250826.ce40450f:
* Fix: packaging: use `CURDIR` instead of `PWD` in Makefile
-------------------------------------------------------------------
Tue Aug 26 07:48:00 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250826.57cffec0:
* Fix: doc: the usage parser in help2adoc should support multiline usages
* Dev: packaging: add some runtime deps to build deps to support running `crm help` during builds
* Dev: packaing: add doc subdir to Makefile
-------------------------------------------------------------------
Tue Aug 26 07:01:54 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250826.4a3e29cc:
* Dev: unittests: Adjust unit test for previous commit
* Dev: report: Update HA related packages for crm report to check and verify
-------------------------------------------------------------------
Tue Aug 26 02:53:07 UTC 2025 - nicholas.yang@suse.com
- Update to version 5.0.0+20250826.598b3b34:
* Refactor: packaging: kill automake and move build steps from crmsh.spec into Makefile
* Dev: packaging: remove deprecated `data_files`
-------------------------------------------------------------------
Mon Aug 25 07:40:03 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250825.21aba9d5:
* Fix: ui_cluster: Call crm report directly for the legacy `crm cluster health` command (bsc#1230324)
-------------------------------------------------------------------
Fri Aug 22 04:13:58 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250822.b447ae3f:
* Dev: run-functional-tests: Add -i option for podman exec command to support interactive mode
-------------------------------------------------------------------
Thu Aug 21 02:01:31 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250821.fb2da632:
* Dev: unittests: Adjust unit test for previous commit
* Dev: xmlutil: Refactor CrmMonXmlParser.get_node_list to be an instance method
* Dev: behave: Add funtional test for previous commits
* Dev: utils: Refactor validate_and_get_reachable_nodes for clearer logic
* Dev: xmlutil: Use a single node_type parameter instead of two mutually exclusive parameters
* Dev: utils: Skip reachable checking for pacemaker remote node
* Dev: cibquery: Remove filter condition for pacemaker remote node
* Dev: ui_node: Enable maintenance pacemaker remote node
* Dev: ui_node: Enable standby/online pacemaker remote node
* Dev: xmlutil: Drop xmlutil.listnodes function
-------------------------------------------------------------------
Wed Aug 20 03:55:21 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250820.2550d50a:
* Dev: unittests: Adjust unit test for previous commit
* Dev: bootstrap: No need to remove /var/lib/crmsh
-------------------------------------------------------------------
Mon Aug 18 06:52:37 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250818.c02d21b0:
* Dev: add asciidoc to the test image
-------------------------------------------------------------------
Fri Aug 15 03:27:28 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250815.8d89c3d0:
* Dev: ChangeLog: update ChangeLog for release 5.0.0
-------------------------------------------------------------------
Thu Aug 14 10:23:04 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250814.d6d8099f:
* Dev: behave: Add new case for adding diskless sbd via stage
* Dev: unittests: Adjust unit test for previous commit
* Dev: sbd: Use SBDUtils.get_sbd_device_from_config for reliable diskless SBD detection
-------------------------------------------------------------------
Thu Aug 14 00:37:57 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250814.ae1e11bf:
* Fix: log: missing LF after a progress bar (#1886)
-------------------------------------------------------------------
Wed Aug 13 03:56:14 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250813.70bae071:
* Dev: unittests: Adjust unit test for previous commit
* Dev: sbd: Add with_sbd parameter for the case when sbd is not active
* Dev: sbd: Restart cluster after configured sbd and adjusted properties
* Fix: sbd: Ensure stonith-watchdog-timeout is >= 2 * SBD_WATCHDOG_TIMEOUT (bsc#1247415)
* Dev: unittests: Adjust unit test for previous commit
* Dev: xmlutil: Add is_non_stonith_resource_running() and use for cluster restart checks
-------------------------------------------------------------------
Thu Jul 31 13:02:06 UTC 2025 - XLiang@suse.com
- Update to version 5.0.0+20250731.f29b30db:
* Fix: doc: Add TimeoutFormulas help topic (bsc#1242981)
-------------------------------------------------------------------
Thu Jul 31 08:47:31 UTC 2025 - XLiang@suse.com

View File

@@ -41,7 +41,7 @@ Name: crmsh
Summary: High Availability cluster command-line interface
License: GPL-2.0-or-later
Group: %{pkg_group}
Version: 5.0.0+20250731.d3091c0c
Version: 5.0.0+20251222.3aa2ace5
Release: 0
URL: http://crmsh.github.io
Source0: %{name}-%{version}.tar.bz2
@@ -64,11 +64,12 @@ BuildRequires: python3-lxml
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-PyYAML
%if 0%{?suse_version}
# only require csync2 on SUSE since bootstrap
# only works for SUSE at the moment anyway
Requires: csync2
Recommends: csync2
%if %{use_firewalld}
BuildRequires: firewall-macros
%endif
@@ -80,11 +81,13 @@ Requires: python3-curses
Requires: python3-python-dateutil
BuildRequires: fdupes
BuildRequires: python3-curses
BuildRequires: python3-python-dateutil
%else
Requires: python3-dateutil
BuildRequires: pyproject-rpm-macros
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-dateutil
%endif
# Required for core functionality
@@ -156,9 +159,6 @@ find . -type f -exec sed -i \
{} \;
sed -i -e '1{\@^#!%{_bindir}/python3@d}' crmsh/report/core.py
# this is wrong FIXME
sed -i -e '/data_files/d' setup.py
%build
./autogen.sh
@@ -175,14 +175,7 @@ sed -i -e '/data_files/d' setup.py
%pyproject_wheel
%endif
# Generate manpages
for manpg in doc/crm{,sh_crm_report}.8.adoc ; do
a2x -f manpage $manpg
done
for docad in doc/crm{,sh_crm_report}.8.adoc ; do
asciidoc --unsafe --backend=xhtml11 $docad
done
make all
%if %{with regression_tests}
tox
@@ -193,48 +186,19 @@ fi
%endif
%install
# make DESTDIR=%%{buildroot} docdir=%%{crmsh_docdir} install
%if 0%{?suse_version}
%python3_pyproject_install
%else
%pyproject_install
%endif
# additional directories
install -d -m0770 %{buildroot}%{_localstatedir}/cache/crm
install -d -m0770 %{buildroot}%{_localstatedir}/log/crmsh
install -d -m0755 %{buildroot}%{_tmpfilesdir}
# install configuration
install -Dm0644 -t %{buildroot}%{_sysconfdir}/crm etc/{crm.conf,profiles.yml}
install -m0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf
# install manpages
install -Dpm0644 -t %{buildroot}%{_mandir}/man8 doc/*.8
install -Dpm0644 -t %{buildroot}%{_datadir}/crmsh/ doc/crm.8.adoc
# install data
for d in $(cat data-manifest); do
if [ -x $d ] ; then mode="0755" ; else mode="0644" ; fi
install -D -m $mode $d %{buildroot}%{_datadir}/crmsh/$d
done
mv %{buildroot}%{_datadir}/crmsh/test{,s}
install -p test/testcases/xmlonly.sh \
%{buildroot}%{_datadir}/crmsh/tests/testcases/configbasic-xml.filter
install -Dm0644 contrib/bash_completion.sh \
%{buildroot}%{_datadir}/bash-completion/completions/crm
make DESTDIR=%{buildroot} tmpfilesdir=%{_tmpfilesdir} fwdefdir=%{_fwdefdir} install
if [ -f %{buildroot}%{_bindir}/crm ]; then
install -Dm0755 %{buildroot}%{_bindir}/crm %{buildroot}%{_sbindir}/crm
rm %{buildroot}%{_bindir}/crm
install -d %{buildroot}%{_sbindir}/
mv %{buildroot}%{_bindir}/crm %{buildroot}%{_sbindir}/crm
fi
%if %{use_firewalld}
install -Dm0644 high-availability.xml \
%{buildroot}%{_fwdefdir}/high-availability.xml
%endif
%if 0%{?suse_version}
%fdupes %{buildroot}
%endif