[debian-mysql] Bug#1086726: galera-arbitrator-4: preinst script creating _galera user should belong to galera-arbitrator-4 instead of galera-4

Adel Belhouane bugs.a.b at free.fr
Mon Nov 4 20:03:34 GMT 2024


Package: galera-arbitrator-4
Version: 26.4.20-1
Severity: important
Tags: patch
X-Debbugs-Cc: bugs.a.b at free.fr

Dear Maintainer,

Package galera-arbitrator-4 provides a standalone daemon which doesn't
depend on the plugin library provided by package galera-4: typically the
arbitrator runs on a separate system so one installs galera-arbitrator-4
without also installing mariadb so without also installing galera-4.

Installing galera-arbitrator-4 without having ever installed galera-4
leads to this error:

# systemctl status garb
× garb.service - Galera Arbitrator Daemon
     Loaded: loaded (/usr/lib/systemd/system/garb.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Mon 2024-11-04 19:00:32 UTC; 30min ago
   Duration: 6ms
 Invocation: 175219a9eb0c4b579be29e66eaffdfef
       Docs: man:garbd(8)
             https://galeracluster.com/library/documentation/arbitrator.html
    Process: 16005 ExecStart=/usr/bin/garb-systemd start (code=exited, status=217/USER)
   Main PID: 16005 (code=exited, status=217/USER)
   Mem peak: 1.6M
        CPU: 4ms

Nov 04 19:00:32 trixie-amd64 systemd[1]: Started garb.service - Galera Arbitrator Daemon.
Nov 04 19:00:32 trixie-amd64 (-systemd)[16005]: garb.service: Failed to determine user credentials: No such process
Nov 04 19:00:32 trixie-amd64 (-systemd)[16005]: garb.service: Failed at step USER spawning /usr/bin/garb-systemd: No such process
Nov 04 19:00:32 trixie-amd64 systemd[1]: garb.service: Main process exited, code=exited, status=217/USER
Nov 04 19:00:32 trixie-amd64 systemd[1]: garb.service: Failed with result 'exit-code'.


Creating the missing user _galera fixed the Debian-related issue after
restarting garb.service (garbd requires other settings anyways that
aren't Debian-related). I would have expected the user to be created
automatically by an install script.

Actually this script does exist in the debian package (commit a42ecdf9) but was
added for the package galera-4 where it's not useful (the
plugin library typically runs as part of mariadb with the mysql user).

Renaming the preinst file solves the issue:

diff --git a/debian/galera-4.preinst b/debian/galera-arbitrator-4.preinst
similarity index 100%
rename from debian/galera-4.preinst
rename to debian/galera-arbitrator-4.preinst


Now after a first installation it only fails as expected because it's
not configured:

Nov 04 19:56:22 trixie-amd64 garb-systemd[23745]:  ERROR! List of GALERA_NODES is not configured
Nov 04 19:56:22 trixie-amd64 systemd[1]: garb.service: Main process exited, code=exited, status=6/NOTCONFIGURED

Regards,

Adel Belhouane.

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.11.5-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages galera-arbitrator-4 depends on:
ii  libboost-program-options1.83.0  1.83.0-3.2
ii  libc6                           2.40-3
ii  libgcc-s1                       14.2.0-6
ii  libssl3t64                      3.3.2-2
ii  libstdc++6                      14.2.0-6

galera-arbitrator-4 recommends no packages.

galera-arbitrator-4 suggests no packages.

-- no debconf information


More information about the pkg-mysql-maint mailing list