Bug 2024974

Summary: Galera doesn't work without 'procps-ng' package
Product: Red Hat Enterprise Linux 9 Reporter: Lukas Javorsky <ljavorsk>
Component: galeraAssignee: Michal Schorm <mschorm>
Status: CLOSED ERRATA QA Contact: Jakub Heger <jheger>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: damien.ciabrini, databases-maint, extras-qa, fdinitto, hhorak, jheger, jkejda, ljavorsk, mbayer, mschorm, zmiklank
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: galera-26.4.9-2.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2019805 Environment:
Last Closed: 2022-05-17 13:39:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2019805, 2024979, 2042526    
Bug Blocks:    

Description Lukas Javorsky 2021-11-19 15:54:34 UTC
+++ This bug was initially created as a clone of Bug #2019805 +++

Description of problem:
The Galera package should definitely Require 'procps-ng' package, otherwise, it won't work.
This is reproducible only when not using the '--wsrep-new-cluster' option (So when you want to connect to the cluster with mariadb-server).


Version-Release number of selected component (if applicable):
All versions and all releases

How reproducible:
Always

Steps to Reproduce:
# This needs to be done because it is present in the system (however, users can remove it anytime, so we shouldn't rely on the fact, that it's installed)
1. dnf remove procps-ng -y
2. dnf install galera mariadb-server-galera mariadb
3. Change the config files to the corresponding options
4. systemctl start mariadb

Actual results:
It won't start and will wait to infinity

Expected results:
Start the mariadb-server and connect to the cluster.

Additional info:
When you install the 'procps-ng' package, the 'systemctl start mariadb' process will successfully start the MariaDB server, and everything works as expected

This issue should be resolved in all of the products and versions (RHEL-7,8,9; ...)

Patch should be simple: Just add 'Requires: procps-ng' to the galera spec file

--- Additional comment from Lukas Javorsky on 2021-11-03 11:45:01 UTC ---

Also, Honza spotted that upstream has this requirement in their list of packages that should be required by Galera
https://github.com/codership/galera/blob/3.x/scripts/mysql/centos/mysql-wsrep.list#L24

Comment 3 Michal Schorm 2022-01-13 07:53:50 UTC
The issue should be fixed by the following commit:
  https://gitlab.com/redhat/centos-stream/rpms/galera/-/commit/49c275a55816e5c3de38cc4cbaa48777f2263dec

Comment 9 errata-xmlrpc 2022-05-17 13:39:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: galera), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:2558