Bug 2095380 - [RFE] corosync-qdevice use systemd-sysusers
Summary: [RFE] corosync-qdevice use systemd-sysusers
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: corosync-qdevice
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jan Friesse
QA Contact: cluster-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-09 16:51 UTC by Pat Riehecky
Modified: 2023-08-10 15:40 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-124838 0 None None None 2022-06-09 17:10:31 UTC

Description Pat Riehecky 2022-06-09 16:51:03 UTC
Description of problem:
corosync-qdevice is using static useradd scripts

Version-Release number of selected component (if applicable):
corosync-qdevice-3.0.1-4.el9.src.rpm

How reproducible:
100%

Steps to Reproduce:
1.review %pre
2.
3.

Actual results:
%pre -n corosync-qnetd
getent group coroqnetd >/dev/null || groupadd -r coroqnetd
getent passwd coroqnetd >/dev/null || \
    useradd -r -g coroqnetd -d / -s /sbin/nologin -c "User for corosync-qnetd" coroqnetd
exit 0

Expected results:
use of system-sysusers 

Additional info:
https://www.freedesktop.org/software/systemd/man/systemd-sysusers.html
https://fedoraproject.org/wiki/Changes/Adopting_sysusers.d_format

Comment 2 Jan Friesse 2022-06-10 08:39:19 UTC
Hi,
thank you for the report. Seems to be quite easy to implement (ref https://docs.fedoraproject.org/en-US/packaging-guidelines/UsersAndGroups/#_dynamic_allocation), so I will give it a try in fedora first and continue from there.


Note You need to log in before you can comment on or make changes to this bug.