Description of problem: upgrading cephadm package using yum returns a warning - userdel: cephadm mail spool (/var/spool/mail/cephadm) not found Version-Release number of selected component (if applicable): Upgrading from cephadm-2:16.2.0-119.el8cp.noarch to cephadm-2:16.2.0-141.el8cp.noarch How reproducible: Tried once Steps to Reproduce: 1. Install cephadm package 2. Upgrade cephadm package to latest version Actual results: Running scriptlet: cephadm-2:16.2.0-119.el8cp.noarch 2/2 userdel: cephadm mail spool (/var/spool/mail/cephadm) not found Expected results: No warnings or handling all requirements of the scripts Additional info:
I submitted a bug and pull request to fix this upstream, but the fixes need to be applied to the RedHat/Fedora spec files as well... there's actually two bugs that break upgrades of cephadm, here are the pull requests for both: # only remove cephadm user on uninstall: https://github.com/ceph/ceph/pull/46272 # (not mine, but needed) correctly mark ~cephadm/.ssh/authorized_keys as config(noreplace): https://github.com/ceph/ceph/pull/45347 There both 1 line fixes, but note that rpm upgrade runs the %postun script from the previous version, so the cephadm user will still be removed the first time the package is upgraded with the fix...
Both of the above PRs have been merged... might be useful to apply them to the RH/Fedora spec too.
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 (Moderate: Red Hat Ceph Storage Security, Bug Fix, and Enhancement Update), 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/RHSA-2022:5997