Commit Graph

182 Commits

Author SHA1 Message Date
Michal Pospíšil
d1aea47871 pcs-0.12.1-2
- Remove BuildRequires: python3-wheel when using setuptools 71+

This commit will not be built for CentOS Stream as it doesn't include
any functional changes.
2025-09-02 19:52:56 +02:00
Michal Pospíšil
0eab8bbe31 set bundled package paths in plan
There is a key difference between Fedora and RHEL. Fedora has pcs as a
noarch package which causes it to be installed into /usr/lib rather
than /usr/lib64. This means that bundled packages have a different path.
This caused import errors in tests.

There is also a better way of setting the environment variables -
through tmt instead of the preparation script.
2025-09-02 19:52:49 +02:00
Michal Pospíšil
9c6cb5d965 ensure compatibility with rpm before and after 4.20
When backporting the gating changes in Fedora, I found out that they are
not backwards compatible with odl RPM. While I could just roll back the
incomptabile changes as I did in that older Fedora branch, I'm not going
to do that. Because this branch is supposed to be upstream of the eln
brnach with Fedora that includes the new RPM version, this should make
the testing run both with older and newer RPM versions.
2025-09-01 19:12:18 +02:00
Michal Pospíšil
39906cf8c3 move helper gating script to tests dir
Sometimes changes to the helper script for the gating plan are needed
without a ticket. Since this is a shell script, it is not exempt from
dist-git policy that requires a ticket for any non-test change. The
gating plan itself is a fmf file which is exempt, so only this used to
be a problem in the past.

Because of the STI test format, the whole tests folder is exempt too.
Moving the helper script there to avoid the need for tickets.
2025-09-01 19:12:05 +02:00
Michal Pospíšil
a894405f31 backport new gating from Fedora
This mirrors: dd5c28916c

Changes to builddir structure in RPM 4.20 broke the old script for
patching sources. Luckily, we can now patch sources with tmt.
Gone is also list of packages needed for testing,
build dependencies will be installed by tmt instead.

Name of the gating plan was changed to remove confusion with
gating.yaml. The prepare script was also renamed to better reflect what
it does.

The prepare script should be run in prepare, but TMT_SOURCE_DIR doesn't
exist in that step yet. The workaround is to run the prepre script
before every test to allow for running all tests by itself. However, the
script can only run once because it removes pcs folder which breaks
autotools. This is done by creating a stamp file that prevents the
script from running if it already ran.
2025-08-28 00:17:56 +02:00
Michal Pospíšil
52fbd3753a do not require wheel with new setuptools
This change is done here because pcs now has an eln branch which will
track the c10s branch. There is now an effort to remove python-wheel
from rawhide and eln: https://github.com/fedora-eln/eln/issues/284

We already did it in rawhide but now that we have the eln branch, we
have to do it again.
2025-08-28 00:16:21 +02:00
Michal Pospíšil
e616843f95 pcs-0.12.1-1.el10
- Rebased pcs to the latest sources (see CHANGELOG.md)
  Resolves: RHEL-77193, RHEL-92043, RHEL-92883, RHEL-93757
- Updated HA Cluster Management add-on to 0.1.23 (see CHANGELOG_WUI.md)
  Resolves: RHEL-30671, RHEL-84139, RHEL-99800
- Updated bundled rubygem rack
- Updated bundled Python dependency pycurl
2025-07-08 20:14:16 +02:00
Michal Pospíšil
e471b4dc48 fix directory permissions for Image Mode
Resolves: RHEL-96074
2025-07-08 20:14:16 +02:00
Michal Pospíšil
068706c859 package licenses and docs for pcs-web-ui
Pcs-web-ui added a changelog upstream, so I'm adding it downstream as
well. It turns out that I forgot to package the readme and license
before, so adding them too.

For pcs, readme and changelog are installed via automake variable
`dist_doc_DATA` [1] which gets automatically converted to its own target
ran during `make install`. The target installs it to %docdir/%TARNAME
(automake variables). This happens to align with RPM default of
%_docdir/%name (spec macros). This is rendered completely useless as
these later get replaced by RPM anyway. The path is therefore
/usr/share/doc/pcs.

RPM %doc directive has two modes. If there is a relative path, the %doc
directive runs a script that goes into builddir/BUILD/<Source0> and
copies the file to %_docdir. If there is an absolute path, the file is
only marked as a doc file in the RPM database. The same goes for
%license directive, except for it getting copied to %_defaultlicensedir.
[2][3]

The problem arises for pcs-web-ui files as they neither come from the
pcs tarball nor are to be owned by the pcs package. Additionally, the
package name changes for different downstreams. Because the package name
changes, it is not desirable to install the files in the upstream
Makefile which is not aware of RPM package names. I made a decision to
handle file copying entirely in the specfile for these reasons. It seems
like for relative paths, RPM searches the Source0 tarball, but ours are
located in Source100. Therefore, I explicitly used %_docdir and
%_defaultlicensedir in %install and %files.

Resolves: RHEL-86232

[1]: https://www.gnu.org/software/automake/manual/html_node/amhello_0027s-Makefile_002eam-Setup-Explained.html
[2]: https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/
[3]: https://web.archive.org/web/20160927094629/https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s05s03.html
2025-07-08 20:14:11 +02:00
Michal Pospíšil
a338e92793 update pycurl
I forgot to update pycurl since we didn't use to bundle it. Also, python
maintainers updated the version detection logic to let pycurl also work
with RC versions of libcurl which I copied [1]. I went with Miro's
suggestion of putting the tilde in the Requires to have the sed more
readable.

[1]: https://src.fedoraproject.org/rpms/python-pycurl/pull-request/11
2025-07-08 19:07:10 +02:00
Michal Pospíšil
e98ef3d2f1 pcs-0.12.0-5.el10
- Rebased pcs to the latest sources (see CHANGELOG.md)
  Resolves: RHEL-7681, RHEL-21050, RHEL-22423, RHEL-35407, RHEL-44347, RHEL-63186, RHEL-66607, RHEL-76176, RHEL-81938
- Rebased HA Cluster Management add-on to the latest sources
  Resolves: RHEL-30686, RHEL-30695, RHEL-30698, RHEL-79314, RHEL-84143, RHEL-85195
- The upstream version of HA Cluster Management add-on can now be queried through RPM - see bundled(pcs-web-ui)
  Resolves: RHEL-86227
- Updated bundled rubygems: backports, childprocess, ffi, puma, rack, rack-protection, rack-session, rack-test, sinatra, tilt
- Updated bundled Python dependency dacite

- Removed BuildRequires: python >= 3.12 - correct python requirement is generated by rpm based on the system interpreter
- Added BuildRequires: libffi-devel - this is present in upstream, but was missing here
- Added BuildRequires: corosync-qdevice-devel - this is a buildroot only package with pc file for corosync-qdevice, without it, autotools use default paths
- Simplified tarball versioning mechanism and added tarball-version macro to simplify pcs-web-ui version reporting. Pcs-web-ui reported version uses the new ui_tarball_version macro or ui_version macros depending on whether the first one exists
2025-05-21 11:11:37 +02:00
Guoguo
44963136e5 Add riscv64
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
2025-03-14 11:35:54 +00:00
Michal Pospíšil
ede244de3f pcs-0.10.12-3.el10
- Fixed restarting bundles
  Resolves: RHEL-79033
- Fixed deletion of misconfigured bundles
  Resolves: RHEL-79090
- Fixed filtering of resource clones in web console
  Resolves: RHEL-78654
- Updated bundled rubygem rack
  Resolves: RHEL-79676
2025-02-14 21:16:38 +01:00
Michal Pospíšil
58c6390a9f pcs-0.12.0-2.el10
I forgot to copy the RPM changelog into the spec file in the last build.
This commit contains no real changes, just bumps the release to rebuild
with a correct RPM changelog.
2025-01-10 16:51:31 +01:00
Michal Pospíšil
52fe547310 pcs-0.12.0-1.el10
- Rebased pcs to the latest sources (see CHANGELOG.md)
  Resolves: RHEL-44421
- Updated HA Cluster Management add-on to 0.1.22
- Improved directions pointing from pcs-web-ui to HA Cluster Management add-on
  Resolves: RHEL-68363
2025-01-09 21:14:02 +01:00
Michal Pospíšil
7b5f1708d0 pcs-0.12.0~b1-2.el10
- Rebased pcs to the latest sources (see CHANGELOG.md)
  Resolves: RHEL-7602, RHEL-12709, RHEL-44719
- Rebased HA Cluster Management add-on to the latest sources
- Point users from pcs-web-ui to HA Cluster Management add-on
  Resolves: RHEL-68363

- Revamped and unified tarball version management between pcs and pcs-web-ui - version numbers are needed for untagged releases, as git-version-gen takes the version from a git tag present in official released tarballs. To build an unreleased version of pcs, a commit hash is declared in a macro and .tarball-version is generated from rpm version and the hash. For tagged releases, .tarball-version is not generated but rpm version is used for file names and such. Pcs-web-ui uses a different version than pcs, so the rpm version cannot be used. Instead, pcs-web-ui version always has to be declared in the spec file anyway, so it will now serve as the fallback version for generating the .tarball-version for pcs-web-ui.
- Fixed description of cockpit-ha-cluster to mention RHEL web console instead of Cockpit
- Putting autosetup and autopatch back for pcs-web-ui
- Removed previously deleted gems from sources file that I forgot to remove in the last commit
2024-12-16 17:17:31 +01:00
Michal Pospíšil
1846315a2b pcs-0.12.0~b1-1.el10
- Rebased to the latest sources (see CHANGELOG.md)
  Resolves: RHEL-21047, RHEL-33386, RHEL-38483, RHEL-44432, RHEL-48220, RHEL-49520, RHEL-49521, RHEL-49524, RHEL-49527, RHEL-55723, RHEL-61747, RHEL-61889, RHEL-62719
- Updated pcs-web-ui in cockpit-ha-cluster to 0.1.21
  Resolves: RHEL-30688, RHEL-30691, RHEL-30693, RHEL-30701, RHEL-47158, RHEL-52846, RHEL-53363
- Updated bundled rubygems: ffi, mustermann, puma, rack, rackup, tilt
- Removed bundled rubygem webrick, ruby2_keywords
- New runtime dependency python3-tornado which has been bundled in previous versions

- Replaced ${RPM_BUILD_ROOT} in favor of %buildroot to match the upstream spec
- Ruby2_keywords is a standard gem provided in RHEL 10, it no longer needs to be bundled
- Removed webrick again because rackup stopped requiring it
- Unbundled Tornado to make maintenance easier since it is provided in RHEL
2024-11-18 19:14:05 +01:00
Troy Dawson
4376fa3f53 Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
2024-10-29 08:54:20 -07:00
Michal Pospisil
495cd3cc49 pcs-0.12.0a1-3
- Since 0.12.0~a1-1, pcs-web-ui is no longer a standalone application
  running on port 2224. It is now accessible through RHEL web console
  after installing the HA Cluster Management add-on (cockpit and
  cockpit-ha-cluster packages, pcsd must be running)
- Updated pcs-web-ui to 0.1.20
  Resolves: RHEL-34783
2024-07-12 13:31:40 +02:00
Troy Dawson
95854ccaab Bump release for June 2024 mass rebuild 2024-06-24 09:07:15 -07:00
Michal Pospisil
2fd81b454f pcs-0.12.0a1-1
- Rebased to the latest sources (see CHANGELOG.md)
  Resolves: RHEL-29739, RHEL-34783, RHEL-38480, RHEL-38484, RHEL-38486
- Fixed grammatical error in pcs-web-ui
  Resolves: RHEL-38496

- Support tilde in version - for correct sorting of prerelease upstream version by RPM - %{version} expands with the tilde, use %{clean_version} to get upstream version
- Added pkgconfig file for pcs
- Added previously omitted autotools as build dependencies
- Changed BuildRequires for cluster stack components to use pkgconfig virtual provides to prevent breakage if pkgconfig is ever moved to a different package
- Removed BuildRequires: python3-wheel - we are not building wheels with setuptools
- Removed BuildRequires: nodejs-npm from main package and fixed the name in cockpit-ha-cluster subpackage - the idea is that BuildRequires become Requires of the srpm which are then used during the main build phase when subpackages are built (so BuildRequires are effectively inherited by this logic)
- Bumped minimum python and ruby versions
2024-06-21 20:27:55 +02:00
Michal Pospisil
16034a47b3 pcs-0.11.7-5
- Rebased to the latest sources (see CHANGELOG.md)
  Resolves: RHEL-34783, RHEL-34792, RHEL-35428, RHEL-35670, RHEL-36612, RHEL-38478, RHEL-38479, RHEL-38481, RHEL-38487, RHEL-38489, RHEL-38491
- Updated pcs-web-ui to 0.1.19
  Resolves: RHEL-38493, RHEL-38494, RHEL-38495, RHEL-38496
- “Added” the Cockpit application cockpit-ha-cluster as a web interface for HA cluster management (this was already present because of package sync from Fedora 40)
  Resolves: RHEL-23048
- Updated bundled rubygems: backports, childprocess, nio4r, puma, rack, rack-protection, sinatra
- Bundled new rubygems: base64, rack-session, rackup, webrick

- Started bundling webrick again as a dependency of rackup - we no longer use it but rackup requires webrick
2024-05-23 23:38:11 +02:00
Michal Pospisil
72da5ce3c7 pcs-0.11.7-4
- initial c10s build
- removed %{eln} macro
- support packaging change of nodejs from streams to versioned packages
- only `enable-booth-enable-authfile-unset` option is present
- removed BuildRequires: python3-setuptools_scm - was needed for bundling dateutil
- updated gating policy
- added diffstat to gating fmf plan, rpmbuild failed during patching
- fixed paths to bundled modules in prepare-env.sh, removed distro workaround
- Bundled Python dependencies: dacite, pyagentx, pycurl, tornado
  Resolves: RHEL-26339
- Bundled rubygems: backports, childprocess, ethon, ffi, mustermann, nio3r, puma, rack, rack-protection, rack-test, ruby2_keywords, sinatra, tilt
- Converted pcs and pcs-snmp to be architecture dependent, cockpit-ha-cluster remains noarch
2024-04-12 15:49:51 +02:00
Michal Pospisil
655b3251b0 pcs-0.11.7-3
- Fixed a bug preventing the Cockpit Application from being installed from Cockpit
2024-02-05 10:51:21 +01:00
Fedora Release Engineering
b68e4b6701 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-25 12:20:13 +00:00
Michal Pospisil
3a06ce659f pcs-0.11.7-1
- Rebased to the latest upstream sources (see CHANGELOG.md)
- Updated pcs-web-ui to 0.1.18
- TLS cipher setting in pcsd now follows system-wide crypto policies by default
- Added cockpit-pcs-web-ui subpackage that adds pcs-web-ui as a Cockpit application
- Removed BuildRequires: python3-distro - was used to bundle dateutil
- Replaced STI tests with fmf tests for gating
- Change to prepare-env.sh script for rpm 4.19+ that creates SPECPARTS
  directories
- Workaround used for distro in autotools
2024-01-19 14:23:26 +01:00
Fedora Release Engineering
d102aae88e Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 18:51:05 +00:00
Yaakov Selkowitz
2d244b8d72 Fix build with Python 3.12
Patch submitted upstream: https://github.com/ClusterLabs/pcs/pull/713
2023-07-10 13:02:11 -04:00
Python Maint
11e6bb08f8 Rebuilt for Python 3.12 2023-06-28 11:42:02 +02:00
Michal Pospisil
71c95f418e Resolves: rhbz#2109852 rhbz#2170648
- Rebased to the latest upstream sources (see CHANGELOG.md)
- Updated pcs-web-ui
- Removed dependency fedora-logos - favicon is now correctly provided by pcs-web-ui
2023-06-22 13:43:50 +02:00
Michal Pospisil
52c9289b49 Resolves: rhbz#2179837
- Fix displaying differences between configuration checkpoints in “pcs config checkpoint diff” command
- Fix “pcs stonith update-scsi-devices” command which was broken since Pacemaker-2.1.5-rc1
- Fixed loading of cluster status in the web interface when fencing levels are configured
- Fixed a vulnerability in pcs-web-ui-node-modules
- Swapped BuildRequires: npm for BuildRequires: nodejs-npm in Fedora 37 because of NodeJS packaging change
- Removed BuildRequires: rubygem-io-console
- Removed dependency rubygem-eventmachine
2023-04-13 13:01:04 +02:00
Michal Pospisil
2287b8ba7d Resolves: rhbz#2166266
- Rebased to the latest upstream sources (see CHANGELOG.md)
- Fixed broken filtering in create resource/fence device wizards in the web interface
- Converted package to noarch
- Added creation of .tarball-version file needed by autotools when building from untagged commits and fixed Source0 link to the tarball on GitHub
- Modified build options of pcs for booth authfile fix for all Fedora versions
- Added BuildRequires: pam for tier0 tests during build
- Added BuildRequires: nodejs-npm for NodeJS packaging change since Fedora 38
- Removed bundled rubygem thin and its associated BuildRequires: rubygems, rubygem-bundler, rubygem-daemons, gcc, gcc-c++
- Added dependency rubygem-puma - replacement for rubygem thin
- Added dependency nss-tools - for working with qdevice certificates
- Added dependency fedora-logos - for the web interface favicon
- Removed dependencies: rubygem-daemons, rubygem(webrick)
2023-03-01 15:29:41 +01:00
Fedora Release Engineering
514efad418 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 23:33:26 +00:00
Mamoru TASAKA
7315593416 Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_3.2
Workaround for dnf dependency resolution confusion between nodejs16 vs nodejs
Workaround for find-debuginfo.sh failure wrt ruby3.2 gem install change
2023-01-04 15:01:32 +09:00
Michal Pospisil
dc07da9166 Rebased to latest upstream sources (see CHANGELOG.md)
- Updated pcs-web-ui
- Added rubygem dependency: childprocess
- Removed rubygem dependency: open4
2022-12-13 10:50:06 +01:00
Mamoru TASAKA
b937466e5b Backport upstream patch for rubygem-json 2.6.3 error message format change 2022-12-12 21:54:19 +09:00
Miroslav Lisik
09490deee9 Resolves: rhbz#2123389
- Fixed ruby socket permissions
2022-09-07 16:37:27 +02:00
Fedora Release Engineering
e364a48be5 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 02:52:52 +00:00
Zbigniew Jędrzejewski-Szmek
d88d1a37b2 Rebuilt for pyparsing-3.0.9 2022-07-19 11:12:48 +02:00
Miroslav Lisik
478964bb97 Rebased to latest upstream sources (see CHANGELOG.md)
- Updated pcs-web-ui
- Resolves: rhbz#2068452
2022-06-28 10:48:56 +02:00
Python Maint
a6e4f795a7 Rebuilt for Python 3.11 2022-06-14 09:03:59 +02:00
Miroslav Lisik
d172d46e44 Resolves: rhbz#bz2093935
- Python 3.11 related fixes
2022-06-09 11:01:20 +02:00
Miroslav Lisik
f8c8ea2492 Rebased to latest upstream sources (see CHANGELOG.md)
- Updated pcs-web-ui
- Removed old web gui
2022-02-04 18:12:04 +01:00
Vít Ondruch
183fef8a1e Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.1 2022-01-27 19:00:48 +01:00
Fedora Release Engineering
026b429ce0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 23:04:13 +00:00
Miroslav Lisik
c8e365c715 Rebased to latest upstream sources (see CHANGELOG.md)
- Updated pcs-web-ui
- Stop bundling rubygems daemons eventmachine mustermann rack rack-protection ruby2_keywords sinatra tilt
2021-10-05 18:40:50 +02:00
Miroslav Lisik
b82abfd36d Resolves: rhbz#1983359
- Rebased to latest upstream sources (see CHANGELOG.md)
- Updated pcs-web-ui
- Bundle rubygem-sinatra, rubygem-thin and their dependencies because they were orphaned
2021-08-16 20:54:38 +02:00
Fedora Release Engineering
d6820b5189 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 17:52:13 +00:00
Python Maint
0edfcc78db Rebuilt for Python 3.10 2021-06-04 20:14:54 +02:00
Zbigniew Jędrzejewski-Szmek
c125a1634e Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
2021-03-02 16:13:06 +01:00