deb/cephadm: add explicit --home for cephadm user#64459
Conversation
|
will review this change tomorrow. |
|
This will break machines where /home is not where local accounts are made. I suggest |
thanks @NVShawn. i'm guessing it's safe to change this, as it won't effect existing cephadm users. it looks like we did check in #62507 for explicit mentions of if @adk3798 doesn't object, i'll make this change and we'll rely on testing to uncover any issues |
cephadm.postinst fails on ubuntu 24.04, because the cephadm user it creates ends up with a `/nonexistent` home directory: > mkdir: cannot create directory '/nonexistent/.ssh': No such file or directory on ubuntu 22.04, this user's home directory is `/home/cephadm` the `adduser` man page for 24.04 includes this new text: > If no home directory is specified, the default home directory for a new system user is /nonexistent. This directory should never exist on any Debian system, and adduser will never create it automatically. commit 90bc036 had previously added `--home /home/cephadm`, but that was later removed by commit c5a316c to support non-default home directories. the latter commit's author recommends use of `--home /var/lib/cephadm` instead Fixes: https://tracker.ceph.com/issues/72083 Signed-off-by: Casey Bodley <cbodley@redhat.com>
no objections from me |
|
No new failures related to this PR |
|
jenkins test api |
thanks Adam! i tested this against ubuntu 24.04 in https://qa-proxy.ceph.com/teuthology/cbodley-2025-07-17_18:13:22-rgw:verify-wip-72083-distro-default-smithi/8393570/teuthology.log, and package installation succeeded. 👍 the cluster goes on to crash and burn shortly after, but i think this is ready to merge |
cephadm.postinst fails on ubuntu 24.04, because the cephadm user it creates ends up with a
/nonexistenthome directory:on ubuntu 22.04, this user's home directory is
/home/cephadmthe
adduserman page for 24.04 includes this new text:add the explicit--home /home/cephadmto preserve the existing behaviorcommit cbodley@90bc036 had previously added
--home /home/cephadm, but that was later removed by commit cbodley@c5a316c to support non-default home directories. the latter commit's author recommends use of--home /var/lib/cephadminsteadFixes: https://tracker.ceph.com/issues/72083
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition