Package: ceph-common
Version: 20.2.4+ds-1
Severity: serious
Justification: 6
Dear maintainer,
ceph-common cannot be configured by dpkg as it fails on postinst.
-------8<--------8<--------
Setting up librbd1 (20.2.4+ds-1) ...
Setting up python3-rbd (20.2.4+ds-1) ...
Setting up ceph-common (20.2.4+ds-1) ...
usermod: unlocking the user's password would result in a passwordless account.
You should set a password with usermod -p to unlock this user's password.
dpkg: error processing package ceph-common (--configure):
old ceph-common package postinst maintainer script subprocess failed with exit
status 20
Processing triggers for libc-bin (2.43-7) ...
Processing triggers for ca-certificates (20260816) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Errors were encountered while processing:
ceph-common
Error: Sub-process /usr/bin/dpkg returned an error code (1)
-------8<--------8<--------
This is because usermod returns 20 when unlocking a user, a recent behavior
change, I believe.
-------8<--------8<--------
#Unlock $SERVER_USER in case it is locked from an uninstall
if [ -f /etc/shadow ]; then
usermod -U -e '' $SERVER_USER
else
usermod -U $SERVER_USER
fi
-------8<--------8<--------
IMO this should be a warning, not an error that stops postinst from being
processed further.
After a bug number is generated, I'm sending a patch and a merge request on
salsa, whichever you prefer.