Commit Graph

71 Commits

Author SHA1 Message Date
Michal Pospíšil
5508233622 pcs-0.11.11-1.el9
- Rebased pcs to the latest sources (see CHANGELOG.md)
  Resolves: RHEL-114420
- Updated pcs-web-ui to 0.1.24 (see CHANGELOG_WUI.md)
  Resolves: RHEL-132572
2026-01-07 16:20:44 +01:00
Michal Pospíšil
8ffb62fd63 pcs-0.11.10-2.el9
- Rebased pcs to the latest sources (see CHANGELOG.md)
  Resolves: RHEL-113763
- Rebased HA Cluster Management add-on to the latest sources (see CHANGELOG_WUI.md)
  Resolves: RHEL-104372, RHEL-114028, RHEL-114166, RHEL-114173
- Modified Provides for bundled components
  Resolves: RHEL-114470
- Updated bundled rubygems: backports, ethon, mustermann, nio4r, puma, rack, rack-protection, sinatra, tilt
  Resolves: RHEL-120944, RHEL-121038, RHEL-123632, RHEL-123646, RHEL-124940
2025-11-13 17:16:51 +01:00
Michal Pospíšil
402e13b60a 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-11-13 17:16:51 +01:00
Michal Pospíšil
888c18bc08 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-11-13 17:16:51 +01:00
Michal Pospíšil
08eca9831e 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-11-13 17:16:51 +01:00
Michal Pospíšil
4f41f5db77 fix bundling metadata
This should help ProdSec accurately detect versions of bundled
components in pcs. Security analysts usually filter the database based
on ecosystem. The ecosystem detection has been done from RPM metadata
for some time and that is when ProdSec stopped creating trackers
accurately. The problem is that we didn't follow the Fedora Packaging
Guidelines and didn't name the bundled components with package names as
if they were entering Fedora. The ecosystem detection in Deptopia (the
tool that ProdSec uses) expects "rubygem-" prefix for rubygems and
"python[X]-" prefix for Python ecosystem. See PSDEVOPS-4408 for more
details.
2025-11-13 17:16:48 +01:00
Michal Pospíšil
975909b9ec pcs-0.11.10-1.el9
- Rebased pcs to the latest sources (see CHANGELOG.md)
  Resolves: RHEL-77194, RHEL-92044
- Updated pcs-web-ui to 0.1.23 (see CHANGELOG_WUI.md)
  Resolves: RHEL-76309, RHEL-99805
- Updated bundled rubygem rack
2025-07-09 17:29:48 +02:00
Michal Pospíšil
cf0d6484c8 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-86233

[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-09 16:53:06 +02:00
Michal Pospíšil
00950e918d fix directory permissions for Image Mode
Resolves: RHEL-97220
2025-07-09 16:52:53 +02:00
Michal Pospíšil
b8d0759ba0 pcs-0.11.9-3.el9
- Rebased pcs to the latest sources (see CHANGELOG.md)
  Resolves: RHEL-35420, RHEL-76055, RHEL-76059, RHEL-76060, RHEL-76153, RHEL-76154, RHEL-76170, RHEL-76177, RHEL-82894
- Rebased pcs-web-ui to the latest sources
  Resolves: RHEL-76310, RHEL-76311, RHEL-76312, RHEL-79317, RHEL-85196, RHEL-85197, RHEL-85745
- The upstream version of pcs-web-ui can now be queried through RPM - see bundled(pcs-web-ui)
  Resolves: RHEL-86229
- Updated bundled rubygems: backports, childprocess, ffi, puma, rack, rack-protection, rack-session, rack-test, sinatra, tilt
  Resolves: RHEL-90151

- Removed BuildRequires: python >= 3.9 - 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
- Removed duplicate BuildRequire: python3-cryptography
- Added BuildRequires: corosync-qdevice-devel - this is a buildroot only package with pc file for corosync-qdevice, without it, autotools use default paths
- Disallowed installation of pcs 0.11 with Pacemaker 3 to prevent incorrect behavior
- Bundled rubygem logger - logger 1.5.0 is required by childprocess 5.1.0. Logger is a standard gem in Ruby 3.0 which is available in RHEL 9, but it only provides logger 1.4.3 failing this requirement. Thus newer logger needs to be bundled
- 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 12:31:38 +02:00
Michal Pospíšil
8567e883ff pcs-0.11.9-2.el9
- Fixed restarting bundles
  Resolves: RHEL-79055
- Fixed deletion of misconfigured bundles
  Resolves: RHEL-79160
- Fixed filtering of resource clones in web console
  Resolves: RHEL-78653
- Updated bundled rubygem rack
  Resolves: RHEL-79500
2025-02-14 20:36:48 +01:00
Michal Pospíšil
30cb727899 pcs-0.11.9-1.el9
- Rebased pcs to the latest sources (see CHANGELOG.md)
  Resolves: RHEL-44420
- Updated pcs-web-ui to 0.1.22
2025-01-10 21:04:19 +01:00
Michal Pospíšil
75664737d2 pcs-0.11.8-3.el8
- Rebased pcs to the latest sources (see CHANGELOG.md)
  Resolves: RHEL-46303, RHEL-69040
- Rebased pcs-web-ui to the latest sources
  Resolves: RHEL-69272, RHEL-69278, RHEL-69279, RHEL-69280, RHEL-69281, RHEL-69282

- 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.
- Putting autosetup and autopatch back for pcs-web-ui
2024-12-16 19:24:05 +01:00
Michal Pospíšil
25f11df46c pcs-0.11.8-2.el9
- Rebased to the latest sources (see CHANGELOG.md)
  Resolves: RHEL-16232, RHEL-46284, RHEL-46286, RHEL-46293, RHEL-55441, RHEL-61738, RHEL-61901
- Updated pcs-web-ui to 0.1.21
- Updated bundled rubygems: ffi, mustermann, puma, rack, rackup, tilt
- Removed bundled rubygem webrick
- New runtime dependency python3-tornado which has been bundled in previous versions

- Reenabled brp_mangle_shebangs after removing unnecessary files from rubygems that were flagged before
- Replaced ${RPM_BUILD_ROOT} in favor of %buildroot to match the upstream spec
- Removed webrick again because rackup stopped requiring it
- Unbundled Tornado to make maintenance easier since it is provided in RHEL
- Added pkgconf file for pcs
2024-11-19 19:31:27 +01:00
Michal Pospisil
7aac548d92 pcs-0.11.8-1
- Updated pcs-web-ui to 0.1.20
- Rebased to the latest sources (see CHANGELOG.md)
  Resolves: RHEL-34781

- Fixed the case of a separator in SPDX license string
2024-07-11 18:22:16 +02:00
Michal Pospisil
20ca7ec504 pcs-0.11.7-4
- Rebased to the latest sources (see CHANGELOG.md)
  Resolves: RHEL-7701, RHEL-7737, RHEL-17962, RHEL-34781
- Fixed grammatical error in pcs-web-ui
  Resolves: RHEL-7726
2024-06-18 14:44:41 +02:00
Michal Pospisil
8d18969d78 pcs-0.11.7-3
- Rebased to the latest sources (see CHANGELOG.md)
  Resolves: RHEL-2977, RHEL-16231, RHEL-21051, RHEL-25854, RHEL-27492, RHEL-28749, RHEL-34781, RHEL-36514
- Updated pcs-web-ui to 0.1.19
  Resolves: RHEL-7726, RHEL-21895, RHEL-21896, RHEL-21897
- 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-24 19:29:37 +02:00
Michal Pospisil
6efec6c67a pcs-0.11.7-2
- Fixed CVE-2024-25126, CVE-2024-26141, CVE-2024-26146 in bundled dependency rack
  Resolves: RHEL-26446, RHEL-26448, RHEL-26450
2024-03-19 14:15:30 +01:00
Michal Pospisil
e0f71ca976 pcs-0.11.7-1
- Rebased to the latest sources (see CHANGELOG.md)
  Resolves: RHEL-7740
- Removed workaround for skipping copying of rubygems
- Removed workaround for unsupported distro in configure.ac
2024-01-11 15:19:58 +01:00
Michal Pospisil
f0557fdd16 pcs-0.11.6-6
- Rebased to the latest upstream sources (see CHANGELOG.md)
  Resolves: RHEL-7582, RHEL-7583, RHEL-7669, RHEL-7672, RHEL-7697, RHEL-7698, RHEL-7700, RHEL-7703, RHEL-7719, RHEL-7725, RHEL-7730, RHEL-7738, RHEL-7739, RHEL-7740, RHEL-7744, RHEL-7746
- TLS cipher setting in pcsd now follows system-wide crypto policies by default
  Resolves: RHEL-7724
2023-11-23 15:45:58 +01:00
Michal Pospisil
1a3ffa6e01 fix gem permissions
Prior to this fix, some gems were installed with write permissions for the
owner group and everyone. With this patch, write permissions are removed
with chmod for all rubygems.

Resolves: RHEL-7716
2023-11-10 18:56:32 +01:00
Michal Pospisil
e2eed6c9b4 ignore failure when allowing repositories
Gating environment has a different repository configuration than
production builds. This causes dnf config manager to fail when enabling
high availability and crb repositories. These repositories are enabled
on the images used for testing, so the failure can be ignored.

Resolves: RHEL-15217
2023-11-02 15:39:04 +01:00
Michal Pospisil
1ab5fc7490 migrate gating tests to fmf
The deprecated STI gating test definition is removed in favor of
flexible metadata format (fmf). This fixes testing in Testing Farm
which is enabled in CentOS Stream merge requests.

This is not the final version, some workarounds were needed. Most
notable ones are patching sources which is not yet supported by
tmt (test management tool - used to run tests in Testing Farm).
Tmt also does not download rubygems, so a macro was put in place
to avoid errors while trying to copy them in the prep phase of rpmbuild.

To ensure smooth build process in the future, we will test that the new
gating test definition will match the previous result without changing
the package content.

Resolves: RHEL-15217
2023-11-01 15:21:38 +01:00
Michal Pospisil
e2c06194ee Resolves: rhbz#2222788
- Refreshing any page in pcs-web-ui no longer causes it to display a blank page
2023-07-14 17:25:42 +02:00
Michal Pospisil
a8b1b4c1d8 Resolves: rhbz#2163953 rhbz#2216434 rhbz#2217850 rhbz#2219407
- Added BuildRequires: debugedit - for generating MiniDebugInfo - triggered by removing find-debuginfo.sh from rpm
- Make use of filters when extracting tarballs to enhance security if provided by Python (pcs config restore command)
- Exporting constraints with rules in form of pcs commands now escapes # and fixes spaces in dates to make the commands valid
- Constraints containing options unsupported by pcs are not exported and a warning is printed instead
- Using spaces in dates in location constraint rules is deprecated
2023-07-12 16:54:23 +02:00
Michal Pospisil
ddf1de3c5d Resolves: rhbz#1465829 rhbz#2163440 rhbz#2168155
- Rebased to the latest upstream sources (see CHANGELOG.md)
- Updated bundled rubygems: puma, tilt
2023-06-20 14:49:21 +02:00
Michal Pospisil
aa4f1fd980 Resolves: rhbz#2210855
- Fixed a regression causing crash in `pcs resource move` command (broken since pcs-0.11.5)
2023-05-31 12:04:47 +02:00
Michal Pospisil
e834de45bd Resolves: rhbz#1423473 rhbz#1860626 rhbz#2160664 rhbz#2163440 rhbz#2163914 rhbz#2163953 rhbz#2168155 rhbz#2168617 rhbz#2174735 rhbz#2174829 rhbz#2175881 rhbz#2177996 rhbz#2178701 rhbz#2178714 rhbz#2179902 rhbz#2180379 rhbz#2182810
- Rebased to the latest upstream sources (see CHANGELOG.md)
- Updated pcs-web-ui
- Updated bundled dependencies: tornado, dacite
- Added bundled rubygems: nio4r, puma
- Removed bundled rubygems: daemons, eventmachine, thin, webrick
- Updated bundled rubygems: backports, rack, rack-protection, rack-test, sinatra, tilt
- Added dependency nss-tools - for working with qdevice certificates
2023-05-25 11:23:39 +02:00
Michal Pospisil
5fdda3ad9a Resolves: rhbz#2179901 rhbz#2180697 rhbz#2180704 rhbz#2180708 rhbz#2180978 rhbz#2183180
- 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
- Updated bundled rubygem rack
2023-03-31 01:17:23 +02:00
Michal Pospisil
f93843e2c6 Resolves: rhbz#2167471
- Fixed broken filtering in create resource/fence device wizards in the
  web interface
- Added BuildRequires: pam - needed for tier0 tests during build
2023-02-13 19:05:36 +01:00
Michal Pospisil
16dd3a675d Resolves: rhbz#2166249
- Fixed enabling/disabling sbd when cluster is not running
2023-02-02 16:30:31 +01:00
Michal Pospisil
70516b6926 Resolves: rhbz#2158790 rhbz#2159454
- Rebuilt with fixed patches
2023-01-13 18:32:04 +01:00
Michal Pospisil
fb2ec1b90e Resolves: rhbz#2158790 rhbz#2159454
- Allow time values in stonith-watchdog-time property
- Resource/stonith agent self-validation of instance attributes is now
disabled by default, as many agents do not work with it properly.
- Updated bundled rubygems: rack, rack-protection, sinatra
- Added license for ruby2_keywords
2023-01-13 13:42:25 +01:00
Michal Pospisil
9792d48c7b Resolves: rhbz#2148124 rhbz#2151164 rhbz#2151524
- Fixed stopping of pcsd service using `systemctl stop pcsd` command
- Fixed smoke test execution during gating
- Added warning when omitting validation of misconfigured resource
- Fixed displaying of bool and integer values in `pcs resource config` command
- Updated bundled rubygems: ethon, rack-protection, sinatra
2022-12-15 12:00:30 +01:00
Michal Pospisil
225917d4f4 Resolves: rhbz#1620043 rhbz#2019464 rhbz#2099653 rhbz#2109633 rhbz#2112293 rhbz#2116295 rhbz#2117600 rhbz#2117601
- Rebased to latest upstream sources (see CHANGELOG.md)
- Updated pcs-web-ui
2022-11-23 13:57:22 +01:00
Miroslav Lisik
9455af1d47 Resolves: rhbz#1493416 rhbz#1796827 rhbz#2059147 rhbz#2092950 rhbz#2112079 rhbz#2112270 rhbz#2112293 rhbz#2117599 rhbz#2117601
- Rebased to latest upstream sources (see CHANGELOG.md)
- Updated pcs-web-ui
- Added bundled rubygem: childprocess
- Removed bundled rubygem: open4
- Updated bundled rubygems: mustermann, rack, rack-protection, rack-test, sinatra, tilt
2022-10-25 16:01:39 +02:00
Miroslav Lisik
2ad9e29003 Resolves: rhbz#2116841
- Fixed ruby socket permissions
2022-09-05 18:20:03 +02:00
Miroslav Lisik
c06ed2a4ad Resolves: rhbz#2026725 rhbz#2058243
- Fixed booth ticket mode value case insensitive
- Fixed booth sync check whether /etc/booth exists
2022-07-28 15:43:31 +02:00
Miroslav Lisik
a6938416c6 Resolves: rhbz#2102663
- Fixed 'pcs resource restart' traceback
2022-07-12 16:08:32 +02:00
Miroslav Lisik
b6114e416d Resolves: rhbz#2059122 rhbz#2059177 rhbz#2059501 rhbz#2095695 rhbz#2096886 rhbz#2097730 rhbz#2097731 rhbz#2097732 rhbz#2097733 rhbz#2097778
- Rebased to latest upstream sources (see CHANGELOG.md)
- Updated pcs-web-ui
- Updated bundled rubygems: rack
2022-06-24 11:05:48 +02:00
Miroslav Lisik
cf0e1816b5 Resolves: rhbz#1301204 rhbz#2024522 rhbz#2026725 rhbz#2029844 rhbz#2039884 rhbz#2053177 rhbz#2054671 rhbz#2058243 rhbz#2058246 rhbz#2058247 rhbz#2058251 rhbz#2058252 rhbz#2059142 rhbz#2059145 rhbz#2059148 rhbz#2059149 rhbz#2059501 rhbz#2064818 rhbz#2068457 rhbz#2076585
- Rebased to latest upstream sources (see CHANGELOG.md)
- Updated pcs-web-ui
- Updated bundled rubygems: backports, daemons, ethon ffi, ruby2_keywords, thin
- Stopped bundling rubygem-rexml (use distribution package instead)
2022-05-19 16:53:36 +02:00
Miroslav Lisik
6698b8c996 Resolves: rhbz#2081334
- Updated bundled rubygems: sinatra, rack-protection
2022-05-04 17:56:30 +02:00
Miroslav Lisik
2a4b9888d0 Resolves: rhbz#2048640
- Fixed snmp client
- Fixed translating resource roles in colocation constraint
2022-02-01 17:47:45 +01:00
Miroslav Lisik
e9f7ea4da1 Resolves: rhbz#2044409
- Fixed cluster destroy in web ui
- Fixed covscan issue in web ui
2022-01-25 15:19:13 +01:00
Miroslav Lisik
a4dcfd9e5c Resolves: rhbz#1990787 rhbz#2033248 rhbz#2039883 rhbz#2040420
- Fixed 'pcs resource move' command
- Fixed removing of unavailable fence-scsi storage device
- Fixed ocf validation of ocf linbit drdb agent
- Fixed creating empty cib
- Updated pcs-web-ui
2022-01-14 12:24:28 +01:00
Miroslav Lisik
fdf68af2f8 Resolves: rhbz#1811072 rhbz#2019836 rhbz#2032473
- Fixed enabling corosync-qdevice
- Fixed resource update command when unable to get agent metadata
- Fixed revert of disallowing to clone a group with a stonith
2021-12-15 11:05:52 +01:00
Miroslav Lisik
fcbbc084b6 add rpminspect configuration file 2021-12-08 18:47:46 +01:00
Miroslav Lisik
efdeed060b Resolves: rhbz#1990787 rhbz#1997019 rhbz#2012129 rhbz#2024542 rhbz#2027678 rhbz#2027679
- Rebased to latest upstream sources (see CHANGELOG.md)
- Updated pcs web ui
2021-12-02 11:17:56 +01:00
Miroslav Lisik
9eae56d6dd Resolves: rhbz#1990787 rhbz#2018969 rhbz#2019836 rhbz#2023752 rhbz#2012129
- Rebased to latest upstream sources (see CHANGELOG.md)
2021-11-18 14:52:05 +01:00
Miroslav Lisik
417d59d575 Resolves: rhbz#1811072 rhbz#1945305 rhbz#1997019 rhbz#2012129
- Rebased to latest upstream sources (see CHANGELOG.md)
- Updated pcs web ui
- Enabled wui patching
2021-11-02 15:42:25 +01:00